I have a rgb led strip, and it is working fine when controlled by the home assistant front end
Config:
light:
- platform: mqtt_json
name: mqtt_json_light_2
state_topic: “home/ESP_RGB_1”
command_topic: “home/ESP_RGB_1/set”
brightness: true
rgb: true
effect: true
effect_list: [colorfade_slow, colorfade_fast, flash]
optimistic: false
qos: 0
retain: true
I cannot get the automation to set the rgb value. The MQTT message always contains 255,255,255
- service: light.turn_on
data:
entity_id: light.mqtt_json_light_2
brightness: 100
rgb_color: ['100', '100', '100']
transition: 5
The MQTT message is
{“brightness”: 100, “state”: “ON”, “color”: {“g”: 255, “b”: 255, “r”: 255}, “transition”: 5}
What is wrong in my automation?