#Tapo + frigate
1 messages · Page 1 of 1 (latest)
I just got the camera
Is this the right way of configuring it?
m missing anything in my docker-compose?
This is my frigate configuration file:
mqtt:
enabled: True
host: 192.168.86.124
port: 1883
topic_prefix: frigate
client_id: frigate
user: ignacio
password: PASSWORD
cameras:
family_room:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://ignacio:PASSWORD@192.168.86.157:554/family_room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://ignacio:PASSWORD@192.168.86.157:554/family_room_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: family_room
I can see it on the frigate app but I don't think is detecting anything, nor recording events. Plus, the home assistant card doesn't show me anything for that camera after adding the frigate integration
Could you share your config?
sure
you wanna start with enabling go2rtc
streams:
kitchen-cam:
- rtsp://user:pass@192.168.1.111/live```
some more stuff that needs to be set, at least i think it should
path: /config/frigate.db
mqtt:
host: 192.168.1.111 (ur home assistant url)
user: MQTT
password: xxxxxxx
topic_prefix: frigate
# Optional: client id (default: shown below)
# NOTE: must be unique if you are running multiple instances
client_id: frigate
detectors:
ov:
type: openvino
device: AUTO
model:
path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt```
the detectors needs to be set depending to your usage. i use a intel build-in gpu, so then that would work. for coral and other stuff, you need to change that.
and remove (ur home assistant url)
here is a example to add a camera to the config
kitchen-cam:
ffmpeg:
inputs:
- path: rtsp://192.168.1.111:8554/kitchen-cam
input_args: preset-rtsp-restream
roles:
- record
- detect
motion:
threshold: 70
mask:
- 1254,670,1250,720,1102,720,1106,674
- 534,62,586,60,629,394,586,427
- 620,225,972,210,964,90,608,106
- 339,413,493,297,472,174,297,234
- 1182,156,1178,236,1101,194,1098,134
zones:
kitchen-excluding-doorway:
coordinates: 1089,46,1185,720,261,720,131,71
objects:
track:
- person
- cat
- dog
detect:
width: 1280
height: 720
enabled: true
record:
enabled: true
# Optional: Number of minutes to wait between cleanup runs (default: shown below)
# This can be used to reduce the frequency of deleting recording segments from disk if you want to minimize i/o
expire_interval: 60
retain:
days: 3
mode: all
events:
pre_capture: 5
post_capture: 10
retain:
default: 45
mode: motion
snapshots:
enabled: true
retain:
# Required: Default retention days (default: shown below)
default: 45```
then you need to read the docs and change settings according to your needs.
once thats set up, its easy to add new cameras.
@fickle portal went ok?
can you explain go2rtc? why that over rtsp? you don't use stream1 and stream2 in go2rtc?
Also, i'm getting wrong user name password
rtsp://user:pass@192.168.1.111/live doesn't work, but rtsp://user:pass@192.168.1.111/stream1 and rtsp://user:pass@192.168.1.111/stream2 seem to work
the above is my own config.
its from a non-tapo cam i guess, i have multiple brands.
if stream1 and stream2 work, use those. stream1 is high res.
go2rtc uses your tapo rtsp links.