Hi everyone,
This is my first time posting here, and I’m stuck on an automation issue. I have a Eufy E340 Video Doorbell Camera, and I’m trying to set up an automation that does the following:
- Detects when a person is at the door.
- Sends me a notification with an image of the person.
The problem? The image I receive is from the event before the one that triggered the person detection. Essentially, the automation isn’t sending the correct image.
What I’ve Tried (Without Success)
- Adding Delays: No improvement.
- Taking Two Snapshots (image.snapshot): Didn’t resolve the issue.
- Using
/api/image_proxy/image.front_door_event_image/entity_picture
: Didn’t work.
Automation Code (Current Version)
Below is the automation I’m working with. The action using the /api/… does not send an image and the action that generates a snapshot is the previous image.
alias: "Notify: Doorbell On Person Detection With Image and Summary"
description: "Notify: Doorbell On Person Detection With Image and Summary"
triggers:
- entity_id: binary_sensor.front_door_person_detected
to: "on"
trigger: state
conditions: []
actions:
# This doesn't send an image at all.
- action: notify.mobile_app_android
metadata: {}
data:
data:
image: /api/image_proxy/image.front_door_event_image/entity_picture
message: Someone Is At The Front Door
# This gets the previous image - even when called multiple times
- action: image.snapshot
metadata: {}
data:
filename: /config/www/snapshots/door_bell.jpg
target:
entity_id:
- image.front_door_event_image
# This works
- metadata: {}
data:
image_filename: /config/www/snapshots/door_bell.jpg
prompt: >-
Briefly describe what you see in this image, only if the image has a
person in it. Don't describe stationary objects or the house.
response_variable: generated_content
action: google_generative_ai_conversation.generate_content
# This works put I receive the previous image
- action: notify.signal
data:
title: Front Door Camera
message: " {{ generated_content.text }} "
data:
attachments:
- /config/www/snapshots/door_bell.jpg
mode: single
What I’m Looking For
Does anyone else have experience with Eufy Doorbell Cameras and can help me figure out why the snapshot is not syncing correctly with the person detection?
Specifically, how can I ensure the image sent in the notification matches the actual detection event and is not outdated?
Any tips or examples would be greatly appreciated!