Is there a way to include a still image (from doorbell camera’s video) with a notification from HA to my iPhone (iOS 26.1)? So far, I have an automation set up so that when our Unifi G4 Doorbell Pro rings from someone pressing the button, HA sends an iOS notification to my phone saying that “someone is at the front door.” I’d like to figure out a way for HA to grab a screen shot of the front doorbell camera video at the moment it is rung and then include that photo with the notification sent to my iPhone. Is there a way to do this?
This blueprint is a good start I think for what you are after:
Thank you. That got me going in the general right direction and led me to other similar threads. I ended up modifying things and found the following works well. I’m using Unifi Cameras with a G4 Doorbell Pro, which uses “occupied” as the trigger for a doorbell press. The 3 second delay was to make sure it had time to save a new snapshot of that moment and the notification didn’t grab the old/prior snapshot. I’m very new to this stuff, so I’m sure it can be improved upon but it works for me.
Here’s the code in YAML
alias: Notification with Image to Phone on Doorbell Ring
description: ""
triggers:
- type: occupied
device_id: 139d1769a08525de66a082fbxxxxxxxx
entity_id: 58ba2a7c4d69837f83d4ae72xxxxxxxxx
domain: binary_sensor
trigger: device
conditions: []
actions:
- target:
entity_id: camera.front_door_high_resolution_channel
data:
filename: /media/front_door_camera_tmp/front_door_doorbell-ring.png
action: camera.snapshot
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- device_id: d26d66c925c4dd1459cc3becxxxxxxxx
domain: mobile_app
type: notify
message: Someone is at front door
data:
attachment:
url: /media/local/front_door_camera_tmp/front_door_doorbell-ring.png
content-type: png
hide-thumbnail: false
Here’s what the automation looks like in Visual Editor:
1 Like
