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.

Program Deactivation

Featured Replies

Posted

I have a program that prevents any of the outdoor lights from being turned on and if they were turned on, they would be shut off immediately. This program is only active until after sunset.

 

Sometimes with cloud cover here in PHX, it gets darker earlier outside and I want to temporarily disable this program just for that one day to allow any of the outside lights to be manually turned on, but the following night, revert back to normal operation. How do I achieve something like this? Variables? If so, can an example be provided? Thanks

Do you have any dark/light sensors?

  • Author

No I don't. However, my program works fine...I just occasionally want to deactivate it just for the one night so I can manually turn on the lights back there sooner. This is a rare occurrence that I want to control it in this manner.

I assume you have a program such as:

If
       From    Sunrise
       To      Sunset  (same day)
   And (
            Status  'Devices / Outside / Front' is not Off
         Or Status  'Devices / Outside / Porch' is not Off
         Or Status  'Devices / Outside / Outside1' is not Off
       )

Then
       Set Scene 'Scenes / Outside / All Outside' Off

Else
  - No Actions - (To add one, press 'Action')

 

Option 1:

You could add an integer variable, named something like "KeepOutsideLightsOff"

Setting it to 1 keeps the program running, setting it to 0 prevents the program from running.

You would add 1 more condition to the check.

If
       From    Sunrise
       To      Sunset  (same day)
   And (
            Status  'Devices / Outside / Front' is not Off
         Or Status  'Devices / Outside / Porch' is not Off
         Or Status  'Devices / Outside / Outside1' is not Off
       )
   And $KeepOutsideLightsOff is 1

Then
       Set Scene 'Scenes / Outside / All Outside' Off

Else
  - No Actions - (To add one, press 'Action')

Note: I made it an integer variable just to that changing it wouldn't unnecessarily trigger the program. You could make it a state variable, and changing it would trigger the program, but I don't think it would do much.

 

Then create programs to set that variable to a 0 or 1.

 

Option 2:

If you have a spare KPL button, you could use that instead. Forget the variable, and use the status of the KPL button.

 

The program would change to:

If
       From    Sunrise
       To      Sunset  (same day)
   And (
            Status  'Devices / Outside / Front' is not Off
         Or Status  'Devices / Outside / Porch' is not Off
         Or Status  'Devices / Outside / Outside1' is not Off
       )
   And Status  '' is Off

Then
       Set Scene 'Scenes / Outside / All Outside' Off

Else
  - No Actions - (To add one, press 'Action')

Note: I have it using the KPL button status of "Off" so that usually the KPL button won't be lit. So:

Off=Program runs as usual (no daytime use)

On=Allow daytime use

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.