Hello, I have an error in automation but I can’t find it:
alias: "doorbell_automation"
trigger:
- platform: state
entity_id: binary_sensor.doorbell_contact
to: 'off'
action:
- service: media_player.turn_on
entity_id: media_player.desktop_pc_thierry
- service: media_player.turn_on
entity_id: media_player.xbr_49x800e
- service: media_player.volume_set
data:
entity_id: media_player.sony_xbr_55x800h
volume_level: 0.6
- service: media_player.volume_set
data:
entity_id: media_player.desktop_pc_thierry
volume_level: 0.6
- service: media_player.volume_set
data:
entity_id: media_player..xbr_49x800e
volume_level: 0.6
- service: media_player.play_media
entity_id: media_player.desktop_pc_thierry
data:
media_content_id: 'http://192.168.1.106:8123/local/mp3/doorbell.mp3'
media_content_type: audio/mp4
- service: media_player.play_media
entity_id: media_player.sony_xbr_55x800h
data:
media_content_id: 'http://192.168.1.106:8123/local/mp3/doorbell.mp3'
media_content_type: audio/mp4
- service: media_player.play_media
entity_id: media_player.xbr_49x800e
data:
media_content_id: http://192.168.1.106:8123/local/mp3/doorbell.mp3
media_content_type: 'audio/mp4'
- service: notify.pushbullet
data:
title: 'Home assistant warning'
message: 'On sonne à la porte !'
- service: notify.email
data:
title: "Home assistant warning"
message: "On sonne à la porte"
The error in the log is:
doorbell_automation: Error executing script. Invalid data for call_service at pos 6: not a valid value for dictionary value @ data[‘entity_id’]
what does pos 6 means ?
Many thanks for your help, very apreciated.
Best regards