Closed NotSteveAtGithub closed 2 years ago
I'm having the same issues. This is my log:
Este erro originou-se de uma integração personalizada.
Logger: homeassistant.helpers.entity Source: custom_components/bhyve/pybhyve/client.py:73 Integration: Orbit B-hyve (documentation) First occurred: 16:21:25 (108 occurrences) Last logged: 16:34:26
Update for sensor.zone_history fails Update for sensor.zone_history_2 fails Update for sensor.zone_history_3 fails Update for sensor.zone_history_4 fails Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection hosts = await asyncio.shield(host_resolved) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection hosts = await asyncio.shield(host_resolved) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection hosts = await asyncio.shield(host_resolved) [Previous line repeated 1 more time] File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 867, in _resolve_host await event.wait() File "/usr/local/lib/python3.10/site-packages/aiohttp/locks.py", line 34, in wait raise self._exc File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 867, in _resolve_host await event.wait() File "/usr/local/lib/python3.10/site-packages/aiohttp/locks.py", line 34, in wait raise self._exc File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 867, in _resolve_host await event.wait() File "/usr/local/lib/python3.10/site-packages/aiohttp/locks.py", line 34, in wait raise self._exc File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 880, in _resolve_host addrs = await self._resolver.resolve(host, port, family=self._family) File "/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve infos = await self._loop.getaddrinfo( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 860, in getaddrinfo return await self.run_in_executor( File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name does not resolve
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 514, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 709, in async_device_update raise exc File "/config/custom_components/bhyve/sensor.py", line 195, in async_update history = await self._fetch_device_history(force_update=force_update) or [] File "/config/custom_components/bhyve/init.py", line 288, in _fetch_device_history return await self._bhyve.get_device_history(self._device_id, force_update) File "/config/custom_components/bhyve/pybhyve/client.py", line 212, in get_device_history await self._refresh_device_history(device_id, force_update=force_update) File "/config/custom_components/bhyve/pybhyve/client.py", line 114, in _refresh_device_history device_history = await self._request( File "/config/custom_components/bhyve/pybhyve/client.py", line 73, in _request async with self._session.request( File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in aenter self._resp = await self._coro File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection raise ClientConnectorError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.orbitbhyve.com:443 ssl:default [Name does not resolve]
@sebr should be resolved by https://github.com/sebr/bhyve-home-assistant/pull/155
Describe the bug Any time I start HA, I'm able to start and stop watering from the UI and from automations. However, over a day (or a few), it eventually stops working. The log shows this message when a command fails:
2022-08-18 17:31:13.598 WARNING (MainThread) [custom_components.bhyve.pybhyve.websocket] Tried to send message whilst websocket closed; state: starting
Expected behaviour Would expect continued operation.
BHyve devices I have 5 "Orbit 21005 B-hyve Bluetooth Hose Faucet Timers" and 4 wi-fi hubs.
Device Diagnostics