Jump to content

My Garage Sensor & KPL Status Light Programs


mike123456789

Recommended Posts

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

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...