I received the following error:
Error loading /config/configuration.yaml: mapping values are not allowed here in “/config/scripts.yaml”, line 3, column 13
and here is my scripts.yaml file:
- who_where:
alias: anyone enters or leaves a zone
sequence:
- service: notify.mobile_app_pixel_5
data:
message: "{{ trigger.to_state.attributes.friendly_name}} {{''left {{ trigger.from_state.state
}}'' if is_state(''trigger.to_state.state'',''not_home'') else ''arrived at
{{ trigger.to_state.state }}'' }}"
mode: single
- turn_sw2_off_if_on:
alias: Turn tradfri outlet off if on
sequence:
- condition: state
entity_id: switch.tradfri_outlet_on_off
state: 'on'
- type: turn_off
entity_id: switch.tradfri_outlet_on_off
domain: switch
mode: single
- turn_sw2_on_if_off:
alias: Turn tradfri outlet on if off
sequence:
- condition: state
entity_id: switch.tradfri_outlet_on_off
state: 'off'
- type: turn_on
entity_id: switch.tradfri_outlet_on_off
domain: switch
mode: single
I’ve been banging my head on the wall trying to find what I’ve done wrong. Can someone smarter than me please take a look at what is wrong with this file? Any help will be greatly appreciated.
Edit:
I first posted an old file. Here is the currenly erroring one
: