Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Abnormal Detection sensor not working #456

Open
Trexano99 opened this issue Feb 9, 2025 · 2 comments
Open

Video Abnormal Detection sensor not working #456

Trexano99 opened this issue Feb 9, 2025 · 2 comments

Comments

@Trexano99
Copy link

Hi everyone.
I have 8 Dahua DH-IPC-HDW3441T-ZS-S2 cameras connected to my NVR but i have added them to Home Assistant using their ip address.

Avery sensor works great (including the similar video_blind sensor) except for the video_abnormal_detection sensor wich is corresponding to the scene change event on the camera.

The scene change event is active on the camera and also the logs are showing that is working properly, but the Dahua integration in Home Assitant is not sending me any data about the scene change.

If any further detail is needed, i will be glad to help.
Thank you in advance.

Dahua version: 0.9.71
Home Assistant version: 2024.12.5

@Trexano99
Copy link
Author

Trexano99 commented Mar 4, 2025

Adding some more information about this issue.

This evening i receive 4 times an email that notify me about the scene change event, respectively at:
20:35:12 - 20:35:17 [start - end]
20:36:53 - 20:36:58
20:41:26 - 20:41:31
20:43:08 - 20:43:13

All those was relative to the camera 192.168.1.82 but the debbuging log (turned on) never show the VideoAbnormalDetection event.

The VideoAbnormalDetection has been flagged during the configuration of the camera so it should be enabled. Any suggestion?

I leave down here the logs about that period of time: (all other cameras log has been removed)

