From ddd1f4c379f99ed6892b8120fe693ee93de8c196 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 24 Jan 2020 12:48:50 +0100 Subject: [PATCH] Return state information when wakeup is complete Return state information when wakeup is complete (#7583) --- tasmota/xdrv_04_light.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index 2de7432a0..4ef8b409e 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -1723,8 +1723,16 @@ void LightAnimate(void) Light.new_color[i] = Light.current_color[i]; } } else { +/* Response_P(PSTR("{\"" D_CMND_WAKEUP "\":\"" D_JSON_DONE "\"}")); MqttPublishPrefixTopic_P(TELE, PSTR(D_CMND_WAKEUP)); +*/ + Response_P(PSTR("{\"" D_CMND_WAKEUP "\":\"" D_JSON_DONE "\"")); + LightState(1); + ResponseJsonEnd(); + MqttPublishPrefixTopic_P(RESULT_OR_STAT, PSTR(D_CMND_WAKEUP)); + XdrvRulesProcess(); + Light.wakeup_active = 0; Settings.light_scheme = LS_POWER; }