mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
publish MQTT shower info when connected
This commit is contained in:
@@ -1529,6 +1529,9 @@ void MQTTCallback(unsigned int type, const char * topic, const char * message) {
|
||||
// for receiving shower_Timer and shower_alert switches
|
||||
myESP.mqttSubscribe(TOPIC_SHOWER_DATA);
|
||||
|
||||
// send Shower Alert and Timer switch settings
|
||||
do_publishShowerData();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2056,7 +2059,6 @@ void loop() {
|
||||
if (ems_getEmsRefreshed() && (scanThermostat_count == 0)) {
|
||||
publishValues(false);
|
||||
do_publishSensorValues();
|
||||
do_publishShowerData();
|
||||
ems_setEmsRefreshed(false); // reset
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user