Closed DylanHP closed 1 year ago
you are going to need to show your frigate docker installation config
I didn't install it via docker but via trueNas scale webui
Okay, that is just running docker. In any case, please show the config for the ports in the UI
i have similar issue.
This used to work amazingly but I upgraded everything a few weeks ago and now the camera entities are not available in HA.
I don't think this is a frigate docker issue because I seem to get valid responses via Frigate API. I can add the integration to HA. But it always says unavailable
. And it could still be a Frigate Hass UI card issue but it works with other camera entities. Just not the camera defined in Frigate integration. Any suggestions to debug this issue would be greatly appreciated
mqtt:
host: mosquitto
user: USER
password: PASSWORD
#detectors:
# coral:
# type: edgetpu
# device: usb
detectors:
cpu1:
type: cpu
num_threads: 3
cpu2:
type: cpu
num_threads: 3
go2rtc:
streams:
front_door_main:
- rtsp://USER:PASS@192.168.86.22:88/videoMain
front_door_sub:
- rtsp://USER:PASS@192.168.86.22:88/videoSub
garage_main:
- rtsp://USER:PASS@192.168.86.55:88/videoMain
garage_sub:
- rtsp://USER:PASS@192.168.86.55:88/videoSub
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_door_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/front_door_main
input_args: preset-rtsp-restream
roles:
- record
mqtt:
enabled: false
ui:
dashboard: true
motion:
mask:
- 454,369,452,640,936,631,965,339
garage:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/garage_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/garage_main
input_args: preset-rtsp-restream
roles:
- record
mqtt:
enabled: false
ui:
dashboard: true
motion:
mask:
- 902,448,1280,475,1240,195,1075,193
- 684,172,928,176,932,77,684,86
- 0,314,96,306,88,218,0,222
rtmp:
enabled: false
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: True
crop: True
height: 175
retain:
default: 10
objects:
person: 15
record:
enabled: True
expire_interval: 60
retain:
days: 5
mode: active_objects
events:
pre_capture: 5
post_capture: 5
retain:
default: 10
mode: active_objects
objects:
person: 15
car: 3
birdseye:
enabled: True
quality: 31
mode: objects
detect:
fps: 5
enabled: True
objects:
track:
- person
- bicycle
- motorcycle
- car
- bus
- bird
- cat
- dog
motion:
improve_contrast: true
Does the integration have any errors?
I am not sure where to look for errors but doesn't seem so.
Nevermind I see your problem, the names of the go2rtc streams don't match the camera
oh! What should it be?
Maybe I misunderstood the documentation. IIRC, it says that I can set up a low quality stream for detection and a high quality stream for recording. Which is what I thought I set up and it had been working wonderfully for a many many months. Or its possible that I was not using the correct combinations in all 3 things - Frigate, HA Integration and the UI card. It is pretty hard to keep track of the settings across the board. π
The name of the go2rtc stream used for the integration needs to match the name of the camera. So whichever one you want to use, needs to have the _ and everything after removed.
And here is the weirdest part - it connected and got a snapshot before it disconnected.
I am pretty sure the preview of the Front door camera used to work.
That points to MQTT issues as well then
oh! definitely have MQTT errors but I didn't realize that was important because I never set it up correctly. Should I fix them first?
2023-07-08 06:51:00.985012394 [2023-07-08 06:51:00] frigate.comms.mqtt ERROR : Unable to publish to events: client is not connected
Yes definitely
Thanks man! working like a charm now. πββοΈ
How did you fix the mqtt issues?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Integration whit homeassistant doesn't work
When I try to get HomeAssistant to reconise my frigate installation, in my case is installed at 192.168.1.12:9200, I get this in response:
but when I try to read the api stats I get this:
so the frigate integration seem to work but the integration whit homeassistant not.
Version of the custom_component
Newest stable version, 0.12.0 Integration version v4.0.0
Configuration
the logs are mentioned above