Hi!
Currently I have HA and mqtt integration and I want to integrate RGB leds to HA.
I’m writing python script which will provide to HA autodiscovery message which will provide everything needed.
During tests once I got working color wheel, but next day when pushed autodiscovery again it went missing.
I tried 2 main configurations. Both give me control in HA, but without color wheel:
{
"schema":"json",
"name":"PI0 RGB",
"unique_id":"PI0_RGB",
"state_topic":"homeassistant/light/rgb_PI0_RGB/state",
"command_topic":"homeassistant/light/rgb_PI0_RGB/set",
"color_mode":"rgb",
"brightness":true,
"rgb":true,
"effect":true,
"effect_list":["Blink","Rainbow","Fade","colorloop","random"]
}
{
"name": "Living Room Light",
"command_topic": "homeassistant/light/rgb_PI0_RGB_test1/set",
"state_topic": "homeassistant/light/rgb_PI0_RGB_test1/state",
"rgb_command_topic": "homeassistant/light/rgb_PI0_RGB_test1/rgb/set",
"rgb_state_topic": "homeassistant/light/rgb_PI0_RGB_test1/rgb/state",
"brightness_command_topic": "homeassistant/light/rgb_PI0_RGB_test1/brightness/set",
"brightness_state_topic": "homeassistant/light/rgb_PI0_RGB_test1/brightness/state",
"color_mode": true,
"supported_color_modes": ["rgb"],
"schema": "json",
"platform": "mqtt",
"unique_id": "living_room_light"
}
What I’m doing wrong?