-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Automations and Polling Interval Variability #143
Comments
This issue is being tracked basically from start. #2 As far as I know there is no API how to monitor the CPU Usage. Workaround is basically impossible.
All of that is a reason why default pull interval is 30 seconds. Because it can cause overload. You can get a lot of "why something does not work as expected" from this picture |
Thank you @petrleocompel that makes sense to me. I have a spare hub so I'll explore a bit what is possible with SSH, security logs and perhaps the hardware interfaces on the device like RS232 or SIA. |
I just wanted to check in... I've not found a way to do this with ARC protocols. The AX Pro does not seem to forward these sorts of detection alerts. But, do you know if the AX Pro supports the following? This seems to be implemented on cameras and NVRs, but did you ever try this on the AX Pro previously? /ISAPI/Event/notification/alertStream |
1 similar comment
I just wanted to check in... I've not found a way to do this with ARC protocols. The AX Pro does not seem to forward these sorts of detection alerts. But, do you know if the AX Pro supports the following? This seems to be implemented on cameras and NVRs, but did you ever try this on the AX Pro previously? /ISAPI/Event/notification/alertStream |
@5ur3n it is very rude to send the message 5 times... |
It is a continual HTTP long-pull stream undocumented for this type of device but it responds. UnArmed system
I will only technically work with "alarm triggering". Which would still be amazing but not enough for "sensors" But you would get "real-time" alarm trigger. |
Sadly for us. {
"ipAddress": "x",
"portNo": 80,
"protocol": "HTTP",
"macAddress": "x",
"channelID": 1,
"dateTime": "2024-12-12T15:00:59+01:00",
"activePostCount": 1,
"eventType": "cidEvent",
/// Active until any zone is "armed" even last disarming event is still active
"eventState": "active",
"eventDescription": "CID event",
"uuid": "x",
"deviceID": "username",
"CIDEvent": {
"code": 3401,
"name": "username",
//// EVENT
"type": "armAndDisarm",
"trigger": "2024-12-12T15:00:57+01:00",
"upload": "2024-12-12T15:00:59+01:00",
"system": 1,
"subSystemName": "AREA 1"
}
} But Seems trigger events are coming in live - But only "Armed" {
"ipAddress": "x",
"portNo": 80,
"protocol": "HTTP",
"macAddress": "x",
"channelID": 1,
"dateTime": "2024-12-12T15:10:02+01:00",
"activePostCount": 1,
"eventType": "cidEvent",
"eventState": "active",
"eventDescription": "CID event",
"uuid": "x",
"deviceID": "",
"CIDEvent": {
"code": 1103,
"name": "",
"type": "zoneAlarmTamper",
"trigger": "2024-12-12T15:09:59+01:00",
"upload": "2024-12-12T15:10:02+01:00",
"system": 10,
// Triggered zone
"subSystemName": "Area 1",
"zone": 1,
"zoneCompatible": true
}
} System does not stop sending those but does not indicate in any "state" that alarm is triggered. To disable new {
"ipAddress": "192.168.X.X",
"portNo": 80,
"protocol": "HTTP",
"macAddress": "XX",
"channelID": 1,
"dateTime": "2024-12-12T14:54:23+01:00",
"activePostCount": 1,
"eventType": "cidEvent",
/// Inactive alarm
"eventState": "inactive",
"eventDescription": "CID event",
"deviceID": "XX"
} |
Hi there
After a bit of messing about with my AX Pro, I have discovered a way to get motion detection events even when the alarm is not armed. This has spectacular automation and energy saving potential. I have described it here: https://community.home-assistant.io/t/hikvision-ax-pro-alarm/541882/5?u=5ur3n
However, to do something like turn the lights on when motion is detected, I've had to set the polling interval down to 1-2 seconds, but this causes the alarm to behave erratically, for instance,
My assumption here is that with 45-odd devices on the AX Pro, refreshing frequently might be maxing out the CPU or other resources and worsening latency.
I'm not very familiar with the ISAPI interfaces, but is it possible to create a workaround for this problem? Some ideas that could perhaps work:
My hypothesis here is that load reduction would mitigate the erratic behavior by reducing load on the hub with frequent calls. Of course, I have very little data to support this since there are no errors in the logs that I have seen.
What are your thoughts? Is this worth thinking about given the potential for smart automation?
The text was updated successfully, but these errors were encountered: