Your ONVIF implementation is lacking…
I've been getting my D260 (fw 1.7.2) working with my own NVR using ONVIF for motion events. It works, but only with workarounds. Sharing in case it helps anyone else, or in case Tapo is listening:
It drops PullMessages connections constantly. The camera closes the connection without replying, even though the subscription is still fine. My software read that as a dead subscription and resubscribed about 75 times every 10 minutes, losing queued events each time. The fix was to retry the pull on the same subscription, and only resubscribe if nothing gets through for about a minute.
It sends the same event over and over. Pulled messages don't get cleared, so for about a second every pull returns the last event again. In one 10-minute capture, 1,813 of 1,947 events were repeats. I now drop exact duplicates on the same topic, and wait a moment before pulling again when the camera answers instantly with nothing new.
None of this happens with my other cameras (Dahua, Reolink). If you're using a Tapo with Frigate, Blue Iris, Home Assistant or similar and seeing phantom or duplicate motion events, or flaky ONVIF connections, this is probably why. Has anyone heard whether a firmware fix is coming?