I have two contact sensors, one detecting when a door has been opened, and another when a handle has been raised.
When the handle is raised, and the door is closed, it engages the doors deadlocks.
I’d like a binary sensor to show whether or not the deadlocks are engaged.
The logic I need is as follows:-
If the door is opened at any time, deadlocks are false (disengaged)
If the handle is raised whilst the door is closed, then the deadlocks are engaged.
The state of the handle should be ignored whilst the door is open.
I can do this with an automation and an input boolean helper, but wondered whether or not this is doable with a template sensor ?
9 posts - 3 participants