Save state for next execution

Hi,

I’m preparing a keyfob for my cleaning lady. Since I don’t expect her to understand my system (frankly, I’m not 100% on it yet either :p) I have created a scene called “all on”, which basically just does that. BUT - when she leaves, I’d love to have things back to the way I left them. Is there a way to save the state of my z-wave network and then “roll back” or restore it? This would be pretty awesome :smiley:

If this could be done, it would also allow for creating snapshots of how I like things. It would also allow me to go back to how things were before I started watching a movie or turned on all the lights to find a needle on the floor or whatever :smiley:

There is no built-in save/restore mechanism for Z-Wave device states. You could achieve this by placing functions in Startup Lua that save the state of all your devices to a table and, on command, restore the saved states.

Thanks - I’ll look into that :slight_smile: First, PLEG then LUA :smiley:

In this case LUA is more appropriate.

I know, but for the rest of my scripting. This comes pretty far down my list :wink: