Been playing around a little with Rule Machine, after switching over from Wink a few months ago, and just using some simple actions and notifications.
Trying to figure out how to do the following:
State: Bathroom Door contact is Open, Motion is Inactive, Light is off.
Someone walks into the bathroom, Motion is changed to Active, and the light is turned on, The door is then closed, and contact is changed to Closed.
The light stays on while they do their business.
Door opens, Contact sensor Changes to Open, and motion changes to inactive, light is turned off after some amount of time.
So far everything I have tried has either turned off the lights after motion goes inactive, and contact sensor is closed, or does not ever turn off the light after contact sensor goes open and motion goes inactive.
So I am starting from scratch...
My guess is that I will need 2 rules to accomplish this, do I also need to use a virtual switch?