pyroman175@yahoo.com Posted June 20, 2012 Posted June 20, 2012 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')
oberkc Posted June 20, 2012 Posted June 20, 2012 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
pyroman175@yahoo.com Posted June 20, 2012 Author Posted June 20, 2012 cool i will try this and let you know. on summary if everything is right should it read true and not false?
pyroman175@yahoo.com Posted June 20, 2012 Author Posted June 20, 2012 well i tried it and the garage lights come on when door opens and shuts off when door closes ???? what did i do wrong should i use a light device instead of scene
LeeG Posted June 20, 2012 Posted June 20, 2012 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.
pyroman175@yahoo.com Posted June 20, 2012 Author Posted June 20, 2012 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
Recommended Posts