So I have both a schedule and a trigger that can turn a particular outlet off. It's a Z-wave outlet powering a coffee machine, but this question isn't specific to the interface or device.
The schedule turns the outlet ON at 7AM and OFF at 9AM
The trigger turns the outlet OFF when power usage hits within a specific range.
Both work well nearly 100% of the time, but I've found a that every now and then, for whatever reason, the outlet remains ON. Yesterday the trigger was missed, which is OK. The scheduled OFF command was sent when it was supposed to be at 9AM, but the outlet didn't turn off - no errors in the log.
So I'm looking for a good way to account for such a failure and turn that outlet OFF, with the least amount of wheel spinning and impact on the server process.
Quick and dirty would probably be to set a variable in the above schedule and trigger, then check every hour to compare the variable to the state of the outlet, then send a new OFF command if the device was still ON when it wasn't supposed to be.
Thanks for any ideas in advance, I'm sure this has come up but my searching directly in the forum and through google hasn't turned up the right threads.