Tapo C500 - Broken Onvif Events subscription
Good Afternoon,
Everything working apart from ONVIF events subscription on my Tapo C500.
I have been attempting to use Zoneminder V1.37.60 for ONVIF motion events detection.
The zoneminder logs show the following entry: ONVIF Couldn't create subscription! (null), null
I tried using ODM, live streaming works, but get the following error on Events:
When attempting to use Curl to connect to the Onvif service and getting an empty response:
gary@ZoneMinder:~$ curl http://192.168.1.238:2020/onvif/device_service
curl: (52) Empty reply from server
Also tried this bash script:
#!/bin/bash
# Camera IP address and port
CAMERA_IP="192.168.1.238"
CAMERA_PORT="2020"
# Camera credentials
USERNAME="REDACTED"
PASSWORD="REDACTED"
# ONVIF Event Subscription XML
SUBSCRIBE_XML="<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"> \
<env:Body> \
<wsa:Subscribe> \
<wsa:InitialTerminationTime>PT2M</wsa:InitialTerminationTime> \
<wsa:ReferenceParameters> \
<wsa:Callback>http://${CAMERA_IP}/Events</wsa:Callback> \
</wsa:ReferenceParameters> \
<wsa:Filter> \
<wsa:TopicExpression>Detection</wsa:TopicExpression> \
</wsa:Filter> \
</wsa:Subscribe> \
</env:Body> \
</env:Envelope>"
# Send the subscription request
curl -X POST \
http://${CAMERA_IP}:${CAMERA_PORT}/onvif/device_service/Events \
-u ${USERNAME}:${PASSWORD} \
-H "Content-Type: application/soap+xml" \
-d "${SUBSCRIBE_XML}"
And this is the relevant part of the reply I got:
ter:NotAuthorized
Authority failure
The camera account username and password works perfectly for the stream.
Are Onvif events broken for this firmware? (ver 1.1.3)
Thanks in advance.