Skip 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.

Lighting Trigger Program Help

Featured Replies

I have a program that is set to trigger a lighting scene when the deadbolt is unlocked via the keypad between Sunset - to Sunrise +. I am using the deadbolt access alarm status "keypad unlock" and the parameters to initiate this and trigger the "then" path of a separate program to set the lighting scene. This generally works as intended but the issue comes about when the deadbolt status hasn't changed from "keypad unlock" and the trigger time of day comes around again, thus triggering the program to run since status is still "keypad unlock". I am looking for a solution that only triggers the program once when the deadbolt is unlocked and not again if the deadbolt remains unlocked and the trigger time comes around again. Unfortunately the access alarm parameters are only "status" and not "control" for the "keypad unlock" condition. For clarification there is another deactivation program for the trigger lighting based on time of day or by manual deactivation. Any thought/insight on resolving this is greatly appreciated.

Screen Shot 2026-03-05 at 7.58.44 AM.png

You may need to split this into two programs. Try this easy solution first.

Program 1: If keypad status is unlocked. then wait 2 seconds and then disable the program you have above. Else,--> enable it.

Program 2: above program.

But the question that comes to mind, is that you say only status is available, but the program shows control?

You could have the unlocking keypad set a variable and run your program with the variable. Next, reset the variable back to zero after an appropriate time delay.

I believe the simplest approach would be to have two programs.

The first:

if status keypad is unlocked

then run second program (if path)

else nothing

The second program, disabled:

if time is from sunset to sunrise

then run entry lighting program (then path)

Ah yes, I call these "latent triggers", when the time interval test becomes the trigger instead of just a static condition you want to "And" against. I usually use a variable as @DennisC suggests. It would be nice if there was a way to make time intervals optionally work like integer variables, to not trigger.

  • Author
21 hours ago, dbwarner5 said:

You may need to split this into two programs. Try this easy solution first.

Program 1: If keypad status is unlocked. then wait 2 seconds and then disable the program you have above. Else,--> enable it.

Program 2: above program.

But the question that comes to mind, is that you say only status is available, but the program shows control?

Thank you for your response. I have been considering this as I have something similar to this set up with a notification upon condition that only want to execute once and not continually trigger.

With regard to the "status" that I mentioned, the deabolt access alarm condition is only available as "status" that can be referenced and stays static at that until the state changes and not "control" type of notification/command that can be referenced once when that condition/state charges.

12 hours ago, DennisC said:

You could have the unlocking keypad set a variable and run your program with the variable. Next, reset the variable back to zero after an appropriate time delay.

Thank you for the response, I will try this approach out.

9 minutes ago, n_sievers said:

10 minutes ago, n_sievers said:

With regard to the "status" that I mentioned, the deabolt access alarm condition is only available as "status" that can be referenced and stays static at that until the state changes and not "control" type of notification/command that can be referenced once when that condition/state charges.

That's the problem with status-only devices. Using a variable allows you to convert it to a control type event by having the status change set a state variable, wait a few seconds, then reset it. Like this:

If

Status = true

Then

set s_event_variable = 1

Wait 5 seconds

set s_event_variable = 0

Then your other program can look for the variable = 1 AND time = xxx to yyy

  • Author
3 hours ago, oberkc said:

I believe the simplest approach would be to have two programs.

The first:

if status keypad is unlocked

then run second program (if path)

else nothing

The second program, disabled:

if time is from sunset to sunrise

then run entry lighting program (then path)

Thank you! I will try this approach 1st.

Create an account or sign in to comment

Account

Navigation

Search

Search

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.