Open jerome71 opened 1 month ago
Yes. This is known problem. Because Frigate always reset go2rtc config. But all HomeKit pairing should be stored there.
Thanks. For info I made the initial post in the Frigate discussions here https://github.com/blakeblackshear/frigate/discussions/13610 Any idea for a workaround would be welcome. 🙏😊
Frigate can change config storing logic. Because go2rtc can support multiple config files simultaneously.
Also you can use external go2rtc for this.
Also you can save pairing information to Frigate's config. Not best idea, but it should works.
Also you can save pairing information to Frigate's config. Not best idea, but it should works.
thanks for the tip. Why is it not the best idea? Security concerns?
No. Because this is not constant information. Apple Home may want to add/remove items at any time.
Well. I did just that (store HomeKit pairing information in Frigate's config) almost 2 months ago and it works perfectly. As long as you don't remove the cameras from HomeKit of course :-)
One security concern is that I had to run the Frigate container in host networking mode, offering unauthenticated access on port 5000. Took some measures at the host firewall level (iptables) and it is (for me and my situation) an acceptable security level for now.
One security concern is that I had to run the Frigate container in host networking mode, offering unauthenticated access on port 5000.
I haven't thought about it. But that is a risk that would be negligible to me too, considering all the other stuff in the frigate config. I'll probably secure 5000 to be only accessible from HA.
Hi. I use Go2rtc in Frigate in a docker container on a Raspberry Pi 5 with host networking mode. Go2rtc is installed by and part of the Frigate package. This is Go2RTC 1.9.2
I added a camera from Frigate/Go2rtc to HomeKit (the Home app on Apple devices) Initially, it works beautifully on my iPhone, iPad, Apple TV, Mac ...
But, after I restart Frigate, the camera is "not responding" in the Home app, and Frigate and Go2RTC show a lot of errors. 192.168.42.8 (in the logs) is the IP of my Apple TV, which acts as a HomeKit hub.
Initially tried with 6 cameras, that all worked well, until I restarted Frigate. If I remove the cameras from HomeKit, I get no more errors in the logs.
The 1st Go2rtc log is just after adding the camera to HomeKit. The 2nd Go2RTC log is after restarting Frigate.
Thanks in advance! :-)
Here is the 1st Go2rtc log: 2024-09-07 16:34:37.039501507 [INFO] Preparing new go2rtc config... 2024-09-07 16:34:37.452694601 [INFO] Starting go2rtc... 2024-09-07 16:34:37.537543585 16:34:37.537 INF go2rtc platform=linux/arm64 revision=b2399f3 version=1.9.2 2024-09-07 16:34:37.537550788 16:34:37.537 INF config path=/dev/shm/go2rtc.yaml 2024-09-07 16:34:37.538044288 16:34:37.537 INF [api] listen addr=:1984 2024-09-07 16:34:37.538124288 16:34:37.538 INF [rtsp] listen addr=:8554 2024-09-07 16:34:37.538425288 16:34:37.538 INF [webrtc] listen addr=:8555/tcp 2024-09-07 16:34:46.902121007 [INFO] Starting go2rtc healthcheck service... 2024-09-07 16:46:06.737098965 16:46:06.736 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50752, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C"
Here is the Go2rtc log: 2024-09-07 16:48:51.362878083 [INFO] Preparing new go2rtc config... 2024-09-07 16:48:51.800833216 [INFO] Starting go2rtc... 2024-09-07 16:48:51.920985301 16:48:51.920 INF go2rtc platform=linux/arm64 revision=b2399f3 version=1.9.2 2024-09-07 16:48:51.921085690 16:48:51.921 INF config path=/dev/shm/go2rtc.yaml 2024-09-07 16:48:51.921777708 16:48:51.921 INF [api] listen addr=:1984 2024-09-07 16:48:51.922045485 16:48:51.922 INF [rtsp] listen addr=:8554 2024-09-07 16:48:51.922320189 16:48:51.922 INF [webrtc] listen addr=:8555/tcp 2024-09-07 16:49:01.219381482 [INFO] Starting go2rtc healthcheck service... 2024-09-07 16:49:01.806790713 16:49:01.806 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50761, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:01.848717289 16:49:01.848 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50762, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:01.869373124 16:49:01.869 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50763, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:06.948694395 16:49:06.948 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50764, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:06.975301243 16:49:06.975 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50765, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:23.999892246 16:49:23.999 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50766, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:24.019435933 16:49:24.019 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50767, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:24.048593205 16:49:24.048 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50768, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:24.063152453 16:49:24.062 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50769, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:26.805677979 16:49:26.805 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50770, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:26.833870178 16:49:26.833 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50771, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:26.873436182 16:49:26.873 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50772, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:26.887761948 16:49:26.887 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50773, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:26.919700476 16:49:26.919 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50774, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:26.933305798 16:49:26.933 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50775, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:26.961847126 16:49:26.961 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50776, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:26.979986000 16:49:26.979 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50777, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:29.215138006 16:49:29.214 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50778, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:29.237115358 16:49:29.236 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50779, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:39.366786302 16:49:39.366 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50780, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:39.385055898 16:49:39.384 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50781, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:49:59.481681946 16:49:59.480 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50782, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:49:59.497577211 16:49:59.497 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50783, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:50:11.324190806 16:50:11.324 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50784, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:50:11.350666766 16:50:11.350 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50785, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:50:12.689868783 16:50:12.689 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50786, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:50:12.705575881 16:50:12.705 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50787, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:50:15.921800191 16:50:15.921 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50788, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:50:15.944934987 16:50:15.944 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50789, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:51:11.329104642 16:51:11.328 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50790, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:51:11.354355899 16:51:11.354 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50791, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:52:11.329815853 16:52:11.329 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50792, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:52:11.354424833 16:52:11.354 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50793, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:53:11.331318278 16:53:11.331 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50794, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:53:11.352369242 16:53:11.351 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50795, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:54:11.333273598 16:54:11.333 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50796, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:54:11.358736855 16:54:11.358 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50797, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:55:11.334024090 16:55:11.333 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50798, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:55:11.354592814 16:55:11.354 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50799, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:56:11.337169749 16:56:11.337 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50800, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:56:11.357160437 16:56:11.357 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50801, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:57:11.349400110 16:57:11.349 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50802, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:57:11.367551762 16:57:11.367 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50803, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:58:11.358862963 16:58:11.356 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50804, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:58:11.371852119 16:58:11.371 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50805, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 16:59:11.911622522 16:59:11.911 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50806, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 16:59:11.933046023 16:59:11.932 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50807, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:00:11.911634158 17:00:11.911 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50808, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:00:11.938834673 17:00:11.935 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50809, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:01:11.945229944 17:01:11.945 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50810, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:01:11.971035535 17:01:11.970 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50811, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:02:11.946813683 17:02:11.946 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50812, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:02:11.971010905 17:02:11.970 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50813, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:03:11.947425619 17:03:11.947 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50814, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:03:11.969777471 17:03:11.969 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50815, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:04:13.490389955 17:04:13.490 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50816, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:04:13.509623143 17:04:13.509 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50817, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:05:16.924831705 17:05:16.924 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50818, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:05:16.949431481 17:05:16.949 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50819, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:06:16.935684535 17:06:16.935 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50820, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:06:16.957975462 17:06:16.957 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50821, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:07:16.949053924 17:07:16.947 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50822, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:07:16.971379628 17:07:16.971 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50823, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:08:16.947070768 17:08:16.946 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50824, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:08:16.971454397 17:08:16.971 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50825, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF" 2024-09-07 17:09:18.282443858 17:09:18.282 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50826, with unknown client_id: 5AB2670B-569A-491D-BA2B-371EFA72826C" 2024-09-07 17:09:18.305228099 17:09:18.305 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:178 > error="hap: PairVerify from: 192.168.42.8:50827, with unknown client_id: 0C2E018B-61A0-4ED6-ADE2-496ADD1DD8AF"