Closed NeoMatrixJR closed 2 years ago
I set up this plugin for use with an Amcrest AD410. Everything else...seems to work. It gets JPEG updates so I get pictures in the feed, but no video. I keep getting this in the logs: 2022-03-16 13:04:01 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door_main] Error from stream worker: Error opening stream (ERRORTYPE_22, Invalid argument) rtsp://****:****@192.168.5.*:554/cam/realmonitor?channel=1&subtype=0 Additional logs with debugging on (scrubbed): 2022-03-16 13:03:43 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/42[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:03:42","Size":43437,"StoragePoint":"NULL","UTC":1647457422.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:03:43 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/42[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:03:42', 'Size': 43437, 'StoragePoint': 'NULL', 'UTC': 1647457422.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} /usr/local/lib/python3.9/site-packages/turbojpeg.py:879: UserWarning: Corrupt JPEG data: 608 extraneous bytes before marker 0xfe warnings.warn(self.get_error_string(handle)) 2022-03-16 13:03:44 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.622 seconds (success: True) 2022-03-16 13:03:52 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/51[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:03:51","Size":42960,"StoragePoint":"NULL","UTC":1647457431.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:03:52 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/51[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:03:51', 'Size': 42960, 'StoragePoint': 'NULL', 'UTC': 1647457431.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:01 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door_main] Error from stream worker: Error opening stream (ERRORTYPE_22, Invalid argument) rtsp://:@192.168.5.:554/cam/realmonitor?channel=1&subtype=0 2022-03-16 13:04:02 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/01[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:01","Size":42594,"StoragePoint":"NULL","UTC":1647457441.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:02 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/01[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:01', 'Size': 42594, 'StoragePoint': 'NULL', 'UTC': 1647457441.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:12 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/11[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:11","Size":43188,"StoragePoint":"NULL","UTC":1647457451.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:12 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/11[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:11', 'Size': 43188, 'StoragePoint': 'NULL', 'UTC': 1647457451.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} /usr/local/lib/python3.9/site-packages/turbojpeg.py:879: UserWarning: Corrupt JPEG data: 608 extraneous bytes before marker 0xfe warnings.warn(self.__get_error_string(handle)) 2022-03-16 13:04:13 DEBUG (Thread-62) [custom_components.dahua] Keep alive 2022-03-16 13:04:13 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p?\x00\x00\x00D\x00\x00\x00\x00\x00\x00\x00D\x00\x00\x00\x00\x00\x00\x00{"id":63,"params":{"timeout":55},"result":true,"session":711997548}\n'' 2022-03-16 13:04:15 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.299 seconds (success: True) 2022-03-16 13:04:22 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/21[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:21","Size":43114,"StoragePoint":"NULL","UTC":1647457461.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:22 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/21[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:21', 'Size': 43114, 'StoragePoint': 'NULL', 'UTC': 1647457461.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:32 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/31[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:31","Size":43090,"StoragePoint":"NULL","UTC":1647457471.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:32 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/31[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:31', 'Size': 43090, 'StoragePoint': 'NULL', 'UTC': 1647457471.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:42 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p*\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/41[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:41","Size":43271,"StoragePoint":"NULL","UTC":1647457481.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:42 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/41[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:41', 'Size': 43271, 'StoragePoint': 'NULL', 'UTC': 1647457481.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} /usr/local/lib/python3.9/site-packages/turbojpeg.py:879: UserWarning: Corrupt JPEG data: 608 extraneous bytes before marker 0xfe warnings.warn(self.get_error_string(handle)) 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\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":"TimeChange","Data":{"BeforeModifyTime":"2022-03-16 13:04:44","LocaleTime":"2022-03-16 13:04:44","ModifiedTime":"2022-03-16 13:04:44","UTC":1647457484.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'TimeChange', 'Data': {'BeforeModifyTime': '2022-03-16 13:04:44', 'LocaleTime': '2022-03-16 13:04:44', 'ModifiedTime': '2022-03-16 13:04:44', 'UTC': 1647457484.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x00\x1c\x01\x00\x00\x00\x00\x00\x00\x1c\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NTPAdjustTime","Data":{"Address":"200.160.0.8","Before":"2022-03-16 13:04:42","LocaleTime":"2022-03-16 13:04:44","UTC":1647457484.0,"result":true},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NTPAdjustTime', 'Data': {'Address': '200.160.0.8', 'Before': '2022-03-16 13:04:42', 'LocaleTime': '2022-03-16 13:04:44', 'UTC': 1647457484.0, 'result': True}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:47 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.532 seconds (success: True) 2022-03-16 13:04:52 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/51[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:51","Size":42899,"StoragePoint":"NULL","UTC":1647457491.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:52 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/51[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:51', 'Size': 42899, 'StoragePoint': 'NULL', 'UTC': 1647457491.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:05:02 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/05\/01[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:05:01","Size":43059,"StoragePoint":"NULL","UTC":1647457501.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:05:02 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/05\/01[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:05:01', 'Size': 43059, 'StoragePoint': 'NULL', 'UTC': 1647457501.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'}
2022-03-16 13:04:01 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door_main] Error from stream worker: Error opening stream (ERRORTYPE_22, Invalid argument) rtsp://****:****@192.168.5.*:554/cam/realmonitor?channel=1&subtype=0
Not sure what was wrong but resetting/simplifying the password fixed this
I set up this plugin for use with an Amcrest AD410. Everything else...seems to work. It gets JPEG updates so I get pictures in the feed, but no video. I keep getting this in the logs:
2022-03-16 13:04:01 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door_main] Error from stream worker: Error opening stream (ERRORTYPE_22, Invalid argument) rtsp://****:****@192.168.5.*:554/cam/realmonitor?channel=1&subtype=0
Additional logs with debugging on (scrubbed): 2022-03-16 13:03:43 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/42[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:03:42","Size":43437,"StoragePoint":"NULL","UTC":1647457422.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:03:43 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/42[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:03:42', 'Size': 43437, 'StoragePoint': 'NULL', 'UTC': 1647457422.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} /usr/local/lib/python3.9/site-packages/turbojpeg.py:879: UserWarning: Corrupt JPEG data: 608 extraneous bytes before marker 0xfe warnings.warn(self.get_error_string(handle)) 2022-03-16 13:03:44 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.622 seconds (success: True) 2022-03-16 13:03:52 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/51[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:03:51","Size":42960,"StoragePoint":"NULL","UTC":1647457431.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:03:52 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/03\/51[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:03:51', 'Size': 42960, 'StoragePoint': 'NULL', 'UTC': 1647457431.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:01 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door_main] Error from stream worker: Error opening stream (ERRORTYPE_22, Invalid argument) rtsp://:@192.168.5.:554/cam/realmonitor?channel=1&subtype=0 2022-03-16 13:04:02 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/01[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:01","Size":42594,"StoragePoint":"NULL","UTC":1647457441.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:02 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/01[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:01', 'Size': 42594, 'StoragePoint': 'NULL', 'UTC': 1647457441.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:12 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/11[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:11","Size":43188,"StoragePoint":"NULL","UTC":1647457451.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:12 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/11[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:11', 'Size': 43188, 'StoragePoint': 'NULL', 'UTC': 1647457451.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} /usr/local/lib/python3.9/site-packages/turbojpeg.py:879: UserWarning: Corrupt JPEG data: 608 extraneous bytes before marker 0xfe warnings.warn(self.__get_error_string(handle)) 2022-03-16 13:04:13 DEBUG (Thread-62) [custom_components.dahua] Keep alive 2022-03-16 13:04:13 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p?\x00\x00\x00D\x00\x00\x00\x00\x00\x00\x00D\x00\x00\x00\x00\x00\x00\x00{"id":63,"params":{"timeout":55},"result":true,"session":711997548}\n'' 2022-03-16 13:04:15 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.299 seconds (success: True) 2022-03-16 13:04:22 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/21[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:21","Size":43114,"StoragePoint":"NULL","UTC":1647457461.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:22 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/21[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:21', 'Size': 43114, 'StoragePoint': 'NULL', 'UTC': 1647457461.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:32 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/31[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:31","Size":43090,"StoragePoint":"NULL","UTC":1647457471.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:32 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/31[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:31', 'Size': 43090, 'StoragePoint': 'NULL', 'UTC': 1647457471.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:42 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p*\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/41[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:41","Size":43271,"StoragePoint":"NULL","UTC":1647457481.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:42 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/41[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:41', 'Size': 43271, 'StoragePoint': 'NULL', 'UTC': 1647457481.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} /usr/local/lib/python3.9/site-packages/turbojpeg.py:879: UserWarning: Corrupt JPEG data: 608 extraneous bytes before marker 0xfe warnings.warn(self.get_error_string(handle)) 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\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":"TimeChange","Data":{"BeforeModifyTime":"2022-03-16 13:04:44","LocaleTime":"2022-03-16 13:04:44","ModifiedTime":"2022-03-16 13:04:44","UTC":1647457484.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'TimeChange', 'Data': {'BeforeModifyTime': '2022-03-16 13:04:44', 'LocaleTime': '2022-03-16 13:04:44', 'ModifiedTime': '2022-03-16 13:04:44', 'UTC': 1647457484.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x00\x1c\x01\x00\x00\x00\x00\x00\x00\x1c\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NTPAdjustTime","Data":{"Address":"200.160.0.8","Before":"2022-03-16 13:04:42","LocaleTime":"2022-03-16 13:04:44","UTC":1647457484.0,"result":true},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:45 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NTPAdjustTime', 'Data': {'Address': '200.160.0.8', 'Before': '2022-03-16 13:04:42', 'LocaleTime': '2022-03-16 13:04:44', 'UTC': 1647457484.0, 'result': True}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:04:47 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.532 seconds (success: True) 2022-03-16 13:04:52 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/51[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:04:51","Size":42899,"StoragePoint":"NULL","UTC":1647457491.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:04:52 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/04\/51[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:04:51', 'Size': 42899, 'StoragePoint': 'NULL', 'UTC': 1647457491.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'} 2022-03-16 13:05:02 DEBUG (Thread-4) [custom_components.dahua] Event data 192.168.5.: 'b' \x00\x00\x00DHIPl8p\x08\x00\x00\x008\x01\x00\x00\x00\x00\x00\x008\x01\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NewFile","Data":{"File":"\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/05\/01[F][0@0][0].jpg","LocaleTime":"2022-03-16 13:05:01","Size":43059,"StoragePoint":"NULL","UTC":1647457501.0},"Index":0}]},"session":711997548}\n'' 2022-03-16 13:05:02 DEBUG (Thread-4) [custom_components.dahua] VTO Data received: {'Action': 'Pulse', 'Code': 'NewFile', 'Data': {'File': '\/mnt\/sd\/2022-03-16\/001\/jpg\/13\/05\/01[F][0@0][0].jpg', 'LocaleTime': '2022-03-16 13:05:01', 'Size': 43059, 'StoragePoint': 'NULL', 'UTC': 1647457501.0}, 'Index': 0, 'deviceType': 'AD410', 'serialNumber': 'Z174A4A21AB0B', 'DeviceName': 'Front Door'}