First, big probs to @blakeblackshear for creating this.
Then I have two questions
- I have a Interference speed of 130ms. Is this getting better with a coral? And I use the automation from the docs for notification, but the notification is slow. Does this comes from the interference speed?
- The automation is firing multiple times within a second. I thought it would fire only once, as long as the object isn’t gone. Am I misunderstanding something?
My setup:
Raspi 4, 4GB
HomeAssistant 64-Bit
core-2021.5.0
Frigate installed via add-ons v1.13
frigate.yml
mqtt:
host: xxx
user: xxx
password: xxx
cameras:
hof:
ffmpeg:
hwaccel_args:
- -c:v
- h264_v4l2m2m
inputs:
- path: rtsp://user:[email protected]:554/h264Preview_01_main
roles:
- clips
- path: rtsp://user:[email protected]:554/h264Preview_01_sub
roles:
- detect
width: 640
height: 352
fps: 5
objects:
track:
- person
- car
- dog
motion:
mask:
- 304,0,253,187,201,207,207,352,0,352,0,0
- 640,352,525,352,586,0,640,0
threshold: 50
contour_area: 150
zones:
strasse:
coordinates: 312,82,576,88,585,0,332,0
einfahrt:
coordinates: 194,352,524,352,574,86,318,85
snapshots:
enabled: true
retain:
default: 10
objects:
person: 15
clips:
enabled: true
retain:
default: 7
detectors:
cpu1:
type: cpu
cpu2:
type: cpu
Automation
- alias: kamera_hof_benachrichtigung
id: kamera_hof_benachrichtigung
description: >-
Benachrichtigung wenn eine Person in der Einfahrt erkannt wird.
trigger:
platform: mqtt
topic: frigate/events
condition:
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
- "{{ 'einfahrt' in trigger.payload_json['after']['entered_zones'] }}"
action:
- service: notify.mobile_app_suedpack_iphone
data_template:
message: "A {{trigger.payload_json['after']['label']}} has entered the yard."
data:
image: "https://l0s78v5e5n18jvi2khsnff0axlg80pnf.ui.nabu.casa/api/frigate/notifications/{{trigger.payload_json['after']['id']}}/thumbnail.jpg"
tag: "{{trigger.payload_json['after']['id']}}"
- service: notify.mobile_app_suedpack_iphone
data_template:
message: 'Es wurde Bewegung im Hof registriert um {{now().strftime("%H:%M %d-%m-%y")}} '
data:
attachment:
content-type: jpeg
push:
badge: 0
sound:
name: bewegung_hof
critical: 1
volume: 1.0
category: camera
entity_id: camera.garten_kamera_hof
The problem is, that the last action part is fired multiple times. Why does this notification comes multiple and the other one not.