First piston and Global Variable


#1

OK, does this seem to do what I want it to do? If everyone is home turn off porch light, and if one or both of us leave turn on porch light?

Also, I was wanting to set some global variables for different things. But I cannot find for the life of me figure out how to change it. The first GV I am trying to set is just a number based on the number of people in the house. So @currentoccupancy + 1, or whatever. I am using only the web based editor.

Thanks for any assistance.


#2

Well just test it right? Looks like it should work. And for the global var just define one in the right hand corner, then add a action and choose “Location”. Now you can select a command, use “Set variable” and you should be able to select your variable.


#3

You want $nextsunrise. Sunrise will give you the sunrise time of that day not tomrrow.