dahua
dahua copied to clipboard
Cancel VTO call does not work anymore after firmware upgrade
Hi,
I have a VTO2311R-WP, flahsed with the latest firmware (dated 2025/01/22). With this firmware, the service dahua.vto_cancel_call does not work anymore.
Find debug logs below.
2025-02-17 23:07:05.217 INFO (MainThread) [custom_components.dahua] Cancelling call on VTO
2025-02-17 23:07:05.226 DEBUG (Thread-7) [custom_components.dahua] Event data 192.168.5.143: 'b' \x00\x00\x00DHIP\x14\x80\x81\x19\x12\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00{"error":{"code":268959743,"message":"Unknown error! error code was not set in service!"},"id":18,"result":false,"session":427917332}\n''
2025-02-17 23:07:05.226 INFO (Thread-7) [custom_components.dahua] Got cancel call response: {'error': {'code': 268959743, 'message': 'Unknown error! error code was not set in service!'}, 'id': 18, 'result': False, 'session': 427917332}
2025-02-17 23:07:07.085 DEBUG (Thread-7) [custom_components.dahua] Event data 192.168.5.143: 'b' \x00\x00\x00DHIP\x14\x80\x81\x19\x08\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"SIPRegisterResult","Data":{"LocaleTime":"2025-02-17 23:07:07","RealUTC":1739830027,"Success":true,"UTC":1739830027.0},"Index":0}]},"session":427917332}\n''
2025-02-17 23:07:07.085 DEBUG (Thread-7) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'SIPRegisterResult', 'Data': {'LocaleTime': '2025-02-17 23:07:07', 'RealUTC': 1739830027, 'Success': True, 'UTC': 1739830027.0}, 'Index': 0, 'deviceType': 'DHI-VTO2311R-WP', 'serialNumber': '8A008XXXXXXXXXX', 'DeviceName': 'Camera voordeur (Dahua)'}
2025-02-17 23:07:08.202 DEBUG (Thread-7) [custom_components.dahua] Event data 192.168.5.143: 'b' \x00\x00\x00DHIP\x14\x80\x81\x19\x08\x00\x00\x00)\x01\x00\x00\x00\x00\x00\x00)\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"SIPRegisterResult","Data":{"Date":"2025-02-17 22:07:08","LocaleTime":"2025-02-17 23:07:08","RealUTC":1739830028,"Success":true,"UTC":1739830028.0,"Zone":"GMT"},"Index":0}]},"session":427917332}\n''
2025-02-17 23:07:08.203 DEBUG (Thread-7) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'SIPRegisterResult', 'Data': {'Date': '2025-02-17 22:07:08', 'LocaleTime': '2025-02-17 23:07:08', 'RealUTC': 1739830028, 'Success': True, 'UTC': 1739830028.0, 'Zone': 'GMT'}, 'Index': 0, 'deviceType': 'DHI-VTO2311R-WP', 'serialNumber': '8A008XXXXXXXXXX', 'DeviceName': 'Camera voordeur (Dahua)'}
2025-02-17 23:07:09.673 DEBUG (Thread-7) [custom_components.dahua] Event data 192.168.5.143: 'b' \x00\x00\x00DHIP\x14\x80\x81\x19\x08\x00\x00\x00\xf6\x00\x00\x00\x00\x00\x00\x00\xf6\x00\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"BackKeyLight","Data":{"LocaleTime":"2025-02-17 23:07:09","RealUTC":1739830029,"State":0,"UTC":1739830029.0},"Index":-1}]},"session":427917332}\n''
2025-02-17 23:07:09.673 DEBUG (Thread-7) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'BackKeyLight', 'Data': {'LocaleTime': '2025-02-17 23:07:09', 'RealUTC': 1739830029, 'State': 0, 'UTC': 1739830029.0}, 'Index': -1, 'deviceType': 'DHI-VTO2311R-WP', 'serialNumber': '8A008XXXXXXXXXX', 'DeviceName': 'Camera voordeur (Dahua)'}
With the previous firmware I had no issues. Anything I can do to fix this?