mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
missing online
This commit is contained in:
parent
27704a9aa1
commit
e87b1bbf98
@ -278,7 +278,7 @@ static void onConnect(void* context)
|
||||
if(mqttHAautodiscover) mqtt_subscribe(mqtt_client, "homeassistant/status");
|
||||
#endif
|
||||
|
||||
mqttPublish(TOPIC LWT_TOPIC, "online", 6, false);
|
||||
mqttPublish(TOPIC LWT_TOPIC, "online", 6, true);
|
||||
|
||||
mqtt_send_object_state(0, 0, "connected");
|
||||
std::cout << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user