Return state information when wakeup is complete

Return state information when wakeup is complete (#7583)
This commit is contained in:
Theo Arends 2020-01-24 12:48:50 +01:00
parent a4e2b28b86
commit ddd1f4c379
1 changed files with 8 additions and 0 deletions

View File

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