Binary Sensor invert property

Introduce “invert” boolean property to binary sensors. When invert: true, the value is inverted so that true is false and false is true.

Bump :slight_smile: I really think this is a useful feature!

2 Likes

Yes that would be very usefull for me too. Please introduce ‘invert’ property of binary sensors.

That would be useful, indeed.

Absolutely!

Seems I’m not alone :slight_smile:

+1 as well

Funny, you can’t even use a filter sensor for this, since it looks like it consists of numeric operations only.

I think it would be nice if there was some standard behavior that’s inherited for all sensor (and binary_sensor) entities that included the filtering capability, rather than having yet more entities floating around. Then you could easily invert binary_sensor values, convert between imperial and metric units and do other transformations. This sort of capability is done in ESPHome and it has turned out to be really handy.

Sorry but for a binary sensor you can use a template to define the state.
The template contains the logic you require the sensor to operate under.
By sticking a ‘not’ in front of this logic you have immediately inverted it.
Have I missed something ?

Sorry but for a binary sensor you can use a template to define the state.
The template contains the logic you require the sensor to operate under.
By sticking a ‘not’ in front of this logic you have immediately inverted it.

You mean crate a binary template sensor? Or am I missing something? Is what you’re describing documented anywhere?

I’m pretty sure there is another thread regarding the inversion of covers. This one is for binary sensors