I figured it out it would be under global config so not indented. I am actually struggling alot with how some things can be global config, some things can be under camera, and I suppose somethings can be overidden under the camera
Now anybody point me to a tutorial to properly understand go2rtc,webrtc and how they work with home assistant? I am running frigate in docker(I could not passthrough the google coral to HASSOS VM), Frigate integration, and Frigate proxy addon.
Ugh first set up with frigate I am really having some issues nailing down the yaml and it seems like there is maybe a few versions of the documentation.
I am running ghcr.io/blakeblackshear/frigate:0.12.0-beta10
and I am just not getting the go2rtc streaming working. What the heck am I doing wrong here.
#frigate sample config.yml
mqtt:
# Required: host name
host: 10.0.0.249
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
user: mqtt
# Optional:
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
password: redacted
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
detectors:
# cpu1:
# type: cpu
# cpu2:
# type: cpu
coral:
type: edgetpu
device: usb
cameras:
frontdoor: # <------ Name the camera
objects:
track:
- person
- car
- bicycle
- motorcycle
- cup
filters:
car:
mask:
- 0,806,54,816,166,829,308,828,562,760,694,703,768,693,768,1024,0,1024
ffmpeg:
hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
# hwaccel_args: -c:v h264_qsv
inputs:
- path: rtsp:/redacted:[email protected]:554/Streaming/Channels/101 # <----- Update for your camera
roles:
- record
- rtmp
- path: rtsp:/redacted:[email protected]:554/Streaming/Channels/101
roles:
- detect
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
go2rtc:
streams:
frontdoor:
- rtsp:/redacted:[email protected]:554/Streaming/Channels/101
detect:
width: 768 # <---- update for your camera's resolution
height: 1024 # <---- update for your camera's resolution
fps: 5
enabled: true
motion:
threshold: 25
mask:
# - 0,473,0,488,176,488,176,473 substream
# - 53,1957,646,1951,648,1904,54,1905 fullstream
- 28,982,277,982,277,955,25,955
record:
enabled: true
retain:
days: 2
mode: motion
events:
retain:
default: 10
snapshots:
enabled: true
getting:
Config Error:
Traceback (most recent call last):
File "/opt/frigate/frigate/http.py", line 761, in config_save
new_yaml = FrigateConfig.parse_raw(new_config)
File "/opt/frigate/frigate/config.py", line 1077, in parse_raw
return cls.parse_obj(config)
File "pydantic/main.py", line 527, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for FrigateConfig
cameras -> frontdoor -> go2rtc
extra fields not permitted (type=value_error.extra)
```**strong text**