I’m having some issues with a piston, and I can’t for the life of me figure out why it’s not working.
Here’s the scenario:
Garage light should turn on when entering from either door, or when motion detected. Light should turn off when there is no motion after 1 minute.
Two doors leading to garage, one from the basement, one from outside.
Two door sensors on each door.
One Osram Lightify bulb
One motion sensor (EcoLink)
Here’s the latching piston:
If Any of Garage Entrance or Garage/Basement Entrance contact changes to open
Garage Motion motion changes to active
Using Garage Light, Turn On
Garage Motion motion stays inactive for 1 minute
Using Garage Light, Turn Off
That seems right… The light turns on, but never turns off. Are there any glaring issues in my code?
I should mention that the EcoLink motion detector has a 4-minute reset time. This might have something to do with it, but I’m not sure.
Thanks for the help!