-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
ONVIF integration won't authenticate with Hikvision digest authentication #119107
Comments
Same for me ONVIF for my cameras not workig |
I have received the same error message |
Same issue here :( |
@hunterjm is this an issue with the integration, or is it something we are all doing wrong re authorisation of the Hikvision cameras? |
I receive this error message when trying to setup the onvif integration:
Model: Hikvision DS-2DE2A404IW-DE3 The onvif username is pretty simple and the password is only 9 characters long without specials. It works perfectly with alternative ONVIF monitoring app (onvier from play store for example) |
I should also mention I can connect to the NVR fine using Onvif Device Manager. Onvif HA integration detects the NVR (and a camera that I enabled Onvif on) but it won't accept the authentication. |
Am also experiencing this issue recently with a Hikvision DS-2CD2347G2-LU running its latest firmware. |
I have an Annke C800 camera, very similar to Hikvision ones, and HA ONVIF stopped working some months ago. After a lot of debugging, I arrived to the conclusion that HA onvif integration may be the problem. |
everybody help?? |
What fixed mine was turning off stream encryption on the devices local menu. |
solved toggling "daylight saving time" option!! |
Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) onvif documentation |
This fixed the issue for me as well. First configure your time settings, thereafter enable DST. I worked the other way around and that doesn't work. So work from top to bottom in the time settings screen of your camera :-) |
Same here, works on VLC for example, not sure how to fix it. |
The fundamental problem is that Onvif requires you to put the time value in UTC when encrypting the password. |
*bump* Annke NC800. I have had to do 2 things to make this work:
|
The integration returns an http 401 content missing for me. |
The same thing just helped me with the IPC-T249HA-LU camera, upgrading the firmware to Firmware_V5.8.4_240613 and disabling 'time verification.' |
The problem
ONVIF integration wont authenticate with Hikvision digest authentication
Previously reported here
#99166
but this was closed without resolution.
Hikvision devices are detected by ONVIF integration but authorisation fails
Returns error:
Could not authenticate: Unknown fault occured: <?xml version='1.0' encoding='utf-8'?> <head> <title>Unauthorized</title> <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> </link> <body> <h2>Access Error: 401 -- Unauthorized</h2> <pre/> </body> </head>
Users/passwords etc in Hikvision devices checked and triple checked.
Nothing in system logs.
What version of Home Assistant Core has the issue?
2024.6.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ONVIF
Link to integration documentation on our website
https://home-assistant.io/integrations/onvif/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
Tasks
The text was updated successfully, but these errors were encountered: