I’m not sure where to post automation yaml like this. I only see a Blueprints channel here.
I love my Reolink cameras/NVR but one really deficient thing about them is they only give you a text notification for motion detection via their native app. I used Claude to get this automation to work whereby it it will take a snapshot of the motion and use HA’s notifications to send me it! Works great so far. Also has a timer to not blast me over and over, only after 3 minutes till the next one…
Create a Helper
Through the Home Assistant UI:
- Go to Settings > Devices & Services > Helpers
- Create a new “Timer” helper called “MBR Motion Cooldown”
- Set the duration to 3 minutes
Then modify your automation to:
alias: MBR Motion Notification
description: >-
Sends a notification with embedded camera image when motion is detected on
weekend nights
triggers:
- type: motion
device_id: 4d60361296a0c3dd8d6e6a26db0b5c0c
entity_id: 95b333440490a4b0f3b0da4b162a0410
domain: binary_sensor
trigger: device
conditions:
- condition: or
conditions:
- condition: time
weekday:
- fri
- condition: time
weekday:
- sat
- condition: time
after: "20:00:00"
before: "10:00:00"
- condition: state
entity_id: timer.mbr_motion_cooldown
state: idle
actions:
- data:
message: >-
Motion detected in Master Bedroom at {{ now().strftime('%b %d, %Y %I:%M:%S %p') }}
title: Security Alert
data:
image: /api/camera_proxy/camera.mbr_fluent
ttl: 0
priority: high
importance: high
channel: security_alerts
vibrationPattern: 100, 1000, 100, 1000, 100
actions:
- action: URI
title: View Camera
uri: >-
http://homeassistant.local:8123/dashboard-cameras/0?entity=camera.mbr_fluent
action: notify.mobile_app_galaxy_s10
- target:
entity_id: timer.mbr_motion_cooldown
data:
duration: "00:03:00"
action: timer.start
mode: single
This was the only version of several tried that would actually send the image in Android.
I have a custom “pane of glass” for all my various cameras and this loads that page as well. I want it to load the live camera feed directly when clicking the notification, although that’s still a work in progress…