Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
/ frigate-history Public archive

package for homeassistant to provide history for detections

Notifications You must be signed in to change notification settings

miikkajo/frigate-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

frigate-history version n+1

package for homeassistant to provide history of detected persons

information about packages https://www.home-assistant.io/docs/configuration/packages/

example for creating history for frigate detections

add frigate url to secrets.yaml:
frigate_cam1_url: http://192.168.0.1:5000/cam1

if using MQTT version:

add frigate topic to secrets.yaml:
frigate_cam1_topic: frigate/[camera_name]/snapshot

In automation adjust trigger accordingly, in example i'm using mqtt topic to trigger automation
if not using MQTT, you may want to trigger on binary_sensor of person detected


copy frigate_history.yaml or frigate_history_mqtt.yaml to packages directory on homeassistant (create directory if missing)
copy frigate_history.sh to config directory
restart homeassistant 

for lovelace swiper card use config:

resources:
  - type: module
    url: >-
      https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/swipe-card/swipe-card.js
title: History
views:
  - badges: []
    cards:
      - cards:
          - entity: camera.cam1_history1
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history2
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history3
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history4
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history5
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history6
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history7
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history8
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history9
            type: picture-entity
            tap_action: none
          - entity: camera.cam1_history10
            type: picture-entity
            tap_action: none
        start_card: 10
        type: 'custom:swipe-card'
      - cards:
          - entity: camera.cam2_history1
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history2
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history3
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history4
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history5
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history6
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history7
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history8
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history9
            type: picture-entity
            tap_action: none
          - entity: camera.cam2_history10
            type: picture-entity
            tap_action: none
        start_card: 10
        type: 'custom:swipe-card'

About

package for homeassistant to provide history for detections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages