mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
add some HA config on mqtt reconnect
This commit is contained in:
@@ -634,6 +634,9 @@ void EMSESP::reset_mqtt_ha() {
|
||||
// force the re-creating of the temperature and analog sensor topics (for HA)
|
||||
temperaturesensor_.reload();
|
||||
analogsensor_.reload();
|
||||
shower_.ha_reset();
|
||||
webSchedulerService.ha_reset();
|
||||
webCustomEntityService.ha_reset();
|
||||
}
|
||||
|
||||
// create json doc for the devices values and add to MQTT publish queue
|
||||
|
||||
@@ -40,6 +40,9 @@ class Shower {
|
||||
void shower_alert(bool enable) {
|
||||
shower_alert_ = enable;
|
||||
}
|
||||
void ha_reset() {
|
||||
ha_configdone_ = false;
|
||||
}
|
||||
|
||||
private:
|
||||
static uuid::log::Logger logger_;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define EMSESP_APP_VERSION "3.7.3-dev.4"
|
||||
#define EMSESP_APP_VERSION "3.7.3-dev.5"
|
||||
|
||||
Reference in New Issue
Block a user