From 758416bc87a075785ea46c636084084d12cc92c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 20 Nov 2017 11:02:08 +0100 Subject: [PATCH] Publish status message just after HA dicovery message --- code/espurna/homeassitant.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }