1 Commits

Author SHA1 Message Date
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;
OUTPUT_SET(false);
powerNode.setProperty("timer").send("0");
powerNode.setProperty("state").send("off");
}
if(millis() > next_timer_update) {
next_timer_update = millis() + 60*1000;