I would love to be able to use value templating on z-wave devices, mainly for sensors.
I was looking around and found that the Command line Sensor have something similar. https://home-assistant.io/components/sensor.command_line/#cpu-temperature
I have a Smoke Sensor where the value 0 means Off and value 3 means On, i would like to be able to do a configuration like this:
zwave:
usb_path: /dev/ttyUSB0
config_path: /usr/local/share/python-openzwave/config
customize:
sensor.smoke_sensor_4:
value_template: >-
{%- if value = "3") %}
on
{% else %}
off
{%- endif %}
If i want to do this right now, i’d have to make a template sensor, and with 8 smoke-sensors, thats 8 new “devices” to configure. And every smoke-sensor have 4 differens sensors that work in the similar way. Thats 8*4 devices needing configuration.
Would also be acceptable if there was a generic feature in the customize configuration instead.