Hi,
I want to create a virtual presence sensor for the basement. The basement has a door with a contact sensor, and two motion sensors.
The idea I have is:
If the door is closed and new motion is detected => present (that's easy)
If the door opens, then closed, then motion is detected =` present
If motion is detected, then the door opens, closes, and no motion is detected => absent
Any one has written rules like such ? In particular, I can't figure out how to chain events like that as triggers ?