1) Give a description of the problem
Now that I’ve been using webcore for a little while, I’m looking to optimize some of my older pistons. I have a few pistons that run, but only for the 1st person who comes home. Like turning on lights after dark. I was thinking that a simple global variable might be easier to use
2) What is the expected behavior?
Just looking for a simple piston to set a global variable to true if any presence sensor is present, but then set it to false if both are gone. I need it to work if both come home or leave together as well. That is where I think I’m getting hung up
Is there any downsides to doing this, anything to consider with global variables?
Thanks