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. 
"Welcome Home" piston
        
          J_B_1
          
          
        
        #1
      
      Turn on lights when I arrive home
        
          dwinn
          
          
        
        #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.
        
          dwinn
          
          
        
        #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.
        
          J_B_1
          
          
        
        #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.
 
      
    
