Jump to content

How to check current status in program before changing


rrathke

Recommended Posts

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

Hi rrathke-

 

Try something like this:

 

If
  Status Dimmer is Off


Then
  Set Dimmer On

Else

 

Hope this helps.

 

-Xathros

Link to comment
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
Guest
This topic is now closed to further replies.

×
×
  • Create New...