Lighting after Arrival with multiple triggers


#1

1) Give a description of the problem
Not sure how to get the following below to trigger properly in order

2) What is the expected behaviour?
Arrival > Garage Door Opens > Garage Light Turns On > Kitchen Door Opens > If No Motion from Garage Motion Sensor in last 5 minutes/Wait 5 Minutes > Keep Checking > Shut Off Garage Lights

3) What is happening/not happening?
Need Design Help with Above

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Your line 25 might never execute because the trigger (line 18) won’t be TRUE after a few seconds)
I would write something like this:

IF Contact Sensor 12 changes to CLOSED
Turn ON switch 28 

(garage door closed and lights are on)
another IF block just for the motion sensor

IF Motion Sensor 14 stays inactive 5 minutes 
Turn OFF switch 28

Garage door closed>lights on>as long as motion in the garage lights remain ON>5 minutes of no motion lights are OFF


#3

Question though, if I set it like that won’t the seperate if block trigger if the garage door is closed and motion has been inactive for 5 minutes > then turn off the light switch? I.E. if I’m working in the garage and the door changes to closed then turn off the lights after inactivity for 5 minutes?

I’m trying to simulate the idea that I’m showing up with my vehicle and phone from being gone > the garage door opens > the light turns on > a contact sensor opens and then closes (the kitchen/garage door into the home) > assume I went inside > and then if the motion sensor in the garage has been inactive for 5 minutes > shut the lights off.

If I’m carryin in groceries then I’ll be coming back out into the garage so I need that motion sensor/timed to continue checking and know when to change the light off after 5 minutes of activity.

I want to keep the situation above separate from say the idea that I’m working in the garage and didn’t just arrive home because then I’d like to keep the motion sensor time set to a higher value.

Make sense?
Thanks in advance,
AutomationHoarder


#4

Well if your motion sensor has no blind spots in the garage, the draft i wrote would accomplish what you want.

Yes but I assume you will be some what move in 5 minutes while you work???

I ussualy stay away from WAS open etc triggers. But if you want to add the kitchen door open/close a simple variable would take care of that. But the reason I didn’t include the kitchen door sensor because, things might get complicated when you open the kitchen door from inside and get into the garage.

My draft was just a very simple way of doing it but of course what you need is more important.