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

ONVIF integration won't authenticate with Hikvision digest authentication #119107

Open
Alby247 opened this issue Jun 7, 2024 · 12 comments
Open

Comments

@Alby247
Copy link

Alby247 commented Jun 7, 2024

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

No tasks being tracked yet.
@rainepretorius
Copy link

Same for me ONVIF for my cameras not workig

@brian-kehoe
Copy link

I have received the same error message

@quieThu
Copy link

quieThu commented Jun 11, 2024

Same issue here :(

@Alby247
Copy link
Author

Alby247 commented Jun 12, 2024

@hunterjm is this an issue with the integration, or is it something we are all doing wrong re authorisation of the Hikvision cameras?

@quieThu
Copy link

quieThu commented Jun 12, 2024

I receive this error message when trying to setup the onvif integration:

Could not authenticate: The action requested requires authorization and the sender is not authorized (code:env:Sender) (subcodes:{http://www.onvif.org/ver10/error}NotAuthorized)

Model: Hikvision DS-2DE2A404IW-DE3
FW: V5.7.11 build 230612
ONVIF authentication mode: digest/WSSE

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)

Screenshot_20240612_203615_Chrome

@Alby247
Copy link
Author

Alby247 commented Jun 13, 2024

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.

@kizza42
Copy link

kizza42 commented Jun 27, 2024

Am also experiencing this issue recently with a Hikvision DS-2CD2347G2-LU running its latest firmware.
I have played with the different Onvif access levels, sometimes It just works and then I leave it be until the next HA Update restarts HA and things break again

@ficho81
Copy link

ficho81 commented Jul 6, 2024

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.

@RuiFG
Copy link

RuiFG commented Jul 18, 2024

everybody help??

@rainepretorius
Copy link

What fixed mine was turning off stream encryption on the devices local menu.

@markbooth73
Copy link

Hello, I have ANNKE AC500, again HA ONVIF stopped working.

How I "fixed" mine was to install Hikvision firmware.

This gave me an option to turn off time verification

image

For some reason whatever attempts to correct the time failed.

Regards,

@ficho81
Copy link

ficho81 commented Jul 21, 2024

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.

solved toggling "daylight saving time" option!!

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

8 participants