I have several apps/rules that rely on consistent temperature/humidity/power reporting. What I would like to do is add a deadman switch to the apps/rules.
If sensor reports then reset deadman timer
when timer = 0 turn off switch
switch disables app/output.
Anyone have an app or rule that checks for reporting?
Maybe use a virtual dimmer as a variable? Control with 2 RM triggers....one trigger that resets the dimmer to 100 or whatever level you want any time one of the temps updates (pick something like temp <= 200), and another one that decrements the dimmer by 1% every x minutes or seconds or whatever. Then when dimmer level = 0, turn off your dead man switch.
I'm not sure if this would work. I have used it before, but I'm not sure if you can reset the switch by turning it on again? If it doesn't you might be able to modify it pretty easily.
You might need to change this false to true?
runIn(delayNum ?: 3, off, [overwrite: false])
Hmmm... ok...
You need an app that subscribes to the various devices and attributes..
then if no evt received withing a time setting flip a switch on....
The main problem would be the subscriptions.. if you input 5 devices... say.. motion sensors
If one of the sensors report then that would create the event.. thus resetting the timer.
And.. if only one out of 5 was working, and the other 4 were not reporting in you would still get the timer reset by the one..
Iām not sure how to separate them..
I can see a lot of uses for something like this, even just flipping a switch to announce that a device is no longer reporting and sending a pushover message for me to check the device..
right now it is set to turn on/off a virtual switch, you could use that virtual switch and subscribe to it's events. I think apps can send events as well, I have never done it.
You can have an app send data to any device that is receptive to that data
E.g. you canāt send temperature to a switch unless that switch also has a temperature capability.