I have an automation which has started throwing an error when I run it:
Error: extra keys not allowed @ data['media_content_id']
Any idea what I’ve done wrong?
This is the automation:
alias: Doorbell Pressed
description: ""
triggers:
- entity_id:
- binary_sensor.reolink_video_doorbell_wifi_visitor
to: "on"
trigger: state
conditions: []
actions:
- variables:
current_state: "{{ states('media_player.living_room') }}"
- sequence:
- action: script.send_camera_snapshot_doorbell_pressed
continue_on_error: true
data:
camera_id: reolink_video_doorbell_wifi_fluent
- data:
media_content_id: /local/front-door.mp3
media_content_type: music
announce: true
action: media_player.media_play
continue_on_error: true
target:
entity_id:
- media_player.kitchen_display_google_cast
- media_player.lounge_display_google_cast
- media_player.study_speaker_lms_castbridge
- data:
media_content_id: /local/front-door.mp3
media_content_type: music
announce: true
action: media_player.media_play
continue_on_error: true
target:
entity_id:
- media_player.bedroom
- action: script.send_camera_snapshot_doorbell_pressed
continue_on_error: true
data:
camera_id: reolink_video_doorbell_wifi_fluent
- parallel:
- action: camera.play_stream
metadata: {}
data:
format: hls
media_player: media_player.lounge_display_google_cast
target:
entity_id: camera.unnamed_doorbell
- action: camera.play_stream
metadata: {}
data:
format: hls
media_player: media_player.kitchen_display_google_cast
target:
entity_id: camera.unnamed_doorbell
- metadata: {}
data: {}
target:
entity_id: button.asus_asus_webview
action: button.press
- data:
topic: iotlink/workgroup/asus/commands/run
payload: >-
{ "command": "C:\\Program Files
(x86)\\Google\\Chrome\\Application\\chrome.exe", "args":
"http://192.168.1.4:81/mjpg/doorbell/video.mjpg", "path":
"C:\\Program Files (x86)\\Google\\Chrome\\Application", "user":
"", "visible": true, "fallback": true }
qos: 0
retain: false
action: mqtt.publish
- action: script.send_camera_snapshot_doorbell_pressed
data:
camera_id: reolink_video_doorbell_wifi_fluent
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- action: media_player.turn_off
metadata: {}
data: {}
target:
entity_id: media_player.bedroom
- action: media_player.turn_off
metadata: {}
data: {}
target:
entity_id: media_player.lounge_display_google_cast
- action: media_player.turn_off
metadata: {}
data: {}
target:
entity_id: media_player.bedroom
mode: parallel
``