Integration with Home Assistant
The best way to integrate with HomeAssistant is to use the official integration. When configuring the integration, you will be asked for the Host
of your frigate instance. This value should be the url you use to access Frigate in the browser and will look like http://<host>:5000/
. If you are using HassOS with the addon, the host should be http://ccab4aaf-frigate:5000
(or http://ccab4aaf-frigate-beta:5000
if your are using the beta version of the addon). HomeAssistant needs access to port 5000 (api) and 1935 (rtmp) for all features. The integration will setup the following entities within HomeAssistant:
#
Sensors:- Stats to monitor frigate performance
- Object counts for all zones and cameras
#
Cameras:- Cameras for image of the last detected object for each camera
- Camera entities with stream support (requires RTMP)
#
Media Browser:- Rich UI with thumbnails for browsing event clips
- Rich UI for browsing 24/7 recordings by month, day, camera, time
#
API:- Notification API with public facing endpoints for images in notifications
#
NotificationsFrigate 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.
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.
If you are using telegram, you can fetch the image directly from Frigate: