Open LordXaosa opened 1 month ago
Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration (onvif
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
onvif documentation onvif source (message by IssueLinks)
The problem
After camera reboot it's time resets and ONVIF integration can't authenticate because security header with nonce has more than 5 seconds difference (it's actually half a year difference). So after camera reboot ONVIF integration asks reconfiguration and provided username and password won't work.
I've tested onvif device manager software where all works fine and dumped with wireshark some data. I've realized that this software asks anonymously camera about it's time and then authorizes with camera time (not local), so authenticated requests works fine and it can set date and time.
So please check if camera has wrong time and pass correct auth header. Software request:
Response:
![image](https://github.com/user-attachments/assets/590cf153-9939-4a7b-8a02-d047dcf6ca49)
Forward requests with authorization:![image](https://github.com/user-attachments/assets/9ff62925-cd51-40d7-b105-8f6dfb2585a5)
What version of Home Assistant Core has the issue?
core-2024.7.2
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
No response
Link to integration documentation on our website
https://www.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