Ring-mqtt automation with doorbell trouble getting snapshot on time

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

1 Like

From the wiki. Does this apply?

Q) Why am I unable to get motion snapshots from my camera
A) The most likely cause of this behavior is use with a “low-power” mode camera. These cameras cannot take a snapshot while recording and, since a motion event generally starts a recording, it’s not possible to retrieve a snapshot after the motion event has been detected. Because of this, ring-mqtt attempts to use the image UUID included in the push notification to retrieve the notification snapshot (the same snapshot used in rich notifications on the Ring app) for motion events, however, this feature requires at least the basic Ring Protect Plan subscription. If the account has no subscription, or Rich Notifications have not been enabled for the device, then ring-mqtt will not be able to retrieve a snapshot image on motion.