Hi, i have a H801 LED module with tasmota running, and I works with som codes found here I this forum, but I need a button / switch, in the tasmota console I can send eg “color 1” and the led strip changes color to red, color 2 fore green etc. I want buttons fore each color, so I need a line to og set that color via MQTT form openhab, my items looks like this now:
You can’t change that console without recoding tasmota. Good luck with that if you haven’t programmed before. But it is open source so you can give it a go.
Colours can be sent to tasmota/sonoff via mqtt
There are other threads on that topic in the forum.
I have tried removing it… that results in fail in the log, tried replacing “POWER” with “COLOR” that kinda works, now the button is always gray, and not marked on/off, thats fine, but if I make another one for another color there is a failure of duplicated model item, do you have any idea how to fix that…?
Now the whole line looks like that: Switch sH801_Lamp_test "H801 Switch test" <light> (gAllLights) {mqtt=">[broker:cmnd/H801/COLOR:command:*:1],<[broker:stat/H801/RESULT:state:JSONPATH($.POWER)]",autoupdate="false"}