mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 08:24:27 +01:00
Change HA autodiscover feature to use new RGB entry point
This commit is contained in:
@@ -36,8 +36,8 @@ void haSend(bool add) {
|
||||
if (lightHasColor()) {
|
||||
root["brightness_state_topic"] = getTopic(MQTT_TOPIC_BRIGHTNESS, false);
|
||||
root["brightness_command_topic"] = getTopic(MQTT_TOPIC_BRIGHTNESS, true);
|
||||
root["rgb_state_topic"] = getTopic(MQTT_TOPIC_COLOR, false);
|
||||
root["rgb_command_topic"] = getTopic(MQTT_TOPIC_COLOR, true);
|
||||
root["rgb_state_topic"] = getTopic(MQTT_TOPIC_COLOR_RGB, false);
|
||||
root["rgb_command_topic"] = getTopic(MQTT_TOPIC_COLOR_RGB, true);
|
||||
root["color_temp_command_topic"] = getTopic(MQTT_TOPIC_MIRED, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user