Closed thorrrr closed 1 day ago
Hey there @davet2001, mind taking a look at this issue as it has been labeled with an integration (generic
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
generic documentation generic source (message by IssueLinks)
From the logs you provided it looks like this is related to the hikvision integration.
HI Dave I dont have the Hikvision integration but my yaml calls on them
If the traceback data you provided is pointing to issues with pyhik, then I don't see how that can be related to generic camera.
Maybe this issue needs tagging for pyhik and the description updating?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
See several errors popping up daily re my Hikvision CCTV cameras
Logger: pyhik.hikvision Source: components/hikvision/binary_sensor.py:158 First occurred: 11:06:58 (1 occurrences) Last logged: 11:06:58
Authentication failed
Logger: homeassistant.components.hikvision.binary_sensor Source: components/hikvision/binary_sensor.py:114 integration: hikvision (documentation, issues) First occurred: 11:06:58 (1 occurrences) Last logged: 11:06:58
Hikvision event stream has no data, unable to set up
Logger: root Source: /usr/src/homeassistant/homeassistant/bootstrap.py:535 First occurred: 11:07:24 (1 occurrences) Last logged: 11:07:24
Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyhik/hikvision.py", line 514, in alert_stream raise ValueError('Connection unsucessful.') ValueError: Connection unsucessful.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.12/site-packages/pyhik/hikvision.py", line 575, in alert_stream self.update_stale() File "/usr/local/lib/python3.12/site-packages/pyhik/hikvision.py", line 637, in update_stale for etype, echannels in self.event_states.items(): ^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'items'
What version of Home Assistant Core has the issue?
core-2024.4.3
What was the last working version of Home Assistant Core?
Version core-2024.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Generic Cameras
Link to integration documentation on our website
https://www.home-assistant.io/integrations/generic
Diagnostics information
config_entry-generic-78c2fc3d26278d86b06fe21ac02127b1.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response