Hello new to home assistant just been messing with it two days. I would like to have an automation that takes a snapshot when someone triggers the motion. What this does is turns on the streaming, I thought it would help with the delay in the photo, not sure. Anyways I turn on the stream, then press the snapshot button, then do service snapshot. I don’t know if these two are the same thing but what I have noticed is the photo saved by the camera.snapshot is the previous motion snapshot. Anyone got a good automation for a ring door bell with ring-mqtt, or can spot what am I doing wrong?
alias: Ring door motion 1
description: ""
trigger:
- type: motion
platform: device
device_id: 88398fd300452f135004ae0face90004
entity_id: 813486f548cdd5d867c90d44c6e0710e
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
- type: occupied
platform: device
device_id: 88398fd300452f135004ae0face90004
entity_id: 4925e1a4d8a97f32960e95af036c4e8a
domain: binary_sensor
condition:
- condition: time
before: "22:00:00"
after: "06:00:00"
action:
- type: turn_on
device_id: 88398fd300452f135004ae0face90004
entity_id: 13f026ee621dc06b8a15d44e15b94dd5
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
enabled: true
- device_id: 88398fd300452f135004ae0face90004
domain: button
entity_id: 8b44cc0d43257930db8f1fa49fafe754
type: press
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
enabled: true
- service: camera.snapshot
target:
entity_id: button.front_door_take_snapshot
enabled: false
data: {}
- service: camera.snapshot
data:
filename: /media/camera/frontdoor/camera_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg
target:
device_id: 88398fd300452f135004ae0face90004
enabled: false
- service: camera.snapshot
data:
filename: /media/camera/frontdoor/camera_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg
target:
entity_id: camera.front_door_snapshot
enabled: true
- service: notify.mobile_app_sm_n960u
data:
message: test fernando message
- type: turn_off
device_id: 88398fd300452f135004ae0face90004
entity_id: 13f026ee621dc06b8a15d44e15b94dd5
domain: switch
mode: single