Home assistant key configuration for image notifications

I put this together for those that are chasing a working config to get their camera to take a snapshot, and forward that snapshot through as a rich notification to android or IOS.

Note that my phone sits on the same VPN as my home assistant instance, so the image URL will be accessible by my phone.

For some reason I needed it to be in the local path for it to work.

First, lets take a snapshot

service: camera.snapshot
metadata: {}
data:
filename: /media/local/snapshots/tempsnapshot.jpg
target:
entity_id: camera.camera1_snapshots_fluent

Next, lets send it!

device_id: 87246d2d5cdfdc23bffac8ae8969c2fd
domain: mobile_app
type: notify
message: Person Detected
data:
image: /media/local/snapshots/tempsnapshot.jpg
title: Camera notification

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *