mqtt status retain, #2086

This commit is contained in:
MichaelDvP
2024-10-14 13:37:37 +02:00
parent e44487b67f
commit 66f3c57c8e

View File

@@ -525,7 +525,7 @@ void Mqtt::on_connect() {
resubscribe();
// publish to the last will topic (see Mqtt::start() function) to say we're alive
queue_publish_retain("status", "online", false); // with retain off
queue_publish_retain("status", "online", true); // retain: https://github.com/emsesp/EMS-ESP32/discussions/2086
}
// Home Assistant Discovery - the main master Device called EMS-ESP