2 Commits

Author SHA1 Message Date
jct
c00d2afb27 Merge branch 'homieV3' of jct/deskcontrol into master
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-13 11:01:19 +00:00
Jens Christian True
0ae3824e88 make sure mqtt state is updated when timer expires
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2019-08-13 12:52:18 +02:00

View File

@ -56,6 +56,7 @@ void loopHandler() {
timer = 0; timer = 0;
OUTPUT_SET(false); OUTPUT_SET(false);
powerNode.setProperty("timer").send("0"); powerNode.setProperty("timer").send("0");
powerNode.setProperty("state").send("off");
} }
if(millis() > next_timer_update) { if(millis() > next_timer_update) {
next_timer_update = millis() + 60*1000; next_timer_update = millis() + 60*1000;