Jump to content

garage light program


pyroman175@yahoo.com

Recommended Posts

hey guys does this look right?? i want to turn on the gargae light sfor 5 minutes and turn on the kitchen lights until manually turned off and notify me when garage is open thanks pete

 

If

From Sunset

To Sunrise (same day)

And Status 'garage door sensor' is On

 

Then

Set Scene 'Garage Lights' On

Set Scene 'Kitchen Lights' On

Send Notification to 'text'

Wait 5 minutes

Set Scene 'Garage Lights' Off

 

Else

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

Link to comment

Do you want the garage light to turn off five minutes after the door is opened, or after it is closed?

 

Using "status" for your garage door as a trigger, you run the risk that if the door is closed prior to the five-minute time period, the program will halt execution and the light will stay on. While unlikely, if you open the door less than five minutes prior to sunrise, you will have the same problem.

 

Try, instead, control:

 

If
From Sunset 
To Sunrise (same day)
And control 'garage door sensor' is turned On   <<< try "control" here, instead

Then
Set Scene 'Garage Lights' On
Set Scene 'Kitchen Lights' On
Send Notification to 'text'
Wait 5 minutes 
Set Scene 'Garage Lights' Off

Else
 wait 5 minutes  <<< I would add these statements to account for the sunrise problem
 set scene "Garage Lights' off

Link to comment

If nothing else the If is wrong regardless of Status or Control ....

 

If

From Sunset

To Sunrise (same day)

And Status 'garage door sensor' is On

 

 

The To Sunrise must be (next day). The way it is written To time is before From time.

Link to comment

thank you sir.. works like a champ. here are the settings if anyone needs them

If
       From    Sunset  -  1 hour 
       To      Sunrise (next day)
   And Control 'garage door sensor' is switched On

Then
       Set Scene 'garage lights' On
       Set Scene 'Kitchen Lights' On
       Send Notification to 'text'
       Wait  5 minutes 
       Set Scene 'garage lights' Off

Else
       Wait  5 minutes 
       Set Scene 'garage lights' Off


Link to comment

Archived

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


×
×
  • Create New...