ckubitz Posted November 19, 2009 Posted November 19, 2009 It would be very useful to have the ability to create and use variables in programs. For example, query a dimmer and save the value for future 'standard' dimmer level. A second request would be for a standard 'C' type 'case statement' using a variable to switch processing options. Regards, Carl Quote
Michel Kohanim Posted November 20, 2009 Posted November 20, 2009 Hi Carl, Variables are a heavily requested feature and we are working on implementing them. Can't give you an ETA though. Please do be kind enough to watch (subscribe) to http://forum.universal-devices.com/viewtopic.php?t=930 to be notified. The case statement might be a little difficult using our UI. We'll look into it. With kind regards, Michel Quote
Goose66 Posted February 4, 2010 Posted February 4, 2010 + 1 for variables. It would be nice to persist state somewhere other than on a physical device. Even if it was as primitive as a fake device with an on/off state. I like to have a current state for my house, e.g. Morning, Day, Evening, Sleep, Vacation, Emergency. I can use the state in programs to determine how the response to certain actions should proceed. As far as a case statement, any ability to have nested IFs or Else Ifs would work. Else Ifs would also work in your GUI. Quote
Michel Kohanim Posted February 4, 2010 Posted February 4, 2010 Hi kingwr, Just out of curiosity, all the use cases you have provided are binary, right? If so, are you aware that you can already use programs as binary variables? With kind regards, Michel Quote
Goose66 Posted February 4, 2010 Posted February 4, 2010 Michel, Thanks for that. I did see that in another post and that will work in the near term. Instead of one state variable, I can have 6 programs for each state, and in the "Then" action section of each program, they can run the 'Else" action section of each of the other states, making the states exclusive. So running Sleep State Then will set Sleep State program to true, as well as set all the other states to false. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.