Since 5.6.0 of the Ring MQTT it it possible to take a snapshot. Entity name: button.voordeur_take_snapshot.
I am not sure how to change my current automation, which uses a camera to take a picture after pressing the ding into using this integration snapshot option.
Any ideas how?
Current automation:
alias: Screenshot - Voordeur (RING DONG)
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.voordeur_ding_2
to: "on"
condition: []
action:
- repeat:
until:
- condition: or
conditions:
- type: is_no_motion
condition: device
device_id: 32496862d964d150da13963ddc0d5b77
entity_id: bb8870e05d36e60c94a3c462a9a0c2a3
domain: binary_sensor
- condition: template
value_template: "{{ repeat.index > 3 }}"
sequence:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: camera.snapshot
data:
filename: >-
/media/snapshots/voordeur/voordeur_{{
now().strftime("%Y%m%d-%H%M%S") }}.jpg
target:
device_id: 450715b3ac1f0bbe24951a652a02f7fb
- service: notify.telegram_bericht_nick
data:
message: Bezoeker voordeur
title: Iemand aan de deur
data:
photo:
- file: >-
/media/snapshots/voordeur/voordeur_{{
now().strftime("%Y%m%d-%H%M%S") }}.jpg
capture: Snapshoot
mode: single