Flash A Light If Contact Is Open


#1

My garage is connected to my laundry room and my kids have a habit of leaving the washing machine door open. When I come home, I have lost count of how many times I have opened the walk in garage door only to bang it against the washing machine. I’m looking to do something similar to below.

My Presence sensor changes to arrived
AND
Garage Car Door changes to open
AND
Washing Machine Door is open
THEN
WAIT 30 seconds
Flash Light in the garage

This way as I am getting out of the car and the light in the garage will flash, warning me that the washing machine door is open so I know to gently open the walk in door. I started, by my IF Statement doesn’t seem right.


#2

I assume contact 4 is the garage door. I think I would turn it around and look for the garage door opening and then just check for presence sensors changed to present and contact 22 open. I think it could look like this:

If contact sensor 4 changes to open
Then
  If any of Presence sensors changed to present in the last 5 minutes
    And
   Contact sensor 22 is open
  Then
      Wait
       Flash lights
  End if
End if

Hope this helps.


#3

@guxdude, Thanks. This is what I changed it to.


#4

Looks good. Let use know if it works or you need more help.


#5

I created 2 virtual devices to test and it work as expected. Now I can stop yelling as soon as I walk in the door. :joy:

Thanks