Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106256

Comparing states of two entities

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 106256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>