cranrob Posted June 11, 2013 Posted June 11, 2013 Here's the scenario: I have an "arrive home" program, triggered by a garage door opening (via iolinc), which turns several outdoor lights to 100% to illuminate the way from the garage to the house. After 10 minutes, I have the outdoor lights switch off. What I would like to do is instead of having them switch off, I'd like to revert to whatever the dim level was on each light before the "arrive home" program ran. Is there any way to do this? Thanks.
LeeG Posted June 11, 2013 Posted June 11, 2013 Not easily. The pre 100% On Level change can be checked at a gross level, 0-20%, 21-40%, 41-60%, etc with individual Programs, saving some restore value in a variable. ie If the current On Level is 41-60% set a variable to 50. These are completely arbitrary values to keep the number of programs involved to a reasonable number. When it is time to restore the On Level another series of programs is needed to check the value in the variable and set the On Level accordingly. A series of Programs is needed for each device. Not a pretty process. A future enhancement to variables may allow the current device On Level to be saved and used later.
cranrob Posted June 11, 2013 Author Posted June 11, 2013 A future enhancement to variables may allow the current device On Level to be saved and used later. That would be extremely useful for me. I know the ISY is able to get the current on level (it shows on the admin console). It would be nice to have a command that can be put in a program that get current level and store it in a variable.
MWareman Posted June 11, 2013 Posted June 11, 2013 A future enhancement to variables may allow the current device On Level to be saved and used later. That would be extremely useful for me. I know the ISY is able to get the current on level (it shows on the admin console). It would be nice to have a command that can be put in a program that get current level and store it in a variable. I've tried to be a champion of that myself for a while.
Michel Kohanim Posted June 12, 2013 Posted June 12, 2013 Hi guys, Working on it. With kind regards, Michel
MWareman Posted September 6, 2013 Posted September 6, 2013 Just cycling back to this thread. Michel - is it possible to confirm if this functionality is included in the current work on variable enhancement? Thanks! Michael.
Michel Kohanim Posted September 6, 2013 Posted September 6, 2013 Michael, Not natively but you can assign to a variable and then revert. With kind regards, Michel
apostolakisl Posted September 6, 2013 Posted September 6, 2013 Michael, Not natively but you can assign to a variable and then revert. With kind regards, Michel Close enough. Being able to assign current dim level to a variable and vice-versa is a nice feature.
MWareman Posted September 7, 2013 Posted September 7, 2013 Michael, Not natively but you can assign to a variable and then revert. With kind regards, Michel Awesome! Sounds like just the ticket. Thanks!
Recommended Posts