mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 16:49:11 +03:00
publish mqtt emsesp on-change messages on connect
This commit is contained in:
@@ -511,6 +511,11 @@ void Mqtt::on_connect() {
|
||||
|
||||
// send initial MQTT messages for some of our services
|
||||
EMSESP::system_.send_heartbeat(); // send heartbeat
|
||||
// for publish on change publish the initial complete list
|
||||
EMSESP::webCustomEntityService.publish(true);
|
||||
EMSESP::webSchedulerService.publish(true);
|
||||
EMSESP::analogsensor_.publish_values(true);
|
||||
EMSESP::temperaturesensor_.publish_values(true);
|
||||
}
|
||||
|
||||
// Home Assistant Discovery - the main master Device called EMS-ESP
|
||||
|
||||
Reference in New Issue
Block a user