Aeotec door window sensor

I managed to get my aeotech z wave stick up and running but the home assistant gui has me a little lost in

groups.yaml

door_sensors:

name: Door Sensors

entities:

  • sensor.aeotec_zw120_door_window_sensor_gen5_access_control

  • sensor.aeotec_zw120_door_window_sensor_gen5_access_control_2

What I see on the front end is that works but far from pretty

Looks like an eye 23 if closed, if open 22. How do I fix this. Thanks

Here’s an example:

sensor:
  - platform: template
    sensors:
      frontdoor:
        friendly_name: "Front door"
        value_template: >-
          {% if is_state('sensor.aeotec_zw120_door_window_sensor_gen5_access_control', '22') %}
            open
          {% elif is_state('sensor.aeotec_zw120_door_window_sensor_gen5_access_control', '23') %}
            closed
          {% else %}
            unknown
          {% endif %}
        icon_template: >-
          {% if is_state('sensor.aeotec_zw120_door_window_sensor_gen5_access_control', '22') %}
            mdi:door-open
          {% elif is_state('sensor.aeotec_zw120_door_window_sensor_gen5_access_control', '23') %}
            mdi:door-closed
          {% else %}
            mdi:alert
          {% endif %}

also, as a recommendation, get in the habit of renaming your z wave nodes to a user friendly name. after you get 20 or 30 nodes you won’t remember which is …_2, …_3…_4, etc.

Use the example template in the docs to turn it into a binary_sensor.

1 Like