@petro : thanks for sharing. i try to do the same with low battery level:
binary_sensor:
- platform: template
sensors:
low_battery:
friendly_name: low battery
value_template: >-
{{ is_state('sensor.battery_level' < 10 %)
or is_state('sensor.battery_level_2' < 10 %)
or is_state('sensor.hue_outdoor_motion_sensor_1_battery' < 10 %) }}
Independently of the batterylevel, the state of this binary sensor is always ‘off’. What i do wrong?
Thanks