This one took me a while to figure out, I really think the docs are not clear enough for this scenario and there were just various pieces of info online which had to be brought together.
So, if you want an Aqara G2H Pro (or, I assume, any Aqara camera) in Frigate, here’s what needs to be done:
- Install the Frigate addon
- Install the Go2RTC addon
- Add the camera to the Aqara app
- Check HA for the camera now showing up as a HomeKit camera and add it
- In Go2RTC, go to Add - Home Assistant (I thought this was HUGELY confusing, because there is also a HomeKit section in Add which also sees the camera, but nope, the camera needs to be added as a “HomeKit camera from Home Assistant”, so it’s in the Home Assistant section) - just copy the location link from here “homekit://192.168…”
- In Go2RTC, go to Config and put this:
webrtc:
listen: ":8556"
rtsp:
listen: ":8556"
streams:
cameraname:
- homekit://192.168... (the link you obtained in Step 5)
(the first thing moves the Web2RTC port from the default to 8556, because otherwise it will match the Frigate port and one of them will no longer start, the second thing creates an rtsp feed for the camera)
-
Go to Frigate and in the Configuration Editor, the path for your camera should be “path: rtsp://YOURHAIP:8556/your camera name”
-
Enjoy your new Frigate camera!
Hope it helps others, I didn’t go into the details of configuring Frigate or the Advanced Camera Card, as those I consider to be very clear on the project doc pages, but for this situation, points 5 & 6 took me hours to comprehend
P.S. If anyone also needs the snapshot link for such a scenario, it’s http://YOURHAIP:1984/api/frame.jpeg?src=yourcameraname