diff --git a/code/espurna/homeassitant.ino b/code/espurna/homeassitant.ino index 45ddba4e..2784582c 100644 --- a/code/espurna/homeassitant.ino +++ b/code/espurna/homeassitant.ino @@ -68,7 +68,7 @@ void haSend(bool add) { "/config"; mqttSendRaw(topic.c_str(), output.c_str()); - mqttSend(MQTT_TOPIC_STATUS, 1); + mqttSend(MQTT_TOPIC_STATUS, MQTT_STATUS_ONLINE, true); }