Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to check current status in program before changing

Featured Replies

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.

Hi rrathke-

 

Try something like this:

 

If
  Status Dimmer is Off


Then
  Set Dimmer On

Else

 

Hope this helps.

 

-Xathros

  • Author

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

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

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

  • Author

Xathros

It worked, now I understand.....Thanks!!

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

 

-Xathros

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.