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

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...