The problem
From the integrations page, click the + sign, searching and selecting ONVIS, then clicking «SUBMIT» returns an error Unknown error occurred
Environment
Home Assistant 0.110.0
s | v |
---|---|
arch | x86_64 |
dev | false |
docker | true |
hassio | false |
installation_type | Home Assistant Core on Docker |
os_name | Linux |
os_version | 4.19.107-Unraid |
python_version | 3.7.7 |
timezone | America/Los_Angeles |
version | 0.110.0 |
virtualenv | false |
- Home Assistant Core release with the issue:
- Last working Home Assistant Core release (if known):
- Operating environment (Home Assistant/Supervised/Docker/venv): unraid Docker
- Integration causing this issue: ONVIF
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/onvif/
Problem-relevant configuration.yaml
Traceback/Error logs
2020-05-20 18:46:17 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 125, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 54, in wrapper result = await method(view, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 103, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step result: Dict = await getattr(flow, method)(user_input) File "/usr/src/homeassistant/homeassistant/components/onvif/config_flow.py", line 96, in async_step_user return await self.async_step_device() File "/usr/src/homeassistant/homeassistant/components/onvif/config_flow.py", line 122, in async_step_device discovery = await async_discovery(self.hass) File "/usr/src/homeassistant/homeassistant/components/onvif/config_flow.py", line 53, in async_discovery services = await hass.async_add_executor_job(wsdiscovery) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/onvif/config_flow.py", line 42, in wsdiscovery discovery.start() File "/usr/local/lib/python3.7/site-packages/wsdiscovery/threaded.py", line 285, in start self._startThreads() File "/usr/local/lib/python3.7/site-packages/wsdiscovery/threaded.py", line 265, in _startThreads self._networkingThread.start() File "/usr/local/lib/python3.7/site-packages/wsdiscovery/threaded.py", line 239, in start self._multiInSocket = self._createMulticastInSocket() File "/usr/local/lib/python3.7/site-packages/wsdiscovery/threaded.py", line 109, in _createMulticastInSocket sock.bind(('', MULTICAST_PORT)) OSError: [Errno 98] Address in use
Additional information
Содержание
- ONVIF integration — can not add camera via UI #35968
- Comments
- The problem
- Environment
- Problem-relevant configuration.yaml
- Traceback/Error logs
- Additional information
- Reolink NVR — Onvif — Unknown Error #58702
- Comments
- The problem
- ONVIF Fetch snapshot image failed #59378
- Comments
- The problem
- What version of Home Assistant Core has the issue?
- What was the last working version of Home Assistant Core?
- What type of installation are you running?
- Integration causing the issue
- Link to integration documentation on our website
- Example YAML snippet
- Anything in the logs that might be useful for us?
- Additional information
- ONVIF problem on v. 0.104.0.dev20191214 #29935
- Comments
- Footer
- Onvif: device not added when https enabled #41800
- Comments
- The problem
- Environment
- Problem-relevant configuration.yaml
- Traceback/Error logs
- Additional information
ONVIF integration — can not add camera via UI #35968
The problem
In the version before (0.109) my ONVIF camera was working fine and showed a video without any problem. In version 0.110.1 HA did not start. I removed yaml config for that camera — HA now starts. I tried add this camera through UI — «Unknown error occurred».
Environment
- Home Assistant Core release with the issue: 0.110.1
- Last working Home Assistant Core release (if known): 0.109
- Operating environment (Home Assistant/Supervised/Docker/venv): venv
- Integration causing this issue: onvif
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
Traceback/Error logs
Additional information
Camera type: Hikvision DS-2CD2335-I, V5.3.6 build 151221
The text was updated successfully, but these errors were encountered:
Same here, the following error is observed:
2020-05-20 18:04:51 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Side — 00:12:16:9b:63:95 for onvif Traceback (most recent call last): File «/usr/src/homeassistant/homeassistant/config_entries.py», line 217, in async_setup hass, self File «/usr/src/homeassistant/homeassistant/components/onvif/__init__.py», line 73, in async_setup_entry if not await device.async_setup(): File «/usr/src/homeassistant/homeassistant/components/onvif/device.py», line 99, in async_setup self.capabilities = await self.async_get_capabilities() File «/usr/src/homeassistant/homeassistant/components/onvif/device.py», line 234, in async_get_capabilities pullpoint = event_capabilities.WSPullPointSupport AttributeError: ‘NoneType’ object has no attribute ‘WSPullPointSupport’
Your issue is probably more related to #35846
Источник
Reolink NVR — Onvif — Unknown Error #58702
The problem
After upgrading Reolink NVR for v3.0.0.148_21100909 firmware.
Logger: aiohttp.server
Source: components/onvif/config_flow.py:198
First occurred: 16:05:14 (1 occurrences)
Last logged: 16:05:14
Error handling request
Traceback (most recent call last):
File «/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py», line 61, in map_httpcore_exceptions
yield
File «/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py», line 281, in handle_async_request
) = await self._pool.handle_async_request(
File «/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py», line 234, in handle_async_request
response = await connection.handle_async_request(
File «/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py», line 136, in handle_async_request
self.socket = await self._open_socket(timeout)
File «/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py», line 163, in _open_socket
return await self._backend.open_tcp_stream(
File «/usr/local/lib/python3.9/site-packages/httpcore/_backends/auto.py», line 44, in open_tcp_stream
return await self.backend.open_tcp_stream(
File «/usr/local/lib/python3.9/site-packages/httpcore/_backends/anyio.py», line 154, in open_tcp_stream
stream = await TLSStream.wrap(
File «/usr/local/lib/python3.9/contextlib.py», line 137, in exit
self.gen.throw(typ, value, traceback)
File «/usr/local/lib/python3.9/site-packages/httpcore/_exceptions.py», line 12, in map_exceptions
raise to_exc(exc) from None
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Источник
ONVIF Fetch snapshot image failed #59378
The problem
I get these persistent errors on my camera in the onvif integration.
Over 700 errors after doing a reboot less than 2 hours prior. Between the time I started this report to finishing it went from 700 errors to 730.
What version of Home Assistant Core has the issue?
What was the last working version of Home Assistant Core?
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Link to integration documentation on our website
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
The camera is a Hikvision DS-HD1 doorbell camera.
The text was updated successfully, but these errors were encountered:
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)
I also noticed this issue getting much worse since 2021.11.x; 2021.12.x did not fix the problem.
The fallback to ffmpeg starts a few minutes after HA starts
This type of fallback has been happening for a long time, see:
however prior to 2021.11.x, changing authentication for the cam to ‘basic’ as per the discussion in the bug linked above helped mitigate, the fallback only happened rarely. Currently and since 2021.11.x the fallback is consistent, happens all the time.
Nothing changed in the camera side.
I just upgraded from 2021.11.x to 2021.12.2 and I now see the issue. Inspecting .storage/core.config_entries shows, that username and password in the file are now empty strings.
Adding credentials manually to .storage/core.config_entries and changing from digest to basic is a functional workaround.
I just upgraded from 2021.11.x to 2021.12.2 and I now see the issue. Inspecting .storage/core.config_entries shows, that username and password in the file are now empty strings. Adding credentials manually to .storage/core.config_entries and changing from digest to basic is a functional workaround.
I double checked my settings, and none of mine were blank.
I’m seeing this as well with my ONVIF cameras — also using 2021.12.x builds & dahua cams
Just before this entry I also get this:
Logger: homeassistant.components.onvif
Source: components/onvif/event.py:224
Integration: ONVIF (documentation, issues)
First occurred: 9:11:44 AM (1 occurrences)
Last logged: 9:11:44 AM
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.
Still seeing the issues
issue still present in 2022.06.1
Unfortunately I have the same problem (Core 2022.6.7):
`Logger: homeassistant.components.onvif
Source: components/onvif/camera.py:145
Integration: ONVIF (documentation, issues)
First occurred: 12:17:39 (13 occurrences)
Last logged: 12:41:16
Fetch snapshot image failed from DahuaHof, falling back to FFmpeg; Unknown error:
Fetch snapshot image failed from Amcrest_AD110_ONVIF, falling back to FFmpeg; Unknown error:`
I have 4 cameras:
1 x Dahua SD49225T-HN
2 x Dahua SD1A203T-GN-W (One of them is the DahuaHof. The other one hasn’t had this error message yet.)
1 x Amcrest AD110
Unfortunately I have the same problem (Core 2022.6.7):
`Logger: homeassistant.components.onvif Source: components/onvif/camera.py:145 Integration: ONVIF (documentation, issues) First occurred: 12:17:39 (13 occurrences) Last logged: 12:41:16
Fetch snapshot image failed from DahuaHof, falling back to FFmpeg; Unknown error: Fetch snapshot image failed from Amcrest_AD110_ONVIF, falling back to FFmpeg; Unknown error:`
I have 4 cameras: 1 x Dahua SD49225T-HN 2 x Dahua SD1A203T-GN-W (One of them is the DahuaHof. The other one hasn’t had this error message yet.) 1 x Amcrest AD110
Honestly-I use the generic camera integration now, and use the ONVIF integration only for the other sensors and disable the 2 camera entities I have,
Источник
ONVIF problem on v. 0.104.0.dev20191214 #29935
Home Assistant release with the issue:
0.104.0
Operating environment (Hass.io/Docker/Windows/etc.):
Raspberry pi 4 (Docker) && Debian 9 server (Docker)
Description of problem:
ONVIF don’t work on Raspberry pi 4 && Debian 9 server (both docker-compose)
configuration.yaml entries:
Work correcly with:
Don’t start with:
Traceback (if applicable):
Additional information:
Camera work correctly with ONVIF Device Manager
The text was updated successfully, but these errors were encountered:
Try the URLs, etc, in the #30209.
These are not the same problems. I can’t run ONVIF at all
I noticed that you are giving port 554 to the onvif component. Port 554 is for RTSP, and it is unlikely to work with onvif. I wanted to see if another port (8899 is the one for my camera) would work for you. (Of course, my camera doesn’t work with the onvif library, but yours might. )
Some situation with 8001
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 now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Onvif: device not added when https enabled #41800
The problem
When adding an onvif camera whose interface uses http to home assistant, it works. After enabling https with self signed certificate on the camera, then trying to add that to home assistant, it fails with unknown error after entering in the username and pass
Environment
0.116.2
Ubuntu 20.04, in python 3.8.
- Home Assistant Core release with the issue:
- Last working Home Assistant Core release (if known):
- Operating environment (OS/Container/Supervised/Core):
- Integration causing this issue:
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
no custom config.yaml used
Traceback/Error logs
Logger: aiohttp.server
Source: components/onvif/config_flow.py:202
First occurred: 11:58:05 AM (1 occurrences)
Last logged: 11:58:05 AM
Error handling request
Traceback (most recent call last):
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/aiohttp/web_protocol.py», line 418, in start
resp = await task
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/aiohttp/web_app.py», line 458, in _handle
resp = await handler(request)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/aiohttp/web_middlewares.py», line 119, in impl
return await handler(request)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/http/request_context.py», line 18, in request_context_middleware
return await handler(request)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/http/ban.py», line 72, in ban_middleware
return await handler(request)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/http/auth.py», line 127, in auth_middleware
return await handler(request)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/http/view.py», line 129, in handle
result = await result
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/config/config_entries.py», line 169, in post
return await super().post(request, flow_id)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/http/data_validator.py», line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/helpers/data_entry_flow.py», line 106, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py», line 156, in async_configure
result = await self._async_handle_step(flow, cur_step[«step_id»], user_input)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py», line 204, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/onvif/config_flow.py», line 170, in async_step_auth
return await self.async_step_profiles()
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/homeassistant/components/onvif/config_flow.py», line 202, in async_step_profiles
await device.update_xaddrs()
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/onvif/client.py», line 264, in update_xaddrs
capabilities = await devicemgmt.GetCapabilities(<«Category»: «All»>)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/zeep/asyncio/bindings.py», line 20, in send
return self.process_reply(client, operation_obj, response)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py», line 195, in process_reply
return self.process_error(doc, operation)
File «/home/zolstarym/home-assistant/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py», line 357, in process_error
raise Fault(
zeep.exceptions.Fault: The ONVIF client may not support HTTPS mode. Please check the client settings or disable HTTPS in the Device configuration settings and try again. If the problem persists, contact technical support.
Additional information
When https is enabled on camera, I can still add it and connect to it successfully using a phone app, so the problem seems to not be with the camera.
The text was updated successfully, but these errors were encountered:
Источник
Я так понимаю, что интеграция все же работает, а проблема это некий multicas_port, после нескольких попыток в журнале появилось вот это:
Error handling request
Traceback (most recent call last): File «/opt/lib/python3.9/site-packages/aiohttp/web_protocol.py», line 422, in _handle_request File «/opt/lib/python3.9/site-packages/aiohttp/web_app.py», line 499, in _handle File «/opt/lib/python3.9/site-packages/aiohttp/web_middlewares.py», line 118, in impl File «/opt/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py», line 56, in security_filter_middleware File «/opt/lib/python3.9/site-packages/homeassistant/components/http/request_context.py», line 18, in request_context_middleware File «/opt/lib/python3.9/site-packages/homeassistant/components/http/ban.py», line 72, in ban_middleware File «/opt/lib/python3.9/site-packages/homeassistant/components/http/auth.py», line 127, in auth_middleware File «/opt/lib/python3.9/site-packages/homeassistant/components/http/view.py», line 129, in handle File «/opt/lib/python3.9/site-packages/homeassistant/components/config/config_entries.py», line 169, in post File «/opt/lib/python3.9/site-packages/homeassistant/components/http/data_validator.py», line 60, in wrapper File «/opt/lib/python3.9/site-packages/homeassistant/helpers/data_entry_flow.py», line 106, in post File «/opt/lib/python3.9/site-packages/homeassistant/data_entry_flow.py», line 155, in async_configure File «/opt/lib/python3.9/site-packages/homeassistant/data_entry_flow.py», line 213, in _async_handle_step File «/opt/lib/python3.9/site-packages/homeassistant/components/onvif/config_flow.py», line 96, in async_step_user File «/opt/lib/python3.9/site-packages/homeassistant/components/onvif/config_flow.py», line 122, in async_step_device File «/opt/lib/python3.9/site-packages/homeassistant/components/onvif/config_flow.py», line 53, in async_discovery File «/opt/lib/python3.9/concurrent/futures/thread.py», line 52, in run File «/opt/lib/python3.9/site-packages/homeassistant/components/onvif/config_flow.py», line 42, in wsdiscovery File «/opt/lib/python3.9/site-packages/wsdiscovery/threaded.py», line 285, in start self._startThreads() File «/opt/lib/python3.9/site-packages/wsdiscovery/threaded.py», line 265, in _startThreads self._networkingThread.start() File «/opt/lib/python3.9/site-packages/wsdiscovery/threaded.py», line 239, in start self._multiInSocket = self._createMulticastInSocket() File «/opt/lib/python3.9/site-packages/wsdiscovery/threaded.py», line 109, in _createMulticastInSocket sock.bind((», MULTICAST_PORT)) OSError: [Errno 125] Address already in use
Keenetic находится за GPON терминалом, а камеры подключены к WI-FI сети GPON.