Jump to content
C4 Forums | Control4

How to program an entry scene


slevittmd

Recommended Posts

I’d like to make an entry scene that activates when I come in to the house at night. I was planning to have the door opening trigger the scene (through contact sensor on the alarm, which was integrated). However, only want it to happen when I come home, not when leaving, and only at night. I’m thinking the best way to make that happen is to activate the scene after a garage door opens. Something along the lines of if garage door 2 opened within the past 5 minutes, and if the time is more than sunset+30 minutes, then when garage entry door is opened, activate entry scene.

However, not sure the language I’d need to make that happen. Thanks!

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites


Make a timer agent that runs when the garage door opens for 5 minutes
Then when the door contact opens> use a conditional if the timer is running> if sunset> turn on desired scene
 

Thank you! Sounds like that would work. How do you put two if’s in there though? I haven’t done much programming with conditionals. Would it just be the two if statements in a row? Any nesting?

Is there any good guide on how to program using conditionals? Like what needs to be nested? Where/when you need to insert stops? Etc?


Sent from my iPhone using Tapatalk
Link to comment
Share on other sites

I use that as well but that works for when you come home but mostly for AV stuff, the above is specifically for coming and going for all users including guests. Always more than 1 way to skin the cat

Screen%20Shot%202017-09-22%20at%2011.21.

When you say hey google im home

Screen%20Shot%202017-09-22%20at%2011.22.

Screen%20Shot%202017-09-22%20at%2011.23.

The delay then the wifes part overrides my music playing in case we both are arriving

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...