I’ve recently flashed some aiLight globes with Tasmota firmware and have discovered they need the white value tacked onto the end of the rgb hex string. My normal rgb configuration is
#Ailight with Tasmota
- platform: mqtt
name: Lamp 6
effect_list:
- 0
- 1
- 2
- 3
- 4
state_topic: "cmnd/ailight06/POWER"
command_topic: "cmnd/ailight06/POWER"
brightness_state_topic: "cmnd/ailight06/Dimmer"
brightness_command_topic: "cmnd/ailight06/Dimmer"
brightness_scale: 100
rgb_command_template: "{{ '%02x%02x%02x' | format(red, green, blue)}}"
rgb_state_topic: "cmnd/ailight06/Color"
rgb_command_topic: "cmnd/ailight06/Color"
availability_topic: "tele/ailight06/LWT"
effect_command_topic: "cmnd/ailight06/Scheme"
effect_state_topic: "cmnd/ailight06/Scheme"
state_value_template: "{{ value }}"
brightness_value_template: "{{ value }}"
effect_value_template: "{{ value }}"
rgb_command_mode: hex
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
The Light MQTT component has white value command and state topics but I’m at a loss to work out how to add the value to the end of the rgb string.
Could someone please point me in the right direction?