Hello Clever People,
I am struggling to understand why the following automation is throwing an error:
- alias: "Velux opens when temp high"
trigger:
- platform: numeric_state
entity_id: sensor.2f_landing_temp
above: 25
condition:
- condition: state
entity_id: input_boolean.big_v_auto_setting
state: 'on'
action:
- service: cover.set_cover_position
data_template:
entity_id: cover.big_velux
position: '{{ states('input_number.velux_open_setting') | int}}'
When I put an integer into position eg position: 50, the automation works fine.
And ‘states(‘input_number.velux_open_setting’) | int}}’ works fine when plugged into Developer Tools/Template.
The error I get when I press the “Check Configuration” button is:
Error loading /config/configuration.yaml: while parsing a block mapping
in "/config/automations/velux_automations.yaml", line 64, column 9
expected <block end>, but found '<scalar>'
in "/config/automations/velux_automations.yaml", line 65, column 31
line 64 is: entity_id: cover.big_velux
No doubt I am having an idiot moment. All help gratefully accepted.
Incidentally, is there a guide to what the error messages mean - for example what does and mean?