Suddenly Getting Rate-Limited in Honeywell (US) Integration

Error from the logs:

Logger: somecomfort
Source: /usr/local/lib/python3.10/site-packages/somecomfort/client.py:445
First occurred: February 15, 2023 at 8:58:13 AM (351 occurrences)
Last logged: 10:08:41 AM

API Rate Limited.

Note that this has happened 351 times since February15. I’m running HA 2023.1.7. I’ve been running the Honeywell integration without error for years.

I have seen that too in 2023.1.7.
I just upgraded to 2023.2.5 and I’m seeing other errors.

Logger: homeassistant.helpers.entity
Source: components/honeywell/climate.py:416
First occurred: 1:47:10 PM (3 occurrences)
Last logged: 1:47:10 PM

Update for climate.home_ac fails
Update for climate.home_heat fails
Update for climate.shore 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 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 -3] Try again

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 548, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 754, in async_device_update
    await task
  File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 416, in async_update
    await self._data.client.login()
  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 _create_connection
    _, 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 www.mytotalconnectcomfort.com:443 ssl:default [Try again]

Thanks. I guess updating to 2022.2.5 won’t fix it :frowning:

For the record, this stopped happening shortly after I posted. It’s only been a few hours, so it’s too soon to know if this was a one-time anomaly.

The Honeywell integration has been stable for a while now. I hope this isn’t a new problem introduced by a recent update. It could also be something on the Honeywell server end. I’ll keep monitoring.

Anyone else with the Honeywell (US) integration, please feel free to post your experience, good or bad.

And… As quickly as it started, the problem is gone. Nothing changed, HA not rebooted. I’ll keep watching the logs, but for now it’s a mystery.