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.

Door Lock entry light Program?

Featured Replies

Posted

Hello ISY programmers,
Before I updated my Z wave dongle to the current version this program would turn the light on then turn it off regardless of door lock status.
Now with the new dongle  I unlock the door the light comes on and if I lock the door when I get inside the program stops and the light stays on.
If I open the door and leave it unlocked the program completes and the light goes off.
How can I get this to work if we lock the door after we get inside?
Suggestions appreciated.
Thank you,

door lock program.PNG

Solved by lilyoyo1

Go to solution
  • Solution
7 hours ago, DSpringsteen said:

Hello ISY programmers,
Before I updated my Z wave dongle to the current version this program would turn the light on then turn it off regardless of door lock status.
Now with the new dongle  I unlock the door the light comes on and if I lock the door when I get inside the program stops and the light stays on.
If I open the door and leave it unlocked the program completes and the light goes off.
How can I get this to work if we lock the door after we get inside?
Suggestions appreciated.
Thank you,

door lock program.PNG

That's because your program reevaluates the if during the wait. When you lock the door, it's no longer unlocked so the program stops running and the light stays on. 

I typically separate my off programs from my on program so that i have additional flexibility but you can accomplish your task with 1 program.

If time is x and (door is unlocked and door is not locked)

Then do what you said

or else 

Wait 20sec turn off light

 

 

 

  • Author
12 hours ago, lilyoyo1 said:

That's because your program reevaluates the if during the wait. When you lock the door, it's no longer unlocked so the program stops running and the light stays on. 

I typically separate my off programs from my on program so that i have additional flexibility but you can accomplish your task with 1 program.

If time is x and (door is unlocked and door is not locked)

Then do what you said

or else 

Wait 20sec turn off light

 

 

 

lilyoyo1,

Thank you very much for the reply. I knew what was happening I was just trying to solve it in 1 program. I fixed the programming this morning using 2 programs and it works perfectly.

Thank you,

David

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.