Hello I have a problem I would like that when frigate detects an object (eg a person) it sends me a notification on my iphone on frigate when I pass in front of the camera it detects me well takes a photo and a video but on my iphone no notification that warns me that a person has been detected with the image that goes with it here is the configuration of frigate and the automation code (ps sorry for my English I am French)
**Config Frigate : **
mqtt:
` enabled: true
host: 192.168.1.42
user: root
password: trinidad
port: 1883
cameras:
Logitech:
ffmpeg:
inputs:
- path: /dev/video0
input_args: -f v4l2 -pix_fmt yuyv422
roles:
- record
- path: /dev/video0
input_args: -f v4l2 -pix_fmt yuyv422
roles:
- detect
detect:
enabled: true
width: 640 # largeur de l'image du flux secondaire (en pixels)
height: 480 # hauteur de l'image du flux secondaire (en pixels)
record:
enabled: true
retain:
days: 7
events:
retain:
default: 14
snapshots:
enabled: true
objects:
track:
- person
- cat
- dog
version: 0.14`
Config automatisation :
`alias: Notification avec prévisualisation caméra
description: Notifier avec aperçu vidéo
triggers:
- topic: frigate/events
trigger: mqtt
actions: - data:
message: "Détection : {{ trigger.payload_json['after']['label'] }}"
data:
image: >-
https://192.168.1.42/api/frigate/notifications/{{
trigger.payload_json['after']['id'] }}/thumbnail.jpg
tag: "{{ trigger.payload_json['after']['id'] }}"
when: "{{ trigger.payload_json['after']['start_time']|int }}"
entity_id: camera.camera_logitech
action: notify.mobile_app_iphone
mode: single
`