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.

My Garage Sensor & KPL Status Light Programs

Featured Replies

Posted

Below are the programs I wrote to show a KPL status light if my garage door is open. If the door is open, pressing the KPL will close it.

 

If you find an issue or a certain scenario where the program would fail or unnecessary lines, please let me know.

 

First off, all of the KPLs that I want controlled by these programs, I have in a scene called 'Garage 1 Status KPL'.

 

This program turns the relay off after 1 second...

If
       Status  'Garage 1 Relay' is On

Then
       Wait  1 second
       Set 'Garage 1 Relay' Off

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

 

This one checks the status of the garage door and then sets the KPL Scene based on the response. In my setup, Garage Door Closed returns On status and Garage Door Open returns Off or 1%.

If
       Status  'Garage 1 Sensor' is not Off

Then
       Wait  1 second
       Set Scene 'Garage 1 Status KPL' Off

Else
       Wait  1 second
       Set Scene 'Garage 1 Status KPL' On

 

This program closes the garage door if it is open and then runs the status program 20 seconds later to make sure an obstruction didn't prevent it from going down (which would turn off that KPL even if the door was still open)...

If
       Status  'Garage 1 Sensor' is Off
   And (
            Control 'Kitchen/Laundry Control R4' is switched Off
         Or Control 'Master Bed R4' is switched Off
         Or Control 'Kitchen Control R4' is switched Off
         Or Control 'Mike Bedside R4' is switched Off
       )

Then
       Set 'Garage 1 Relay' On
       Wait  20 seconds
       Run Program 'Garage 1 Status' (If)

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

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.