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
71.5k stars 29.9k forks source link

ONVIF camera error with V380 CAM #81578

Closed FragMenthor closed 1 year ago

FragMenthor commented 1 year ago

The problem

Since 2022.11.0 my long lasting ONVIF camera stopped working, the integration doesn't reload. No problems for almost 2 years, now it doesn't load. I can ping the camera and I can use the camera from the native app. It's a V380 CAM.

What version of Home Assistant Core has the issue?

core-2022.11.1

What was the last working version of Home Assistant Core?

core-2022.11.0.b4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ONVIF

Link to integration documentation on our website

https://www.home-assistant.io/integrations/onvif/

Diagnostics information

No response

Example YAML snippet

My configuration BEFORE the integration could be setup from the UI (now it's commented)

# camera:
#   - platform: generic
#     name: Cave (RTSP)
#     still_image_url: http://192.168.1.98/jpg/image.jpg
#     stream_source: rtsp://myusername:mypassword@192.168.1.98/live/ch00_1
#   - platform: generic
#     name: Cave (ONVIF)
#     still_image_url: http://192.168.1.98/jpg/image.jpg
#     stream_source: rtsp://myusername:mypassword@192.168.1.98/onvif1

### Anything in the logs that might be useful for us?

```txt
Detalhes do Log (ERRO)
Logger: homeassistant.setup
Source: setup.py:192
First occurred: 22:08:29 (1 occurrences)
Last logged: 22:08:29

Setup failed for custom integration onvif: Unable to import component: No module named 'cached_property'

Additional information

image

image

image

When trying to add new integration: image image

home-assistant[bot] commented 1 year 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!

Code owner commands Code owners of `onvif` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign onvif` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


onvif documentation onvif source (message by IssueLinks)

Gmm21071995 commented 1 year ago

The problem

Since 2022.11.0 my long lasting ONVIF camera stopped working, the integration doesn't reload. No problems for almost 2 years, now it doesn't load. I can ping the camera and I can use the camera from the native app. It's a V380 CAM.

What version of Home Assistant Core has the issue?

core-2022.11.1

What was the last working version of Home Assistant Core?

core-2022.11.0.b4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ONVIF

Link to integration documentation on our website

https://www.home-assistant.io/integrations/onvif/

Diagnostics information

No response

Example YAML snippet

My configuration BEFORE the integration could be setup from the UI (now it's commented)

# camera:
#   - platform: generic
#     name: Cave (RTSP)
#     still_image_url: http://192.168.1.98/jpg/image.jpg
#     stream_source: rtsp://myusername:mypassword@192.168.1.98/live/ch00_1
#   - platform: generic
#     name: Cave (ONVIF)
#     still_image_url: http://192.168.1.98/jpg/image.jpg
#     stream_source: rtsp://myusername:mypassword@192.168.1.98/onvif1

### Anything in the logs that might be useful for us?

```txt
Detalhes do Log (ERRO)
Logger: homeassistant.setup
Source: setup.py:192
First occurred: 22:08:29 (1 occurrences)
Last logged: 22:08:29

Setup failed for custom integration onvif: Unable to import component: No module named 'cached_property'

Additional information

image

image

image

When trying to add new integration: image image

me too

Gmm21071995 commented 1 year ago

Me too Any solution?

new-kirte commented 1 year ago

Mee too - Reolink E1 Zoom

robynadastra commented 1 year ago

Me three (many more in other threads). Various Dahua.

jannecklarsson commented 1 year ago

Me four.. imou (dahua). BUT! I disabled onvif authentication in the camera and then it worked.

FragMenthor commented 1 year ago

Me four.. imou (dahua). BUT! I disabled onvif authentication in the camera and then it worked.

Can you describe the steps you did? In my case, I have to consider I also cannot add the integraton again, or at least a new one, because it gives an error: image

jannecklarsson commented 1 year ago

All i did was to disable onvif-auth in the cameras settings. go to camera ip and enter creds. then navigate to network. Ofcourse it depends on your camera model.

robynadastra commented 1 year ago

Me three (many more in other threads). Various Dahua.

Removing authentication didn't work, but Sync'd time time inside of each camera from PC, deleted each camera from Add-On, reloaded, working as of this morning. Immediately backed up configuration with "Cameras Working" label for the future...

FragMenthor commented 1 year ago

Me three (many more in other threads). Various Dahua.

Removing authentication didn't work, but Sync'd time time inside of each camera from PC, deleted each camera from Add-On, reloaded, working as of this morning. Immediately backed up configuration with "Cameras Working" label for the future...

Hummm..., that didn't worked well for me. Removed the device, but I cannot add again because I get an error. I have no more ONVIV devices, that was the only one.

When I try to add, it gives me: image

Already restarted HA after removing the device. Any thoughts on how to deal with this?

FragMenthor commented 1 year ago

Also when I try to add from yaml, I get this configuration validation error:

image

Can't get arround this...

ronaldopdc commented 1 year ago

Same problem here. I even can't delete my cameras from onvif intagration.

Andy1910 commented 1 year ago

I found an Onvif folder in custom_components copied to desktop then deleted from custom_components,upgraded core to 2022.11.3. Everything back up and running

ronaldopdc commented 1 year ago

WOW! Fannally it works. Thanks Andy1910! I just deleted de Onvif folder in custom_components folder, restarted the home assistant and boom! All cameras start to work again like magic.

Andy1910 commented 1 year ago

WOW! Fannally it works. Thanks Andy1910! I just deleted de Onvif folder in custom_components folder, restarted the home assistant and boom! All cameras start to work again like magic.

your welcome

issue-triage-workflows[bot] commented 1 year 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.

Gmm21071995 commented 1 year ago

How can I get swap memory higher? I need more because Onvif cameras (9). Raspy colapse now. Thanks

Enviado desde mi iPhone

El 21 feb 2023, a las 14:10, issue-triage-workflows[bot] @.***> escribió:

 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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

bdraco commented 1 year ago

Please try 2023.4.5

Make sure you don't have a custom component overriding onvif

bdraco commented 1 year ago

Setup failed for custom integration onvif: Unable to import component: No module named 'cached_property'

You have a custom version of the onvif integration installed.

Delete it from /config/custom_components and restart