Browse Source

Publish status message just after HA dicovery message

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

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

@ -68,7 +68,7 @@ void haSend(bool add) {
"/config"; "/config";
mqttSendRaw(topic.c_str(), output.c_str()); mqttSendRaw(topic.c_str(), output.c_str());
mqttSend(MQTT_TOPIC_STATUS, 1);
mqttSend(MQTT_TOPIC_STATUS, MQTT_STATUS_ONLINE, true);
} }


Loading…
Cancel
Save