I have a few scenes that coordinate with each other through the use of global variables, usually short-lived timestamps of when an event occurred. For one scene I’m tracking when I last opened the garage door–which I usually only do a couple times a week. Since I’m still adding devices and plugins to my network regularly, I tend to reload the vera UI somewhat often–thus losing the garage door timestamp. What’s the best way to store a long-lived value like that? It looks like I can execute luup.variable_set on an arbitrary object and those values appear to persist. Just wondering if that’s usually how such a thing is done or if there’s a better way.
I do that … but I try to put the variables on device that this state is related to.
You can also just create a dummy device that you use for the purpose of persistent state.