Skip to content

Commit

Permalink
Frigate ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Aug 1, 2023
1 parent a051a66 commit 52e3581
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Build Status](https://github.com/aneisch/home-assistant-config/actions/workflows/check-ha-release-compatibility.yml/badge.svg)](https://github.com/aneisch/home-assistant-config/actions)
[![GitHub last commit](https://img.shields.io/github/last-commit/aneisch/home-assistant-config)](https://github.com/aneisch/home-assistant-config/commits/master)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/aneisch/home-assistant-config)](https://github.com/aneisch/home-assistant-config/graphs/commit-activity)
[![HA Version](https://img.shields.io/badge/Running%20Home%20Assistant-2023.7.3%20(Latest)-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest)
[![HA Version](https://img.shields.io/badge/Running%20Home%20Assistant%20-2023.8.0b2%20(Out%20of%20Date)-Red)](https://github.com/home-assistant/home-assistant/releases/latest)
<br><a href="https://www.buymeacoffee.com/aneisch" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-black.png" width="150px" height="35px" alt="Buy Me A Coffee" style="height: 35px !important;width: 150px !important;" ></a>


Expand Down Expand Up @@ -56,8 +56,8 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC
Description | value
-- | --
Lines of ESPHome YAML | 2420
Lines of Home Assistant YAML | 7714
[Integrations](https://www.home-assistant.io/integrations/) in use | 48
Lines of Home Assistant YAML | 7725
[Integrations](https://www.home-assistant.io/integrations/) in use | 49
Zigbee devices in [`zha`](https://www.home-assistant.io/integrations/zha/) | 26
Z-Wave devices in [`zwave_js`](https://www.home-assistant.io/integrations/zwave_js/) | 37

Expand Down
2 changes: 1 addition & 1 deletion extras/Node-RED/flows.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extras/docker-compose/homeassistant/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ volumes:
services:
homeassistant:
container_name: hass
image: ghcr.io/home-assistant/home-assistant:stable
image: ghcr.io/home-assistant/home-assistant:beta
labels:
com.centurylinklabs.watchtower.monitor-only: "true"
volumes:
Expand Down
4 changes: 2 additions & 2 deletions extras/docker-compose/other/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ services:
- /dev/dri/renderD128
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config.yml:/config/config.yml
- /opt/frigate/:/config
- /frigate/frigate:/media/frigate
ports:
- "5000:5000"
- "127.0.0.1:5000:5000"
- "8554:8554"
- "8555:8555/tcp"
- "8555:8555/udp"
Expand Down
6 changes: 3 additions & 3 deletions extras/docker-compose/unified/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ volumes:
services:
homeassistant:
container_name: hass
image: ghcr.io/home-assistant/home-assistant:stable
image: ghcr.io/home-assistant/home-assistant:beta
labels:
com.centurylinklabs.watchtower.monitor-only: "true"
volumes:
Expand Down Expand Up @@ -548,10 +548,10 @@ services:
- /dev/dri/renderD128
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config.yml:/config/config.yml
- /opt/frigate/:/config
- /frigate/frigate:/media/frigate
ports:
- "5000:5000"
- "127.0.0.1:5000:5000"
- "8554:8554"
- "8555:8555/tcp"
- "8555:8555/udp"
Expand Down
4 changes: 2 additions & 2 deletions extras/esphome/water_supply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ esphome:
<<: !include common.yaml

dallas:
- pin: D4
update_interval: 10s
pin: D4
update_interval: 5s

switch:
- platform: restart
Expand Down
Binary file modified images/nodered_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/nodered_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/frigate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ automation:
- service: shell_command.frigate_clips_drive
data:
clip_id: "{{trigger.payload_json['after']['id']}}"
# Play audio clip
# - if:
# - "{{ trigger.payload_json['after']['camera'] == 'front_door' }}"
# then:
# - service: shell_command.front_door_play_audio_file
# data:
# filename: audio.mp3
# if home and person detection at front door then notify
- if:
- "{{ is_state('input_boolean.security_status', 'off') and trigger.payload_json['after']['camera'] == 'front_door' }}"
Expand Down Expand Up @@ -71,6 +78,7 @@ automation:
data:
attachments:
- /config/images/logo.jpg
- delay: "00:01:00"

- alias: Doorbell Ring
id: "frigate_doorbell_ring"
Expand Down Expand Up @@ -203,6 +211,10 @@ input_datetime:
has_date: true
has_time: true

shell_command:
# "filename" must be present in frigate's /config directory
front_door_play_audio_file: curl -X POST "http://localhost:5000/live/webrtc/api/streams?dst=front_door_twoway&src=ffmpeg%3A%2Fconfig%2F{{ filename }}%23audio%3Dpcma%23input%3Dfile"

timer:
frigate_notification_snooze:
duration: "00:00:00"
Expand Down

0 comments on commit 52e3581

Please sign in to comment.