Bonsoir,
utilisation de l’intégration Frigate Proxy, et de la carte frigate https://github.com/dermotduffy/frigate-hass-card/
mon fichier de conf: (frigate n’est pas dans HA), je convertis le flux afin de n’avoir qu’une seule connexion à la caméras et après je l’utilise au travers de frigate:
mqtt:
enabled: true
host: 192.168.1.206
user: ***
password: ***
detectors:
coral:
type: edgetpu
device: usb:0
go2rtc:
streams:
main_jade: # <- for RTSP streams
- rtsp://**:**@192.168.1.8:554/videoMain # <- stream which supports video & aac audio
- ffmpeg:main_jade#audio=opus # <- copy of the stream which transcodes audio to the missing codec (usually will be opus)
main_bebe: # <- for RTSP streams
- rtsp://**:*@192.168.1.*9:554/videoMain # <- stream which supports video & aac audio
- ffmpeg:main_bebe#audio=opus # <- copy of the stream which transcodes audio to the missing codec (usually will be opus)
main_parking: # <- for RTSP streams
- rtsp://**:**@192.168.1.7:88/videoMain # <- stream which supports video
main_jardin: # <- for RTSP streams
- rtsp://**:**@192.168.1.6:88/videoMain # <- stream which supports video
webrtc:
candidates:
- 192.168.1.34:8555
- stun:8555
# ffmpeg:
# hwaccel_args: preset-vaapi
# retry_interval: 20
cameras:
entree_frigate:
ffmpeg:
inputs:
- path: rtsp://192.168.1.34:8554/main_parking
input_args: preset-rtsp-generic
roles:
- record
- detect
detect:
height: 720
width: 1280
fps: 5
enabled: true
objects:
track:
- car
- person
- bus
filters:
person:
min_area: 1000
max_area: 100000
min_ratio: 0.5
max_ratio: 2.0
min_score: 0.35
threshold: 0.69
zones:
parking:
coordinates: 0.998,0.996,0,1,0.004,0.729,0.088,0.499,0.238,0.23,0.307,0.33,0.536,0,1,0.003
inertia: 3
loitering_time: 0
objects: person
Street:
coordinates: 0.563,0,0.193,0.003,0.003,0.281,0,0.719,0.076,0.42,0.216,0.19,0.311,0.276
loitering_time: 0
inertia: 3
motion:
mask: 0,0.287,0.193,0.012,0.163,0,0,-0.002
threshold: 25
contour_area: 10
delta_alpha: 0.2
frame_alpha: 0.2
frame_height: 50
improve_contrast: false
record:
enabled: true
expire_interval: 60
retain:
days: 10
mode: motion
events:
pre_capture: 20
post_capture: 10
retain:
default: 30
mode: motion
objects:
person: 15
review:
alerts:
labels:
- person
required_zones: parking
jardin_frigate: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://192.168.1.34:8554/main_jardin # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-generic
roles:
- record
- detect
detect:
height: 720
width: 1280
fps: 5
enabled: true # <---- disable detection until you have a working camera feed
objects:
filters:
person:
min_area: 4000
max_area: 100000
min_ratio: 0.5
max_ratio: 2.0
min_score: 0.35
threshold: 0.69
zones:
jardin:
coordinates: 0.453,0,0.326,0,0.251,0.07,0.16,0.147,0,0.341,0,1,1,1,1,0
motion:
mask: 0,0.094,0.164,0.03,0.164,0,0,0
threshold: 25
contour_area: 29
delta_alpha: 0.2
frame_alpha: 0.2
frame_height: 50
improve_contrast: false
record:
enabled: true
expire_interval: 60
retain:
days: 10
mode: motion
events:
pre_capture: 15
post_capture: 5
objects:
- person
retain:
default: 30
mode: motion
objects:
person: 15
review:
alerts:
labels:
- person
required_zones: jardin
detections:
required_zones: jardin
jade: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/main_jade
input_args: preset-rtsp-generic
roles:
- record
output_args:
record: preset-record-generic-audio-copy
record:
enabled: false
detect:
enabled: false
motion:
mask:
- 0.193,0.003,0.196,0.039,0.002,0.052,0.002,0
- 0.703,1,0.726,0,0.997,0.005,0.993,0.995
threshold: 30
contour_area: 10
improve_contrast: false
bebe:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/main_bebe
input_args: preset-rtsp-generic
roles:
- record
output_args:
record: preset-record-generic-audio-copy
record:
enabled: false
detect:
enabled: false
motion:
threshold: 30
contour_area: 10
improve_contrast: false
version: 0.14
la configuration de la carte:
type: custom:frigate-card
cameras:
- camera_entity: camera.bebe
live_provider: go2rtc
go2rtc:
modes:
- webrtc
stream: main_bebe
triggers:
motion: true
- camera_entity: camera.jade
live_provider: go2rtc
go2rtc:
modes:
- webrtc
stream: main_jade
view:
default: live
triggers:
actions:
trigger: live
filter_selected_camera: false
live:
draggable: true
controls:
timeline:
mode: none
style: ribbon
events_media_type: all
next_previous:
style: none
builtin: false
auto_mute: []
auto_unmute:
- selected
- visible
- microphone
timeline:
style: ribbon
performance: {}
menu:
style: none
buttons:
frigate:
enabled: false
cameras:
enabled: false
substreams:
enabled: false
download:
enabled: true
media_player:
enabled: false
play:
enabled: true
mute:
enabled: true
status_bar:
style: none
profiles:
- casting
j’ai eu des soucis avec la maj de HA (l’avant dernière) mais celle de hier a corriger les flux