marvel Posted April 12, 2012 Posted April 12, 2012 Hi folks, Is there a tutorial somewhere on setting up & using variables? I desire a simple "Goodnight" program. I figured I'd use a variable to track whether the house is in "Goodnight" status so devices/programs can change their behavior accordingly. I am unsure whether to use an Integer or State variable (I assume State variables are boolean and that's what I'd want?). I'm not sure what I'm supposed to put in the Init and Value fields, if anything. I'm assuming Init is the variable's desired initial state when the controller boots? But should that be "On/Off", "True/False", "0/1", or what? Also, assuming Value just displays the current value and I shouldn't put anything there? Is that right? Any assistance would be appreciated. Thank you!
LeeG Posted April 12, 2012 Posted April 12, 2012 Take a look at this section of the forum on Variables. viewforum.php?f=68 Values are normally set for Init and Value when the variable is initially defined. Variables are signed integers. State and Integer variable content is identical. The difference is a change to a State variable value causes a Program to be triggered (like If Status for a device), a change to an Integer variable value does not cause a Program to be triggered. This and much more is covered in topics under the Variables category link provided above. Feel free to post back if these topics do not cover your questions.
marvel Posted April 12, 2012 Author Posted April 12, 2012 Perfect, thank you for the link to that forum, Lee. That's exactly what I needed. Appreciate your time.
Recommended Posts