And with this i get live feed directly, when expanding notification
action:
- service: notify.mobile_app_andriaus_iphone_pro
data:
message: Front Yard motion detected at {{now().strftime("%H:%M %d-%m-%y")}}
data:
push:
category: camera
entity_id: camera.frontyard_camera
Cannot figure out, how i can receive notification with snapshot attached and clicking on picture would open live stream of the camera. or it can be a button of actionable notification to open live stream
I am unable to open streams as well. Not sure why, tried about 5 different ways. Were you able to stream once opening notification? I get the snapshot but when I click on it, it disappears
This is a super basic example for my reolink + frigate setup. The key is to hold down on the notification until you see a popup. In the popup will be a live feed along with a button to click that will take you to the snapshot blown up. There is no fanciness in this like cooldown or silence option though.
alias: NVR No Car
description: ""
trigger:
- platform: mqtt
topic: frigate/events
value_template: "{{ value_json.type }}"
payload: new
condition:
- condition: template
value_template: "{{ trigger.payload_json['after']['label'] != 'car' }}"
action:
- service: notify.notify
data:
message: >-
A {{trigger.payload_json["after"]["label"]}}.
{{trigger.payload_json["after"]["camera"]}}
data:
image: >-
http://local-ha-ip:5000//api/events/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg
tag: "{{trigger.payload_json[\"after\"][\"id\"]}}"
when: "{{trigger.payload_json[\"after\"][\"start_time\"]|int}}"
entity_id: >-
camera.{{trigger.payload_json["after"]["camera"] | replace("-","_") |
lower}}
actions:
- action: URI
title: Open Url
uri: >-
http://local-ha-ip:5000//api/events/{{trigger.payload_json["after"]["id"]}}/snapshot.jpg
mode: single
Super weird, but I had to add an extra slash before the “/api” endpoint…not sure why.