Hello Community,
A lot of device classes were added in the last Home Assistant releases. One is the “Problem” device class. It is “Ok” when the sensor is offline (off) and “Problem” when the sensor is on. Its a philosophical question if this is right or wrong.
My Point: In some cases it is necessary the invert the result of a binary sensor. At the moment I resolve this problem by creating an additional template sensor with
state: {{ not is_state('input_boolean.my_sensor','on') }}
or
state: {{ is_state('input_boolean.my_sensor','off') }}
I think its only a little bit of an implementation afford to make the result of a binary sensor invertible. But - to be honest - I have not the skills to add this feature on my own and send a pull request.
Kind Regards
Chewy
P.S.: At the moment I try to implement an error system to my home assistant instance (here) (some ping sensors) so that home assistant alerts me if some system is not reachable anymore.