Preformatted text
Hello
I need help to find out what the problem is.
I made automation to get a snapshot to my iPhone when my nest doorbellPreformatted text
is pressed.
This how it looks like:
- id: '1677360232870'
alias: Send Nest Doorbell Snapshot
description: ''
trigger:
- platform: device
device_id: ae9616dff9ab2b7e3dc9b96a4822cf62
domain: nest
type: doorbell_chime
action:
- service: camera.snapshot
data:
filename: /config/www/snapshots/doorbell.jpg
data:
attachment:
content-type: jpeg
url: https://xxx.xxx.xx.xx/local/snapshots/doorbell.jpg
target:
entity_id: camera.front_camera
- service: notify.mobile_app_ihsan_iphone_10
data:
message: Someone is at the door
data:
attachment:
content-type: jpeg
url: https://xxx.xxx.xx.xx/local/snapshots/doorbell.jpg
When I check it in developer tool, there is no problem
But in Log I get this error:
Logger: homeassistant.components.automation.send_nest_doorbell_snapshot
Source: helpers/script.py:409
Integration: Automation (documentation, issues)
First occurred: 5:35:52 PM (2 occurrences)
Last logged: 5:36:11 PM
Send Nest Doorbell Snapshot: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘data’]
And this:
Logger: homeassistant.components.automation.send_nest_doorbell_snapshot
Source: components/automation/init.py:255
Integration: Automation (documentation, issues)
First occurred: 5:35:52 PM (2 occurrences)
Last logged: 5:36:12 PM
Error while executing automation automation.send_nest_doorbell_snapshot: extra keys not allowed @ data[‘data’]
Any help please