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.