Thanks for the response.
Yes it works, but i pick the state from the RESULTS topic as nothing else seems to pick anything up. Here is a copy of the console on the tasmota while i change things, like colour etc.
14:40:02 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:02 MQT: stat/rangehood/POWER = ON
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"OFF","Dimmer":0,"Color":"0,0,0"}
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:28 MQT: stat/rangehood/POWER = ON
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"OFF","Dimmer":0,"Color":"0,0,0"}
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:28 MQT: stat/rangehood/POWER = ON
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:28 MQT: stat/rangehood/POWER = ON
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"ON","Dimmer":100,"Color":"255,255,255"}
14:40:28 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:28 MQT: stat/rangehood/POWER = ON
14:40:41 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:41 MQT: stat/rangehood/POWER = ON
14:40:42 MQT: stat/rangehood/RESULT = {"POWER":"ON","Dimmer":49,"Color":"124,124,124"}
14:40:42 MQT: stat/rangehood/RESULT = {"POWER":"ON"}
14:40:42 MQT: stat/rangehood/POWER = ON
as you can see i have my Color set to RGB in decimal, not hex, like you did. However i did try hex as well and it seems to have the same symptoms. I basically have everything working ok by picking state from RESULT, that isn't hte issue. I just found it strange that everyone else seems to subscribe to stat/%topic%/Color i have never get anything on that topic.
Yaml look slike this:
- platform: mqtt
name: "Rangehood"
state_topic: "stat/rangehood/POWER"
command_topic: "cmnd/rangehood/POWER"
rgb_state_topic: "stat/rangehood/RESULT"
rgb_value_template: "{{ value_json.Color }}"
rgb_command_topic: "cmnd/rangehood/COLOR"
brightness_state_topic: "stat/rangehood/RESULT"
brightness_command_topic: "cmnd/rangehood/DIMMER"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
qos: 0
optimistic: false
retain: true
effect_state_topic: "stat/rangehood/SCHEME"
effect_command_topic: "cmnd/rangehood/SCHEME"
effect_value_template: "{{ value_json.scheme }}"
effect_list:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
THe only issue i have remaining is when i select a colour from the colour picker, lets say white, it sends 255, 255, 255 as it should.
If i then dial the brightness back, that changes to say 124, 124, 124, as you can see from the Tasmota console with dimmer set to 49%.
if I then select green say, it changes to 0, 255, 0, bumping the brightness back to 100% where i would have expected it to say 0, 124, 0.
i guess 255, is green full brightness and 124 is green at 49%
If i then dial the brightness back again, it does work, but i expected the brightness setting to stick when changing the colour, rather than going to 100 every time.
I guess one sollution would be to divide each rgb value by the dimmer setting before sending it, i have no idea how to do that, and it seems no one else needed to do this.
The Tasmota is a Wemos D1 mini, all i changes in the firmware was the SSID settings and MQTT settings. I then logged into the web interface and set the topic to rangehood and the type to wemos d1.
I then selected WS2812 on one of the pins. GPIO4 if i am not mistaken. LED light strip is not connected yet, I am just sorting the wemos and ha first.
thanks for your assistance.