I recently purchased two Reolink Video Doorbell PoE cameras and wanted to create an automation that would send a snapshot along with a message in a push notification. I’ve tried several different yaml codes that I found on google. This is my current automation-
alias: back doorbell press
description: Back doorbell activation notification.
triggers:
- type: turned_on
device_id: 47135e972f93b2ddf2c2dfe8385fb317
entity_id: 513b6071f0757d5023672cb4144fc508
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: camera.snapshot
metadata: {}
data:
filename: /media/snapshot_rear.png
target:
entity_id: camera.rear_doorbell_poe_snapshots_clear
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- data:
message: Someones at the back door.
title: Back doorbell press
data:
push:
image: /media/local/snapshot_rear.png
sound:
name: Ding-dong.wav
action: notify.mobile_app_walters_iphone_15
- data:
message: Someones at the back door.
title: Back doorbell press
data:
push:
image: /media/local/snapshot_rear.jpeg
sound:
name: Ding-dong.wav
action: notify.mobile_app_marys_iphone
mode: single
Siper strange. I though it might be the /media/local OR /local/media mix up based on where you store it that could be the issue as they messed with me in the past.
Here is a test setup I used in an automation. No trigger, just the action and ran it to confirm it works using the media folder (not www as its exposed to the internet). Try this, exclude the WAV, and see if you get the notification to work.
Got it working.
Thanks for showing me the proper syntax. This is what I get for trying to modify an old automation.
alias: back doorbell press
description: Back doorbell activation notification.
triggers:
- type: turned_on
device_id: 47135e972f93b2ddf2c2dfe8385fb317
entity_id: 513b6071f0757d5023672cb4144fc508
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: camera.snapshot
metadata: {}
data:
filename: /media/snapshot_rear.png
target:
entity_id: camera.rear_doorbell_poe_snapshots_clear
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- action: notify.mobile_app_walters_iphone_15
metadata: {}
data:
message: Someones at the back door.
data:
image: /media/local/snapshot_rear.png
sound:
name: Ding-dong.wav
- action: notify.mobile_app_marys_iphone
metadata: {}
data:
message: Someones at the back door.
data:
image: /media/local/snapshot_rear.png
sound:
name: Ding-dong.wav
mode: single
I don’t suppose there is an action that will make the notification display with the larger image (instead of the little thumbnail) so I can skip the long press?
Not for for iOS AFAIK. Someone suggest in a thread for Android a critical notification would auto expand. Maybe tinker with the notification type you send.
Is this config still working for you under 2024.11?
Since yesterday I have problems with the image in the notification. It was working great until then. Suddenly it’s not working anymore.
It’s just the notification to ios which gives a problem as in the same automation in parallel I also send a notification to pushover and telegram and there it is working.
Doesn’t work for me. I’ve uploaded my image to the media folder and then tried entering its path attachment: /media/burger.jpg but it wouldn’t work, either with or without quotation marks.
Hi, for pushover: no when i add local to it, it doesn’t work anymore. I only need to add local in the path when sending a notification using the HA companion app. I send the same message equally to:
pushover (no local in the path)
telegram (no local in the path)
HA companion app notification (local in the path is necessary)
Whatever. Thanks for your effort.
I’ve switched to the HA companion app now. Does everything that Pushover does, plus a lot of other very useful things.
The only advantage Pushover has is notification dismissal sync across Android AND iOS devices, but that doesn’t even work reliably and I’ve circumvented the need for it by using my Android device which is perma-wall-plugged and just used for automated notifications at home and my iPhone when I’m outside and I’ve created an automation that only sends said automated notifications to one of my devices based on my phone’s current location.