publish MQTT shower info when connected

This commit is contained in:
Paul
2019-10-13 19:00:57 +02:00
parent c8845a1734
commit 1e85934b38
2 changed files with 5 additions and 3 deletions

View File

@@ -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
}