What I’m Trying to Accomplish:
When I come home I want the bedroom light to turn on (once per day). If I leave and come back, I don’t want it going back on.
Idea:
I figured I could create a local variable to do this and set it to boolean. So when I first arrive home…the variable is set to var_JustHome=true …and then it gets set to…var_JustHome=false…and then at some point later in the night var_JustHome …goes back to true
Issue:
The problem I’m having is the variable needs an “initial value” to get the process started, but the only way I see to do that is when I define it within the piston. The problem with that is if that happens every time the piston runs, it’s obviously not going to work.
I hope I’m missing something obvious here due to my lack of understanding. Or do I just create a global variable? Or maybe there’s a different way all together…I tried reading through Mike’s examples and got tripped up on this problem. Thanks for any help…
Snapshot Attached: