Hello!
I have Wemos D1 mini with Tasmota and 2 senosrs - BME280 and TEMT6000. They are working well. Lately i tried to add a simple rgb diode (4 Pins) to improve my skills. With a few mistakes i made it, It shows up in tasmota and working well including brightness. So i tried add it to hassio by mqtt. There is my config:
light 4:
- platform: mqtt
name: "Gniewko Wenmos2 RGB"
command_topic: "cmnd/wemos2/LUX/POWER"
state_topic: "stat/wemos2/LUX/POWER"
rgb_state_topic: "stat/wemos2/LUX/Color2"
rgb_command_topic: "cmnd/wemos2/LUX/Color2"
brightness_state_topic: "stat/wemos2/LUX/dimmer2"
brightness_command_topic: "cmnd/wemos2/LUX/dimmer2"
retain: false
optimistic: false
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
rgb_value_template: "{{ value_json.Color | join(',') }}"
qos: 0
payload_on: "ON"
payload_off: "OFF"
Switch shows up, i can change color by clicking in hassio but i have 2 problems:
- I dont see any scheme to change but they are working in tasmota if i type sth “scheme 2” in tasmota console. How add it too hassio?
- If i change brightness in Tasmota it makes diode brighter/darker but do not change in home assistant. They arent “connected” together
This is my mqtt exampel from tasmota console
15:56:03 MQT: tele/wemos2/LUX/SENSOR = {"Time":"2019-01-30T15:56:03","ANALOG":{"A0":79},"BME280":{"Temperature":23.59,"Humidity":52.39,"Pressure":961.68},"PressureUnit":"hPa","TempUnit":"C"}
15:57:03 MQT: tele/wemos2/LUX/STATE = {"Time":"2019-01-30T15:57:03","Uptime":"1T20:32:45","SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"POWER":"ON","Dimmer":50,"Color":"127,72,100","HSBColor":"329,43,50","Channel":[49,28,39],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":1,"SSId":"Nikola","BSSId":"20:0B:C7:A8:05:A0","Channel":4,"RSSI":50}}
15:57:03 MQT: tele/wemos2/LUX/SENSOR = {"Time":"2019-01-30T15:57:03","ANALOG":{"A0":73},"BME280":{"Temperature":23.60,"Humidity":52.43,"Pressure":961.73},"PressureUnit":"hPa","TempUnit":"C"}
15:58:03 MQT: tele/wemos2/LUX/STATE = {"Time":"2019-01-30T15:58:03","Uptime":"1T20:33:45","SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"POWER":"ON","Dimmer":50,"Color":"127,72,100","HSBColor":"329,43,50","Channel":[49,28,39],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":1,"SSId":"Nikola","BSSId":"20:0B:C7:A8:05:A0","Channel":4,"RSSI":52}}
15:58:03 MQT: tele/wemos2/LUX/SENSOR = {"Time":"2019-01-30T15:58:03","ANALOG":{"A0":73},"BME280":{"Temperature":23.63,"Humidity":51.91,"Pressure":961.73},"PressureUnit":"hPa","TempUnit":"C"}
15:58:53 MQT: stat/wemos2/LUX/RESULT = {"POWER":"ON","Dimmer":50,"Color":"59,36,127","HSBColor":"255,72,50","Channel":[23,14,49]}
Can u help me?