Logs
2025-03-04 20:35:10.165 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 5.303 seconds (success: True)
2025-03-04 20:35:10.583 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.681 seconds (success: True)
2025-03-04 20:35:18.317 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0', 'data': {'EventID': 14450, 'Id': [0], 'RealUTC': 1741116917, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:35:20.802 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Start', 'index': '0', 'data': {'EventID': 14453, 'RealUTC': 1741116919, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 688, 'Rect': [888, 2320, 1896, 5696]}]}}]
2025-03-04 20:35:25.666 DEBUG (Thread-32) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:35:25.816 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.074 seconds (success: True)
2025-03-04 20:35:27.090 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14461, 'RealUTC': 1741116921, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 688, 'Rect': [2936, 5608, 4160, 8120]}]}}]
2025-03-04 20:35:29.432 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.553 seconds (success: True)
2025-03-04 20:35:29.551 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.672 seconds (success: True)
2025-03-04 20:35:29.989 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Start', 'index': '0', 'data': {'EventID': 14469, 'RealUTC': 1741116929, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 689, 'Rect': [672, 1792, 1792, 5864]}]}}]
2025-03-04 20:35:32.250 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.533 seconds (success: True)
2025-03-04 20:35:34.667 DEBUG (Thread-38) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:35:35.488 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 7.478 seconds (success: True)
2025-03-04 20:35:38.060 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14511, 'RealUTC': 1741116932, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 689, 'Rect': [3848, 6048, 5496, 8096]}]}}]
2025-03-04 20:35:39.174 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14468, 'Id': [0], 'RealUTC': 1741116926, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:35:39.295 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.147 seconds (success: True)
2025-03-04 20:35:40.371 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0', 'data': {'EventID': 14514, 'Id': [0], 'RealUTC': 1741116939, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:35:41.091 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Start', 'index': '0', 'data': {'EventID': 14515, 'RealUTC': 1741116940, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 690, 'Rect': [1912, 2672, 3136, 8144]}]}}]
2025-03-04 20:35:41.550 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.647 seconds (success: True)
2025-03-04 20:35:44.932 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 5.071 seconds (success: True)
2025-03-04 20:35:50.666 DEBUG (Thread-12) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:35:53.983 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14598, 'RealUTC': 1741116948, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 691, 'Rect': [896, 1344, 1480, 4136]}]}}]
2025-03-04 20:35:57.754 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.011 seconds (success: True)
2025-03-04 20:35:58.402 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Start', 'index': '0', 'data': {'EventID': 14603, 'RealUTC': 1741116957, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 694, 'Rect': [1368, 2464, 2288, 6160]}]}}]
2025-03-04 20:36:00.666 DEBUG (Thread-26) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:36:01.017 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.138 seconds (success: True)
2025-03-04 20:36:01.358 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.479 seconds (success: True)
2025-03-04 20:36:03.996 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.280 seconds (success: True)
2025-03-04 20:36:09.966 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.818 seconds (success: True)
2025-03-04 20:36:13.103 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.201 seconds (success: True)
2025-03-04 20:36:13.611 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 8.602 seconds (success: True)
2025-03-04 20:36:15.665 DEBUG (Thread-6) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:36:18.989 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 4.127 seconds (success: True)
2025-03-04 20:36:21.125 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14757, 'RealUTC': 1741116975, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 694, 'Rect': [696, 1024, 1152, 3648]}]}}]
2025-03-04 20:36:22.096 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14751, 'Id': [0], 'RealUTC': 1741116975, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:36:28.798 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0', 'data': {'EventID': 14760, 'Id': [0], 'RealUTC': 1741116987, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:36:29.706 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.964 seconds (success: True)
2025-03-04 20:36:32.518 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.638 seconds (success: True)
2025-03-04 20:36:33.019 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.140 seconds (success: True)
2025-03-04 20:36:33.666 DEBUG (Thread-14) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:36:35.330 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.614 seconds (success: True)
2025-03-04 20:36:35.482 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14760, 'Id': [0], 'RealUTC': 1741116987, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:36:41.222 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.073 seconds (success: True)
2025-03-04 20:36:44.184 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.281 seconds (success: True)
2025-03-04 20:36:52.006 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 8.997 seconds (success: True)
2025-03-04 20:36:52.392 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 3.530 seconds (success: True)
2025-03-04 20:36:54.666 DEBUG (Thread-30) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:37:01.163 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.420 seconds (success: True)
2025-03-04 20:37:03.497 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.618 seconds (success: True)
2025-03-04 20:37:04.678 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.800 seconds (success: True)
2025-03-04 20:37:06.372 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.656 seconds (success: True)
2025-03-04 20:37:11.982 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.835 seconds (success: True)
2025-03-04 20:37:15.433 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.530 seconds (success: True)
2025-03-04 20:37:24.784 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.922 seconds (success: True)
2025-03-04 20:37:31.262 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 9.252 seconds (success: True)
2025-03-04 20:37:32.337 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.594 seconds (success: True)
2025-03-04 20:37:34.678 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.799 seconds (success: True)
2025-03-04 20:37:36.396 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.517 seconds (success: True)
2025-03-04 20:37:37.601 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.884 seconds (success: True)
2025-03-04 20:37:43.629 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.482 seconds (success: True)
2025-03-04 20:37:46.636 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.733 seconds (success: True)
2025-03-04 20:37:57.655 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.792 seconds (success: True)
2025-03-04 20:38:03.510 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.766 seconds (success: True)
2025-03-04 20:38:06.803 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.923 seconds (success: True)
2025-03-04 20:38:07.961 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.244 seconds (success: True)
2025-03-04 20:38:08.110 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.232 seconds (success: True)
2025-03-04 20:38:13.669 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 12.660 seconds (success: True)
2025-03-04 20:38:14.296 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.148 seconds (success: True)
2025-03-04 20:38:17.673 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.771 seconds (success: True)
2025-03-04 20:38:19.667 DEBUG (Thread-28) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:38:27.666 DEBUG (Thread-24) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:38:30.051 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 3.189 seconds (success: True)
2025-03-04 20:38:34.643 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.901 seconds (success: True)
2025-03-04 20:38:38.516 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.636 seconds (success: True)
2025-03-04 20:38:39.429 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.712 seconds (success: True)
2025-03-04 20:38:40.064 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.185 seconds (success: True)
2025-03-04 20:38:45.228 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.081 seconds (success: True)
2025-03-04 20:38:49.418 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.515 seconds (success: True)
2025-03-04 20:38:50.867 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 6.859 seconds (success: True)
2025-03-04 20:39:02.697 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.836 seconds (success: True)
2025-03-04 20:39:05.479 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.736 seconds (success: True)
2025-03-04 20:39:10.236 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.357 seconds (success: True)
2025-03-04 20:39:10.829 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0', 'data': {'EventID': 14764, 'Id': [0], 'RealUTC': 1741117149, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:39:10.954 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.237 seconds (success: True)
2025-03-04 20:39:11.776 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.897 seconds (success: True)
2025-03-04 20:39:16.199 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.051 seconds (success: True)
2025-03-04 20:39:16.254 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14764, 'Id': [0], 'RealUTC': 1741117149, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:39:20.544 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.642 seconds (success: True)
2025-03-04 20:39:27.989 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 6.979 seconds (success: True)
2025-03-04 20:39:32.666 DEBUG (Thread-40) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:39:36.254 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.512 seconds (success: True)
2025-03-04 20:39:36.576 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 3.713 seconds (success: True)
2025-03-04 20:39:41.634 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.755 seconds (success: True)
2025-03-04 20:39:42.248 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.531 seconds (success: True)
2025-03-04 20:39:44.185 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.307 seconds (success: True)
2025-03-04 20:39:46.942 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.795 seconds (success: True)
2025-03-04 20:39:47.666 DEBUG (Thread-10) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:39:48.666 DEBUG (Thread-42) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:39:51.858 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.955 seconds (success: True)
2025-03-04 20:40:05.568 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 7.559 seconds (success: True)
2025-03-04 20:40:07.418 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.674 seconds (success: True)
2025-03-04 20:40:10.504 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 4.641 seconds (success: True)
2025-03-04 20:40:12.413 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.533 seconds (success: True)
2025-03-04 20:40:13.331 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.615 seconds (success: True)
2025-03-04 20:40:16.587 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.708 seconds (success: True)
2025-03-04 20:40:18.114 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.967 seconds (success: True)
2025-03-04 20:40:23.306 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.404 seconds (success: True)
2025-03-04 20:40:26.666 DEBUG (Thread-32) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:40:37.671 DEBUG (Thread-38) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:40:38.444 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.702 seconds (success: True)
2025-03-04 20:40:42.482 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 7.472 seconds (success: True)
2025-03-04 20:40:43.525 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 3.663 seconds (success: True)
2025-03-04 20:40:44.180 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.301 seconds (success: True)
2025-03-04 20:40:44.449 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.731 seconds (success: True)
2025-03-04 20:40:49.228 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.080 seconds (success: True)
2025-03-04 20:40:49.901 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 4.023 seconds (success: True)
2025-03-04 20:40:51.667 DEBUG (Thread-12) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:40:54.617 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.715 seconds (success: True)
2025-03-04 20:41:01.666 DEBUG (Thread-26) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:41:06.171 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0', 'data': {'EventID': 14766, 'Id': [0], 'RealUTC': 1741117265, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:41:08.845 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Start', 'index': '0', 'data': {'EventID': 14768, 'RealUTC': 1741117267, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 732, 'Rect': [736, 1344, 1600, 5096]}]}}]
2025-03-04 20:41:08.920 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.178 seconds (success: True)
2025-03-04 20:41:15.874 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.994 seconds (success: True)
2025-03-04 20:41:16.145 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.428 seconds (success: True)
2025-03-04 20:41:16.666 DEBUG (Thread-6) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:41:18.759 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 6.750 seconds (success: True)
2025-03-04 20:41:20.400 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.251 seconds (success: True)
2025-03-04 20:41:21.789 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.911 seconds (success: True)
2025-03-04 20:41:22.802 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 9.940 seconds (success: True)
2025-03-04 20:41:26.005 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.102 seconds (success: True)
2025-03-04 20:41:34.263 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SmartMotionHuman', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14972, 'RealUTC': 1741117288, 'RegionName': ['Area1'], 'WindowId': [0], 'object': [{'HumamID': 732, 'Rect': [656, 1088, 1248, 3600]}]}}]
2025-03-04 20:41:34.666 DEBUG (Thread-14) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:41:35.448 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14962, 'Id': [0], 'RealUTC': 1741117287, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:41:40.245 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.503 seconds (success: True)
2025-03-04 20:41:47.361 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.644 seconds (success: True)
2025-03-04 20:41:47.804 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.925 seconds (success: True)
2025-03-04 20:41:51.103 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.956 seconds (success: True)
2025-03-04 20:41:53.618 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.739 seconds (success: True)
2025-03-04 20:41:55.653 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.792 seconds (success: True)
2025-03-04 20:41:55.666 DEBUG (Thread-30) [custom_components.dahua] reconnecting to camera's event stream...
2025-03-04 20:41:56.587 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 7.577 seconds (success: True)
2025-03-04 20:41:58.265 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.363 seconds (success: True)
2025-03-04 20:42:06.360 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0', 'data': {'EventID': 14974, 'Id': [0], 'RealUTC': 1741117325, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:42:11.287 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.544 seconds (success: True)
2025-03-04 20:42:12.295 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0', 'data': {'EventID': 14976, 'Id': [0], 'RealUTC': 1741117325, 'RegionName': ['Area1'], 'SmartMotionEnable': True}}]
2025-03-04 20:42:18.133 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.417 seconds (success: True)
2025-03-04 20:42:19.257 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.377 seconds (success: True)
2025-03-04 20:42:22.114 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.967 seconds (success: True)
2025-03-04 20:42:24.592 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.714 seconds (success: True)
2025-03-04 20:42:27.306 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.444 seconds (success: True)
2025-03-04 20:42:30.175 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 2.273 seconds (success: True)
2025-03-04 20:42:32.987 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 6.978 seconds (success: True)
2025-03-04 20:42:42.529 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.787 seconds (success: True)
2025-03-04 20:42:49.358 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.641 seconds (success: True)
2025-03-04 20:42:50.771 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.891 seconds (success: True)
2025-03-04 20:42:53.341 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.194 seconds (success: True)
2025-03-04 20:42:55.845 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.966 seconds (success: True)
2025-03-04 20:43:01.292 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 4.431 seconds (success: True)
2025-03-04 20:43:01.327 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.424 seconds (success: True)
2025-03-04 20:43:12.268 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 9.258 seconds (success: True)
2025-03-04 20:43:13.565 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.822 seconds (success: True)
2025-03-04 20:43:20.319 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 1.603 seconds (success: True)

@Trexano99
Copy link
Author

Trexano99 commented Mar 5, 2025

Setting manually codes=[All] inside client.py gave me the answer I was looking for.

2025-03-05 22:16:00.317 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.82 on channel 0: [{'Code': 'SceneChange', 'action': 'Start', 'index': '0', 'data': {'EventID': 18195, 'PTS': 43163734910.0, 'RealUTC': 1741209359, 'UTC': 1741212959.0}}]

The event is not VideoAbnormalDetection as in documentation is write but is SceneChange.

Now I am wondering if this terminology issue is due to my camera firmware too old or too new or something else...
Anyone any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant