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); }