From 612e2be2db8fde8c18339de52db9dae4ff634ae4 Mon Sep 17 00:00:00 2001 From: Federico Leoni Date: Fri, 14 Aug 2020 11:43:50 -0300 Subject: [PATCH] SO59 support for Power0 --- tasmota/support_command.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index 17be4b762..dd5632d12 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -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'; } }