Jump to content

How to check current status in program before changing


rrathke

Recommended Posts

Posted

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.

Posted

Hi rrathke-

 

Try something like this:

 

If
  Status Dimmer is Off


Then
  Set Dimmer On

Else

 

Hope this helps.

 

-Xathros

Posted

This then triggers the program when switch is press and turns it back on creating a unwanted loop.

Posted
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

Posted

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')

Posted

Anytime. Happy to help. Sorry about the omission on my first response.

 

-Xathros

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.6k
×
×
  • Create New...