SO59 support for Power0

This commit is contained in:
Federico Leoni 2020-08-14 11:43:50 -03:00
parent 0b9f5a8373
commit 612e2be2db

View File

@ -369,6 +369,9 @@ void CmndPower(void)
XdrvMailbox.payload = POWER_SHOW_STATE;
}
SetAllPower(XdrvMailbox.payload, SRC_IGNORE);
if (Settings.flag3.hass_tele_on_power) { // SetOption59 - Send tele/%topic%/STATE in addition to stat/%topic%/RESULT
MqttPublishTeleState();
}
mqtt_data[0] = '\0';
}
}