1. Home Assistant - ZoneMinder ONVIF interference
Indeed it looks like once Home Assistant is connected over ONVIF with the cameras, by starting ZoneMinder and attempting also to connect to the cameras through ONVIF the latter coughs and writes "Failed to get ONVIF messages! 28 Connection refused" in the log.
Code: Select all
30.04.2025, 22:37:56 EEST zmc_m2 2726 ERR Failed to get ONVIF messages! 28 Connection refused zm_monitor_onvif.cpp 207
30.04.2025, 22:37:55 EEST zmc_m1 2704 ERR Failed to get ONVIF messages! 28 Connection refused zm_monitor_onvif.cpp 207
30.04.2025, 22:37:46 EEST zmc_m2 2726 ERR Failed to get ONVIF messages! 28 Connection refused zm_monitor_onvif.cpp 207
30.04.2025, 22:37:45 EEST zmc_m1 2704 ERR Failed to get ONVIF messages! 28 Connection refused zm_monitor_onvif.cpp 207
Code: Select all
30.04.2025, 22:38:25 EEST zmcontrol_1 2876 INF Control server 1/onvif starting at 25/04/30 22:38:25 zmcontrol.pl 127
30.04.2025, 22:38:25 EEST zmcontrol_1 2876 INF Starting control server 1/onvif
2. Motion detection events (in my case Person Detection - that's configured in the camera "intelligence") over ONVIF are received by Zone Minder (also simultaneously in Home Assistant ), but apparently Zone Minder doesn't know hoe to interpret them. I triggered manually (dancing in front of the camera) a Person Detection event and in the Zone Minder log I got:
Code: Select all
30.04.2025, 22:35:58 EEST zmc_m1 2704 ERR Failed to get ONVIF messages! 8 (null) zm_monitor_onvif.cpp 207
30.04.2025, 22:35:38 EEST zmc_m2 2726 ERR Failed to get ONVIF messages! 8 (null) zm_monitor_onvif.cpp 207
30.04.2025, 22:35:37 EEST zmc_m1 2704 ERR Failed to get ONVIF messages! 8 (null) zm_monitor_onvif.cpp 207
Code: Select all
30.04.2025, 22:48:20 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 1, fault:error, detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:48:09 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:47:58 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:47:48 EEST zmc_m1 3039 INF UHU-1: 1100 - Capturing at 24.99 fps, capturing bandwidth 59865bytes/sec Analysing at 0.00 fps zm_monitor.cpp 1845
30.04.2025, 22:47:47 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:47:37 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:47:26 EEST zmc_m2 2936 INF UHU-2: 13200 - Capturing at 24.97 fps, capturing bandwidth 13093bytes/sec Analysing at 0.00 fps zm_monitor.cpp 1845
30.04.2025, 22:47:25 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:47:14 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null zm_monitor_onvif.cpp 108
30.04.2025, 22:47:04 EEST zmc_m1 3039 INF UHU-1: 0 - Capturing at 0.00 fps, capturing bandwidth 685bytes/sec Analysing at 0.00 fps zm_monitor.cpp 1845
30.04.2025, 22:47:04 EEST zmc_m1 3041 ERR ONVIF Couldn't create subscription! 8, fault:(null), detail:null
https://imgur.com/a/54CJdhD
.......
In Home assistant I'm using the "standard" ONVIF integration - source code is here (it's open source - maybe good for inspiration - don't be shy

https://github.com/home-assistant/core/ ... ents/onvif
I noticed in this thread that there were some issues with the ONVIF implementation in the cameras FW - saw a reference to a TP-Link Forum thread. When I bought my TAPO C520WS V1 cameras back in February 2025, my "stock" FW was 1.2.10 Build 241025 Rel.55515n and the Home Assistant ONVIF integration worked perfectly fine with it, no issues whatsoever.
As a side note, I received today word from TP-Link, they're saying that the smart mode (white LED light) during night is not working properly (I understood from their long blabla that the luminosity is too low) and the camera might miss movements (won't record) so they won't fix it. They offered a refund. I guess I'll stick with the IR LEDs only during night. .. a flawed product
