Yaml Automation wrong

Hello everyone,

i have two issues:

  1. when checking the configuration it tells me:

Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/./alarmanlage/alarm/notify_state_open.yaml”, line 1, column 1
expected , but found ‘’
in “/config/./alarmanlage/alarm/notify_state_open.yaml”, line 32, column 2

this is my automation in yaml:

alias: 'Alarmanlage: Tür offen.'
description: ''
trigger:
  - platform: state
    entity_id:
      - alarm_control_panel.alarmanlage
    from: "disarmed"
    to: "arming"
condition: 
  - or:
    - condition: state
      entity_id: binary_sensor.contact_balkontuer
      state: 'on'
    - condition: state
      entity_id: binary_sensor.contact_terrassentuer
      state: 'on'
    - condition: state
      entity_id: binary_sensor.schlafzimmerfenster
      state: 'on'
action:
  - service: media_player.volume_set
    data:
      volume_level: 0.4
    target:
      entity_id: media_player.show_kuche
  - service: notify.alexa_media
    data:
      target: media_player.show_kuche
      data:
        type: tts
      message: Es sind nicht alle Türen geschlossen.
 - service: media_player.volume_set
    data:
      volume_level: 0.2
    target:
      entity_id: media_player.show_kuche
  - service: media_player.volume_set
    data:
      volume_level: 0.2
    target:
      entity_id: media_player.alexa_bad
  - service: media_player.volume_set
    data:
      volume_level: 0.2
    target:
      entity_id: media_player.alexa_display
  - service: media_player.volume_set
    data:
      volume_level: 0.1
    target:
      entity_id: media_player.alexa_schlafzimmer
mode: single

I dont have a clue what i should change.

and the second issue is with the light. they just wont turn on. I have no idea why it does not work.

alias: "Alarmanlage: Send notification when alarm triggered"
trigger:
  - platform: state
    entity_id: alarm_control_panel.alarmanlage 
    to: "triggered"
action: 
  - service: notify.mobile_app_sm_f926b 
    data:
      message: "ALARM"
  - service: notify.mobile_app_don_christian
    data: 
      message: "ALARM"
  - service: media_player.volume_set
    data:
      volume_level: 0.4
    target:
      entity_id: media_player.show_kuche
  - service: notify.alexa_media
    data:
      message: Einbruchsalarm aktiviert.
      target: media_player.show_kuche
      data:
        type: tts
  - service: media_player.volume_set
    data:
      volume_level: 0.4
    target:
      entity_id: media_player.alexa_bad
  - service: notify.alexa_media
    data:
      message: Einbruchsalarm aktiviert.
      target: media_player.alexa_bad
  - service: media_player.volume_set
    data:
      volume_level: 0.4
    target:
      entity_id: media_player.alexa_display
  - service: notify.alexa_media
    data:
      message: Einbruchsalarm aktiviert.
      target: media_player.alexa_display
      data:
        type: tts
  - service: media_player.volume_set
    data:
      volume_level: 0.4
    target:
      entity_id: media_player.alexa_schlafzimmer
  - service: notify.alexa_media
    data:
      message: Einbruchsalarm aktiviert.
      target: media_player.alexa_schlafzimmer
      data:
        type: tts
  - service: light.turn_on
    data: {}
    target:
      entity_id: 
        - light.tv_links
        - light.tv_rechts
        - light.sofa_links
        - light.sofa_rechts
  - service: light.turn_on
    data: {}
    target:
      entity_id:
        - light.dimmable_light_1
mode: single

Can anyone help me?

thanks so much.

Best, Stephanie

Your errors aren’t related to that automation. Your errors are related to

If what you posted is the contents of /alarmanlage/alarm/notify_state_open.yaml, then you need to show how you’re adding this file to configuration.yaml. If it’s a package, you’re simply missing the automation: key.

oh sorry, i just copied the wrong one. you are right. i edited my post :slight_smile:

Sorry but your edits still have nothing to do with your errors. Your errors are pointing out a file. You’re providing automations that are unrelated to the file.