home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.07k stars 29.15k forks source link

Multiple Errors after 2024.04 re Generic Cameras Integration #115650

Closed thorrrr closed 1 day ago

thorrrr commented 3 months ago

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

home-assistant[bot] commented 3 months 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!

Code owner commands Code owners of `generic` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign generic` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


generic documentation generic source (message by IssueLinks)

davet2001 commented 3 months ago

From the logs you provided it looks like this is related to the hikvision integration.

thorrrr commented 3 months ago

HI Dave I dont have the Hikvision integration but my yaml calls on them

image image

image

davet2001 commented 3 months ago

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?

issue-triage-workflows[bot] commented 1 week ago

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.