I have five cameras (Hikvision DS-2CD2155FWD-I, DS-2CD2185FWD-I, DS-2CD2385FWD-I, 2x Annke I91BF).
All of them are on the (as far as I know) newest firmware V5.6.820 build 220519.
Four of them are easily integrated via ONVIF.
But the second Annke Camera always comes with this error:
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)
Username and Password are definitely correct. I’m able to log in via the WebUI of the camera without any problems.
I also checked the configuration of the secong Annke camera. It’s exactly the same as the configuration of the working one.
Thank you very much for mentioning this! In my case, some of the hikvision cameras I’m integrating happen to unsync time with home assistant, requiring me to manually enter each camera, manually re-setting time to any value and then resyncing with NTP, then I go to home assistant and relog into onvif. In this case, it was the same, but instead of saying something like "can’t log in due to time unsync’, it just showed “unauthorized”