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:
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
skracke
(Erik Trapp)
July 12, 2018, 11:40pm
2
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 %}
finity
July 14, 2018, 4:07am
3
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.
Tinkerer
(aka DubhAd on GitHub)
July 14, 2018, 9:36am
4
Use the example template in the docs to turn it into a binary_sensor
.
1 Like