#Z-Wave Battery Level
sensor 1:
  platform: template
  sensors:
    klingel_sensor_battery:
      value_template: >-
        {%- if states.zwave.fibaro_zwave_doorwindow_sensor_1 -%}
          {{ states.zwave.fibaro_zwave_doorwindow_sensor_1.attributes.battery_level }}
        {%- else -%}
          n/a
        {%- endif -%}
      unit_of_measurement: '%'
      entity_id: zwave.fibaro_zwave_doorwindow_sensor_1