I have been setting up Frigate while reading the official Frigate documentation, but I keep getting an error. I am not very familiar with HomeAssistant, so could you please tell me what I am doing wrong?
I installed the “Mosquitto broker” add-on, added “mqtt-user” from the settings, integrated MQTT in the integration tab and changed the user and password to the same as “mqtt-user”.
I then installed the “Frigate NVR (Full Access)” add-on, disabled protected mode, and created a file named “frigate.yml” in the directory where the configuration.yaml is located.
The contents described in frigate.yml are as follows
mqtt:
host: 192.168.1.250
port: 1883
topic_prefix: frigate
client_id: frigate
user: "mqtt-user"
password: "password"
detectors:
coral:
type: edgetpu
device: usb
cameras:
north_back:
ffmpeg:
inputs:
- path: rtsp://abcdefg:[email protected]:554/stream1
roles:
- detect
- rtmp
rtmp:
enabled: False
detect:
width: 1920
height: 1080
When I run the “Frigate NVR (Full Access)” add-on in this state, I get the following error
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-10-01 21:55:10] frigate.app INFO : Starting Frigate (0.11.0-3846a13)
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
1 validation error for FrigateConfig
__root__
FrigateConfig expected dict not NoneType (type=type_error)
Traceback (most recent call last):
File "pydantic/main.py", line 517, in pydantic.main.BaseModel.parse_obj
TypeError: 'NoneType' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 332, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 82, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 942, in parse_file
return cls.parse_obj(config)
File "pydantic/main.py", line 520, in pydantic.main.BaseModel.parse_obj
pydantic.error_wrappers.ValidationError: 1 validation error for FrigateConfig
__root__
FrigateConfig expected dict not NoneType (type=type_error)
*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
I have confirmed that I can access the RTSP server of the ip camera with VLC.
All passwords are set to “password” as this is a test phase.