-
Notifications
You must be signed in to change notification settings - Fork 52
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
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #82
Comments
Also only a few sensors are imported, I guess it is breaking part way through the initial bootstrap. Currently integration is not functional for my NVR |
Can you try to monitor the alertStream endpoint manually and post the output after you've let it run for ~5min, hopefully with a camera trigger captured? This will let you monitor the alertStream, I'd expect the first one to work, but please try both and let me know what the outputs are.
|
I assume you mean the IP address of the NVR as each camera is on POE address from the NVR. when I curl Access "curl --digest -N http://YOUR_CAM_IP/ISAPI/Event/notification/alertStream" I get the following error: Error: 401 -- Unauthorized |
Yes, NVR IP. Are you using digest or basic authentication? You can drop the --digest if you are using basic. |
I think both are selected. How do I pass credentials in to authenticate with api? |
It should ask, but if it isn't you can use the -u flag to include a username, and curl will prompt for a password:
|
Just getting a lot of these:
|
That's expected as the videoloss event is used as a keep-alive in the stream. If you have a trigger type setup to notify the surveillance center it should show up in that stream when triggered. Since your error occurs during setup, let's start by posting what you get as soon as you connect and then a snippet during a trigger. It looks like your NVR may not by posting the camera channel in the same format, but I need to see what an actual trigger looks like to determine that. |
Gotcha, makes perfect sense. Here is a trigger event:
|
Here's another:
|
Does this give you the information you need to resolve? |
Almost, can you define debug logging in HASS for the hikvision parts (example below) and post a full log from startup?
|
Apologies for the delay. |
Is that all the debug you need now or do you need anything further to get a fix released ? |
Has this been fixed yet @mezz64 ? Cheers |
I've not had the free time as of late to implement a fix. I'll see what I can do this coming week to get it taken care of |
Hi, same NVR and same issue. Since the pastebin is not available anymore, here's my debug log:
|
I have another startup log with more information:
But I also something more interesting. I added dirty custom debug logs to better understand what could be happening. The result is the following:
As I understand it, the script is unable to get a proper channel id while enumerating the ID_TYPES. So I just added a fallback channel ID as 0 (cf. my previous screenshot) and... I was able to get a valid event in Home Assistant for one of my field_detection sensor. 😀 Here's the complete log for the event:
So some progress made here. ☺ |
Ok, while looking for proper videoloss event in this repo, I found out that this was a known issue: @pete-leese Try to disable "Notify Surveillance Center" for "Video Loss" for all your cameras. |
Anniversary duplicate of #45 (last activity with the workaround just one year ago), but it was interesting to debug anyway. |
Hi,
I am a Home Assistant user, and recently installed a DYN 7608NXI HikVision NVR, however the following error appears during the integration starting, I believe that this maybe an issue with this wrapper.
The text was updated successfully, but these errors were encountered: