I successfully flashed my first LED-Controller with Tasmota… Jippie…
It’s also already working in HA. Awesome…
My config currently looks like this: (found that somewhere and copied it)
light:
- platform: mqtt
name: "Magic Home LED"
command_topic: "cmnd/sonoff/POWER"
state_topic: "tele/sonoff/STATE"
state_value_template: "{{value_json.POWER}}"
availability_topic: "tele/sonoff/LWT"
brightness_command_topic: "cmnd/sonoff/Dimmer"
brightness_state_topic: "tele/sonoff/STATE"
brightness_scale: 100
on_command_type: "brightness"
brightness_value_template: "{{value_json.Dimmer}}"
rgb_command_topic: "cmnd/sonoff/Color2"
rgb_state_topic: "tele/sonoff/STATE"
rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false
Now I have some problems with it.
First:
When I change the color of the light using the tasmota command-line, it’s not reflected in HA. Is that normal? Shouldn’t it change in HA as well?
I guess this is some kind of mqtt problem?
Second:
When I set a color using the Home Assistant UI I get 100% brightness. When I then change the brightness using the slider to let’s say 50% this works. The LEDs are dimmed down. But when I then change the color again, the brightness is again at 100% but the slider in HA still is at 50%.
Most likely a similar problem to question one?
Third:
It is a RGBW
led controller but currently I am only using the rgb
part. Not the w
.
Can anybody tell me how to add the white part? I haven’t found anything working yet. Rgbw lights with tasmota and MQTT looked pretty good to me (from the comment) but with the rgb_value_template
and rgb_command_template
from that post it’s not working any more at all But I guess the attempt to split out the white part of the rgb seems good?!?