Hello,
I’m having trouble with my hunter douglas powerview connection. About 50% of the time when I restart hassio on the rpi, it times out in trying to connect. Here is the filtered log:
2019-09-12 15:43:00 INFO (SyncWorker_3) [homeassistant.loader] Loaded hunterdouglas_powerview from homeassistant.components.hunterdouglas_powerview
2019-09-12 15:43:12 INFO (MainThread) [homeassistant.components.scene] Setting up scene.hunterdouglas_powerview
2019-09-12 15:43:24 WARNING (MainThread) [homeassistant.components.scene] Setup of platform hunterdouglas_powerview is taking over 10 seconds.
2019-09-12 15:43:30 ERROR (MainThread) [aiopvapi.helpers.aiorequest] Failed to communicate with PowerView hub:
2019-09-12 15:43:33 ERROR (MainThread) [homeassistant.components.scene] Error while setting up platform hunterdouglas_powerview
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiopvapi/helpers/aiorequest.py", line 66, in get
response = await self.websession.get(url, params=params)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
await self._loop.create_connection(*args, **kwargs))
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 981, in create_connection
ssl_handshake_timeout=ssl_handshake_timeout)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1009, in _create_connection_transport
await waiter
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiopvapi/helpers/aiorequest.py", line 67, in get
return await check_response(response, [200, 204])
File "/usr/local/lib/python3.7/site-packages/async_timeout/__init__.py", line 45, in __exit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.7/site-packages/async_timeout/__init__.py", line 92, in _do_exit
raise asyncio.TimeoutError
concurrent.futures._base.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/hunterdouglas_powerview/scene.py", line 47, in async_setup_platform
_scenes = await Scenes(pv_request).get_resources()
File "/usr/local/lib/python3.7/site-packages/aiopvapi/helpers/api_base.py", line 91, in get_resources
resources = await self.request.get(self._base_path, **kwargs)
File "/usr/local/lib/python3.7/site-packages/aiopvapi/helpers/aiorequest.py", line 70, in get
raise PvApiConnectionError
aiopvapi.helpers.aiorequest.PvApiConnectionError
Is there a way to increase the timeout? Or a way for it to retry again after a minute or every minute until it succeeds?
Thanks!