Moving go2rtc config from add-on to built-in with ha on newer versions setup

Most of the go2rtc document takes me to information about the add-on. which i am using now for a while. When i heard go2rtc is built in with ha on newer version. So i copied my current config txt as backup, deleted the addon, then in configuration yaml, I added:

go2rtc:
  default_ui: true

Then rebooted ha, i am able to access go2rtc ui by providing the port, but there is no option to enter the config and save. It says “config is managed by home assistant and modification will be lost”.

so i am puzzled how to add my config and make the go2rtc work with all my cameras so i can feed it to my frigate.

please help, i did enough researching already …

Frigate has a built in go2rtc, you should ideally use that

1 Like

I tried that route as well. but i am unable to make the config for frigate, 3 cameras i have are onvif (thats how i did on go2rtc add-on in ha) and i don’t know how to config would look for that.

the go2rtc part is identical, just all nested under the go2rtc config

I tried much and always get bunch of errors on config:
here is my go2rtc config from ha, follwed my by my config of frigate with just one camera for simplicity:

streams:
  driveway: onvif://user:[email protected]/onvif/device_service%20http://%5Bfd42:5e:a59:d14f:be9b:5abf:fe5f:2d0e%5D/onvif/device_service?subtype=Profile_1
  driveway_sub: onvif://user:[email protected]/onvif/device_service%20http://%5Bfd42:5e:a59:d14f:be9b:5abf:fe5f:2d0e%5D/onvif/device_service?subtype=Profile_2

Frigate config currently using the go2rtc from ha:

cameras:           
  driveway:
    ui:
      order: 1
    ffmpeg:
      hwaccel_args: []
      inputs:
        - path: rtsp://192.168.1.100:8554/driveway_sub
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://192.168.1.100:8554/driveway
          input_args: preset-rtsp-restream
          roles:
            - record
    detect:
      width: 1920
      height: 1080
      fps: 5
    objects:
      track:
        - person
        - animal
        - vehicle
    snapshots:
      enabled: True
      timestamp: True
      bounding_box: true
      retain:
        default: 7
        objects:
          person: 3
          animal: 2
          vehicle: 3
    record:
      enabled: true
      retain:
        days: 7
      events:
        #post_capture: 10
        retain:
          default: 1
          objects:
            person: 1
            animal: 1
            vehicle: 1

How can i update this config so it uses frigates go2rtc ?

add

go2rtc:
  streams:
    driveway:
      onvif://user:[email protected]/onvif/device_service%20http://%5Bfd42:5e:a59:d14f:be9b:5abf:fe5f:2d0e%5D/onvif/device_service?subtype=Profile_1
    driveway_sub:
      onvif://user:[email protected]/onvif/device_service%20http://%5Bfd42:5e:a59:d14f:be9b:5abf:fe5f:2d0e%5D/onvif/device_service?subtype=Profile_2

then change rtsp://192.168.1.100:8554/driveway to rtsp://127.0.0.1:8554/driveway

First, thanks for all who tried to help me in this thread.

The config you mentioned was the one i was trying before i gave up. Then i copied this config and asked to chatGPT, what it said is since there are special characters in the url, try put it within quotes. I did and the errors are gone. (damn!!!)

Now i configured all my cameras in my go2rtc on frigate instance and used that in camera sections.

I was going to remove the go2rtc add-on in ha, but there is one camera which homekit camera that i paired from within ha, i am unable to use that in frigate config. my frigate and ha are running in different vm’s, i couldn’t able to make it work. so i am still keeping the homekit camera in ha with go2rtc add-on for now until i figure out.

in case anybody had done, please advice.

in go2rtc addon on ha, it looks list this (which works)

streams:
    aqara_doorbell: homekit://192.168.99.187:46281?client_id=<uid here>&client_private=<bunch of characters>&device_id=D1:E1:CC:41:A1:81&device_public=<bunch of characters>