Hi guys!
Im trying to setup this esphome esp32 doorbell
And im a little stuck on the automation, it asks for a device_id: in the automation YAML.
alias: Doorbell push
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.doorbell_doorbell_button
from: "off"
to: "on"
condition: []
action:
- service: camera.snapshot
data:
filename: >-
/config/www/snapshots/doorbell_{{ now ().year }}{{ now ().month }}{{ now
().day }}_{{ now ().hour }}{{ now ().minute }}.jpg
target:
device_id: 259cb70a2f3cb893f3ca152e51aefa60
- service: notify.notify
data_template:
title: Doorbell
message: Someone is at the door
data:
image: >-
/local/images/doorbell_{{ now ().year }}{{ now ().month }}{{ now
().day }}_{{ now ().hour }}{{ now ().minute }}.jpg #Must be updated
clickAction: /lovelace/cameras
mode: single
How in earth do I find the device_id?
Thanks