From 524ebcf5129da263d92b615ced4885ac7a6d64c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 10 Nov 2017 10:09:35 +0100 Subject: [PATCH] Change HA autodiscover feature to use new RGB entry point --- code/espurna/homeassitant.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/homeassitant.ino b/code/espurna/homeassitant.ino index e9aba9a7..b1d55f33 100644 --- a/code/espurna/homeassitant.ino +++ b/code/espurna/homeassitant.ino @@ -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); }