Aqara G4 source link of camera

Hello fellow community,
I bought a aqara G4 doorbell and want it to use in home assistant aswell in homekit.
So I paired it to home assistant and connected the doorbell-function via node-red (homekit addon) to home kit. So far so good and it works nicely. BUT! I can’t get the video working. The camera entity in HA workes well but I need the source link to connect it to homekit. In the example of the link there is something with “rtsp://IP…”. So I installed go2rtc to get some more infos and found a link of the camera what’s something like “homekit://IP…” but this link wont work.
So, does someone know which source link I need to use? I mean I can access the camera in HA so i think I just struggling with the right source link.
BTW the addon in node-red is the “node-red-contrib-homekit-bridged”.

I wish you all a nice day and thank you very much in advance :slight_smile:

I’m not sure if this will help with node-red and rtsp, but I did find an http address for my video stream in HA by inspecting it in the browser (Right click the browser window with the feed → click on the inspect tool → click on the video. You’ll then see the html element of the page with the http address in it).

Did y ou manage to solve this somehow?

I’m very curious how you got this to work, as I can not find the vendor Aqara.

Rick

You will want to use Go2rtc with the aqara g4 to have it in home assistant AND homekit.

My go2rtc config setup is as follows.

Check out this site too

https://www.reddit.com/r/Aqara/comments/1atbb1r/aqara_g4_doorbell_home_assistant_integration/

streams:
  Doorbell:
    - homekit://192.168.0.158:41743?client_id=8171e5b6-3bd1-428c-97e5-4ceb0f9c3baf&client_private=3020a4498ddfd3d91ec0cdff3fd870caae88ef14ba95dff049ffe030f2a0a873ad7ba9a3e362ae78adee18377ac14d23520556a5050e18db02dc99d9da13d4bc&device_id=4C:B9:BE:1E:84:18&device_public=8a20eb9b0ccd23b92f4acd8f286b52d5016fdda5d16fe153f4e42892a3bab5bb
    - ffmpeg:Doorbell#audio=opus
homekit:
  Doorbell:
           pairings:
             - client_id=C22DD3EA-9304-495F-8331-6FC16634C3C3&client_public=cbe3a3ac8ecfbaff3c9237f9963440e2e1d887d3d14af95d4dc45c3571e2aa28&permissions=1
             - client_id=0EBC76CD-AEA5-40DE-B485-51E8A5670A16&client_public=d3ba3bdeefcbd2ca22c0a04612a22be3efc5136502cf13b0c2b6028c2e4ff6b7&permissions=1