Browse Source

Change HA autodiscover feature to use new RGB entry point

fastled
Xose Pérez 7 years ago
parent
commit
524ebcf512
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/homeassitant.ino

+ 2
- 2
code/espurna/homeassitant.ino View File

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


Loading…
Cancel
Save