[Bug]: frigate wizard camera naming breaks ha addon streaming #22647
-
Checklist
Describe the problem you are havingwith the ha addon Latest 15.15.1 but I think the error has been in there for a while and using the wizard to add a camera the go2rtc names don't match the camera names, this breaks home assistant ability to restream the camera ConfigurationWhen your go2rtc name is not the same as the camera name, this occurs if you use the wizard to setup a camera in frigate now. go2rtc:
streams:
cam_1:
- rtsp://...
cameras:
cam:
...
Describe the bugCamera has supported_features: 0 so home assistant won't restream the camera, this is because there is an assumption that the go2rtc name and the camera name are the same Once I renamed to make it match you get supported_features: 2 and streaming via homekit via home assistant works. Probably should get stream name from live/streams config and failing that the path under ffmpeg if using go2rtc see blakeblackshear/frigate-hass-integration#1066 for initial report - I believe bug exists in the HA addon not frigate but was told to post here. Steps to reproduce
Version0.17.1 In which browser(s) are you experiencing the issue with?N/A Frigate config filego2rtc:
streams:
cam_1:
- rtsp://...
cameras:
cam:
...docker-compose file or Docker CLI commandN/ARelevant Frigate log outputN/ARelevant go2rtc log outputN/AOperating systemOther Install methodDocker CLI Network connectionWired Camera make and modelN/A Screenshots of the Frigate UI's System metrics pagesN/A Any other information that may be helpfulNothing in the docs says you need to name the go2rtc stream the same as the camera name yet this breaks home assistant entity flags for the camera if you do name differently |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You've correctly identified the issue. The go2rtc stream name must match the camera name for Home Assistant streaming to work properly. For the best experience, you should set the stream name under To fix your configuration, rename your go2rtc stream to match the camera name: go2rtc:
streams:
cam: # Must match camera name below
- rtsp://...
cameras:
cam:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam
input_args: preset-rtsp-restream
roles:
- detect
- recordThis naming requirement exists because the Home Assistant integration assumes the go2rtc stream name matches the camera name to determine streaming capabilities. If you need multiple streams (main/sub), you can add additional streams with suffixes while keeping one that matches exactly: go2rtc:
streams:
cam_main:
- rtsp://<username, password, and camera ip>/cam/realmonitor?channel=1&subtype=0
cam: # This one matches the camera name
- rtsp://<username, password, and camera ip>/cam/realmonitor?channel=1&subtype=1Regarding the wizard creating mismatched names—this appears to be a bug worth reporting to the frigate-hass-integration repository since the integration code makes this assumption about name matching. 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
Bug reopened in addon repo so this can be closed, there was some confusion initially |
Beta Was this translation helpful? Give feedback.
Bug reopened in addon repo so this can be closed, there was some confusion initially