Hello everyone,
i have two issues:
- 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