Capture and Restore - not restoring states

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.

I have another rule that is supposed to restore the states of my lights and smart outlets following a systemStart, but it's not working for me.

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?

1 Like

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:

This approach resolves the issue that @Slate identified.

Edit:

Here is my Security External Lights Control rule as an example:

1 Like

Many of our smart bulbs don't support the "Power restore state" config option, so they come on when power is restored at any time of day.

Yes.

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.

1 Like

Nvm, found it in another thread.

Thanks for that info. Wasn't obvious in the docs.

Explains why my idea didn't work.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.