I have a problem on power outages where my presence sensor turns Not Present and when the power comes back, I become Present again. I want to restrict those pistons from running if the hub has just booted up in the last 10 minutes.
So I need something like Hub Uptime or the last boot time. Or, I need to just run a piston at boot time and use a global variable and some Wait statements. So…
How do I run a piston once on hub boot up?
Or suggest a different solution?
PS. I don’t want to rely on the power source property because the batteries often die and it never gets to the battery state. At this point, I just have a UPS and no batteries in it.