mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add some HA config on mqtt reconnect
This commit is contained in:
@@ -9,11 +9,15 @@ For more details go to [docs.emsesp.org](https://docs.emsesp.org/).
|
|||||||
- analogsensor types: NTC and RGB-Led
|
- analogsensor types: NTC and RGB-Led
|
||||||
- Flag for HMC310 [#2465](https://github.com/emsesp/EMS-ESP32/issues/2465)
|
- Flag for HMC310 [#2465](https://github.com/emsesp/EMS-ESP32/issues/2465)
|
||||||
- boiler auxheatersource [#2489](https://github.com/emsesp/EMS-ESP32/discussions/2489)
|
- boiler auxheatersource [#2489](https://github.com/emsesp/EMS-ESP32/discussions/2489)
|
||||||
|
- thermostat last error for RC100/300 [#2501](https://github.com/emsesp/EMS-ESP32/issues/2501)
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
- dhw/switchtime [#2490](https://github.com/emsesp/EMS-ESP32/issues/2490)
|
- dhw/switchtime [#2490](https://github.com/emsesp/EMS-ESP32/issues/2490)
|
||||||
- switch to secure mqtt [#2492](https://github.com/emsesp/EMS-ESP32/issues/2492)
|
- switch to secure mqtt [#2492](https://github.com/emsesp/EMS-ESP32/issues/2492)
|
||||||
|
- update link buttons [#2497](https://github.com/emsesp/EMS-ESP32/issues/2497)
|
||||||
|
- refresh scheduler states [#2502](https://github.com/emsesp/EMS-ESP32/discussions/2502)
|
||||||
|
- also rebuild HA config on mqtt connect for scheduler, custom and shower
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
||||||
|
|||||||
@@ -634,6 +634,9 @@ void EMSESP::reset_mqtt_ha() {
|
|||||||
// force the re-creating of the temperature and analog sensor topics (for HA)
|
// force the re-creating of the temperature and analog sensor topics (for HA)
|
||||||
temperaturesensor_.reload();
|
temperaturesensor_.reload();
|
||||||
analogsensor_.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
|
// create json doc for the devices values and add to MQTT publish queue
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ class Shower {
|
|||||||
void shower_alert(bool enable) {
|
void shower_alert(bool enable) {
|
||||||
shower_alert_ = enable;
|
shower_alert_ = enable;
|
||||||
}
|
}
|
||||||
|
void ha_reset() {
|
||||||
|
ha_configdone_ = false;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static uuid::log::Logger logger_;
|
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