I have some outlets with LED rings that worked fine under my old HA instance. I configured them like this:
- platform: mqtt
name: "Bathroom Outlet LED"
retain: true
state_topic: "stat/tuyaplug2/POWER2"
command_topic: "cmnd/tuyaplug2/POWER2"
availability_topic: "tele/tuyaplug2/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
optimistic: false
brightness_state_topic: "stat/tuyaplug2/Dimmer"
brightness_command_topic: "cmnd/tuyaplug2/Dimmer"
brightness_value_template: "{{ value_json.Dimmer }}"
brightness_scale: 100
rgb_state_topic: "stat/tuyaplug2/Color"
rgb_command_topic: "cmnd/tuyaplug2/Color2"
rgb_command_mode: hex
rgb_command_template: "{{ '%02x%02x%02x' | format(red, green, blue)}}"
Under a clean install on HA latest the RGB no longer works. Directions on Tasmota say to do this:
light:
- platform: mqtt
name: "RGB Light"
command_topic: "cmnd/tasmota/POWER"
state_topic: "tele/tasmota/STATE"
state_value_template: "{{ value_json.POWER }}"
availability_topic: "tele/tasmota/LWT"
brightness_command_topic: "cmnd/tasmota/Dimmer"
brightness_state_topic: "tele/tasmota/STATE"
brightness_scale: 100
on_command_type: "brightness"
brightness_value_template: "{{ value_json.Dimmer }}"
rgb_command_topic: "cmnd/tasmota/Color2"
rgb_state_topic: "tele/tasmota/STATE"
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
effect_command_topic: "cmnd/tasmota/Scheme"
effect_state_topic: "tele/tasmota/STATE"
effect_value_template: "{{ value_json.Scheme }}"
effect_list:
- 0
- 1
- 2
- 3
- 4
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false
This creates an entity which I can turn on and off however I get no color palette. Tasmota device is 9.5 (latest) and works via the web interface perfectly. I just can’t get a color wheel in HA anymore. Also note that the Tasmota example is an exact cut and paste and I did change the topic, etc.