I have several capture and restore rules that I created, with the purpose of bringing my lights and outlets back to their previous states following a power outage.
I have a rule that runs every half hour to capture the state of my lights and smart outlets.
My first question is: are the saved states persisted to storage and are available following a hub reboot? Similarly, are those states available if there is a loss of power to the hub?
Based on what I'm seeing in my testing, they don't appear to be.
I've also used the Run Action option on a test Restore rule (without the systemStart trigger) following a reboot, and that also didn't work.
I also tried running the test Restore rule right after the Capture rule ran.
A light was on during the capture rule, I turned off the light, then clicked Run Action.
I was expecting the light to be turned back on, but it was not.
Am I not understanding how Capture and Restore is supposed to work?
I think I understand what you are trying to accomplish, but are you sure you really want to be woken up at 3AM when the power comes on and the last recorded state was when all the lights were on?
I have a similar rule but rather than capture the state of lighting on a 30 min schedule, I re-run the rules that set the lights in the first place. To get this working, I've had to change some of my rules so that they run correctly when they are 'called' and not triggered by their 'trigger event'. Here is my System Restart Recovery Rule:
But "Capture" saves states into that particular rule. It's looks like you are spreading this across at least two rules. A capture is only meaningful if restored from the same rule.