Customize binary sensor

Hello there,

I am just starting on a zwave raspberry setup.

I got to the point where I can get my binary door sensor recognize and working. So far so good. However it shows ticked when the door is open and empty circle when its closed. I would like to invert that. What is the home assistant way of doing that?

  customize:
    binary_sensor.aeotec_doorwindow_sensor_sensor_4:
      friendly_name: Front door closed
    binary_sensor.aeotec_doorwindow_sensor_sensor_5:
      friendly_name: Back door closed

I think the usage of a binary sensor template should work. Just try something like this:

binary_sensor:
  platform: template
  sensors:
    front_door_closed:
      value_template: '{{ states("binary_sensor.aeotec_doorwindow_sensor_sensor_4") == "off" }}'
      friendly_name: 'Front door closed'
```
Depending on what your sensors send, you might have to change the "off" with "on" (or even true/false) in the above template to get the desired results.
3 Likes