make sure mqtt state is updated when timer expires
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user