rrathke Posted March 17, 2014 Share Posted March 17, 2014 I could not find an example of how to check the current status of a dimmer switch before changing it. In a sunset program I would like to check and see if the dimmer is on before I turn it on automatically via the sunset program. This is in case someone has the illumination already set to their liking and I don't want to change the illumination already established in the case it's on. Link to comment
Xathros Posted March 17, 2014 Share Posted March 17, 2014 Hi rrathke- Try something like this: If Status Dimmer is Off Then Set Dimmer On Else Hope this helps. -Xathros Link to comment
rrathke Posted March 17, 2014 Author Share Posted March 17, 2014 This then triggers the program when switch is press and turns it back on creating a unwanted loop. Link to comment
Xathros Posted March 17, 2014 Share Posted March 17, 2014 This then triggers the program when switch is press and turns it back on creating a unwanted loop. Hehe - Yep. Sorry - Missed a step: If Status Dimmer is Off And Control Dimmer is not Switched Off Then Set Dimmer On Else Link to comment
LeeG Posted March 17, 2014 Share Posted March 17, 2014 If looking to do something at Sunset if the device is Off .... If Time is Sunset And Status 'SwitchLinc Dimmer' is Off Then Set 'SwitchLinc Dimmer DB' On Else - No Actions - (To add one, press 'Action') Link to comment
rrathke Posted March 17, 2014 Author Share Posted March 17, 2014 Xathros It worked, now I understand.....Thanks!! Link to comment
Xathros Posted March 17, 2014 Share Posted March 17, 2014 Anytime. Happy to help. Sorry about the omission on my first response. -Xathros Link to comment
Recommended Posts