"Welcome Home" piston


#1

Turns on a light IF the garage door opens, then IF the interior door opens within a set time limit, and also IF the daylight is below a set threshold. It’s pretty simple, but it works. :slightly_smiling_face:


Turn on lights when I arrive home
#2

Thanks! I wanted to do the same, but didn’t know about the ‘followed within 2 minutes by’ statement. That saved me some time.


#3

I actually tweaked it a bit, and the new version is more reliable.


#4

It does work better than the first version, but I still don’t understand why sometimes the original routine wouldn’t run or cause false positives for me. The statement (…followed within 2 minutes by…) makes sense–this event must happen first, then the next event must happen within 2 minutes.


#5

Yeah, I had the same problem which is why I modified the conditions. The original looks good “on paper”, but just wasn’t consistent.