I have a unifi g4 bullet aiming towards our driveway with vehicle detect turned on. My end goal is when a vehicle drives down the driveway, I get a notification with a snapshot of the camera. My hangup is that I can’t get my snapshot image to show on my notification, but I do get the text.
alias: Testing snapshots
description: ""
trigger:
- type: moving
platform: device
device_id: device_id_here
entity_id: binary_sensor.g4_bullet_vehicle_detected
domain: binary_sensor
condition: []
action:
- service: media_player.play_media
target:
entity_id: media_player.vlc_telnet
data:
media_content_id: media-source://media_source/local/ERA-2-Ding-Dong-2.mp3
media_content_type: audio/mpeg
metadata:
title: ERA-2-Ding-Dong-2.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- service: camera.snapshot
entity_id: camera.g4_bullet_high
data:
filename: '/config/www/lastVehicle.png'
- device_id: device_id_here
domain: mobile_app
type: notify
message: test
data:
image: '/local/lastVehicle.png'
mode: single
That is my current setup, it sends text, but no image. There is an image at /config/www/lastVehicle.png
Any input would be appreciated. Thanks.