Why does this throw an error?
- id: lichten_woonkamer_aan
trigger:
platform: state
entity_id: binary_sensor.nc_motion_woonkamer_01_sensor,binary_sensor.nc_motion_woonkamer_02_sensor
to: 'on'
condition:
condition: numeric_state
entity_id: sensor.nc_motion_woonkamer_02_luminance
below: 35
action:
service: light.turn_on
entity_id: >-
{% if is_state('input_boolean.movie', 'on') %}
light.eettafel
{% else %}
light.eettafel,light.tv
{% endif %}
Invalid config for [automation]: not a valid value for dictionary value @ data[‘action’][0][‘entity_id’] Got none.
I need the entity id’s to be variable. This works fine in data_templates. The template itself it valid, I checked in the developer tools.