DEPRICATED
frigate Event Video Recorder (fEVR) is the replacement for HassPyFrigate
# HassPyFrigate
## Python 3 CGI script for better looking notifications
### HassPyFrigate on GitHub
## Available as anAddon
### Repository: https://github.com/BeardedTek/BeardedTek-hassio-addons
# Home Assistant Automations
## Android Companion App Notification
#### Example Android Actionable Notification
Click on âEvent Viewerâ to view HassPyFrigate Event Viewer
The following Automation will send an actionable notification to the android companion app (Should work with iOS as well)
```
alias: HassPyFrigate Alert
description: HassPyFrigate Object Detection Alerts Using Frigate
trigger:
- platform: mqtt
topic: frigate/events
condition:
- condition: template
value_template: â{{ trigger.payload_json[âtypeâ] == âendâ }}â
- condition: template
value_template: |-
{{ trigger.payload_json[âafterâ][âlabelâ] == âpersonâ or
trigger.payload_json[âafterâ][âlabelâ] == âcarâ or
trigger.payload_json[âafterâ][âlabelâ] == âbirdâ or
trigger.payload_json[âafterâ][âlabelâ] == âdogâ or
trigger.payload_json[âafterâ][âlabelâ] == âcatâ or
trigger.payload_json[âafterâ][âlabelâ] == âbearâ or
trigger.payload_json[âafterâ][âlabelâ] == âhorseâ
}}
action:
- service: notify.mobile_app_sm_g986u1
data:
message: â{{ trigger.payload_json[âafterâ][âlabelâ] | title }} Detectedâ
data:
notification_icon: mdi:cctv
ttl: 0
priority: high
sticky: true
actions:
- action: URI
title: Snapshot
uri: >-
http://YOUR_SERVER/cgi-bin/hasspyfrigate.py?id={{trigger.payload_json[âafterâ][âidâ]}}&camera={{trigger.payload_json[âafterâ][âcameraâ]}}&bbox=true&url=https://hass.jeandr.net/api/frigate/notifications/&time={{trigger.payload_json[âafterâ][âstart_timeâ]}}&css=âŚ/css/hasspyfrigate.css#
image: >-
/api/frigate/notifications/{{trigger.payload_json[âafterâ][âidâ]}}/snapshot.jpg?bbox=1
tag: â{{trigger.payload_json[âafterâ][âidâ]}}â
alert_once: true
mode: single
```