Trying to set up several templated binary sensor - but seems the syntaxis is a little bit different
With this in binary_sensor.yaml get several errors that data for sensors is needed
- platform: template
sensors:
bedroom_humidity_low:
value_template: "{{ states.sensor.0_hum.state | int < 39 and states.input_boolean.rules_sleeping.state == 'off' }}"
kids_humidity_low:
value_template: "{{ states.sensor.1_hum.state | int < 30 and states.input_boolean.rules_sleeping.state == 'off' }}"
2017-08-18 20:21:33 ERROR (MainThread) [homeassistant.config] Invalid config for [binary_sensor.template]: expected a dictionary for dictionary value @ data[‘sensors’]. Got None. (See ?, line ?). P
lease check the docs at https://home-assistant.io/components/binary_sensor.template/