From 54671fc522cef6244edeba05615fa642787a8edb Mon Sep 17 00:00:00 2001 From: jaburges Date: Wed, 10 Feb 2021 11:38:15 -0800 Subject: [PATCH] Added the base urls for image and video --- docs/docs/usage/home-assistant.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/docs/usage/home-assistant.md b/docs/docs/usage/home-assistant.md index c57f83fe9..09f9fbb26 100644 --- a/docs/docs/usage/home-assistant.md +++ b/docs/docs/usage/home-assistant.md @@ -28,8 +28,19 @@ The best way to integrate with HomeAssistant is to use the [official integration ### Notifications Frigate publishes event information in the form of a change feed via MQTT. This allows lots of customization for notifications to meet your needs. Event changes are published with `before` and `after` information as shown [here](#frigateevents). +Note that some people may not want to expose frigate to the web, so you can leverage the HA API that frigate custom_integration ties into (which is exposed to the web, and thus can be used for mobile notifications etc): -Here is a simple example of a notification automation of events which will update the existing notification for each change. This means the image you see in the notification will update as frigate finds a "better" image. +To load an image taken by frigate from HomeAssistants API see below: +``` +https://HA_URL/api/frigate/notifications//thumbnail.jpg +``` + +To load a video clip taken by frigate from HomeAssistants API : +``` +https://HA_URL/api/frigate/notifications///clip.mp4 +``` + +Here is a simple example of a notification automation of events which will update the existing notification for each change. This means the image you see in the notification will update as frigate finds a "better" image. ```yaml automation: @@ -46,6 +57,7 @@ automation: tag: '{{trigger.payload_json["after"]["id"]}}' ``` + ```yaml automation: - alias: When a person enters a zone named yard