Hue v1 Bridge - Cannot connect to host

This was previously working, but broke sometime in H2’2024.

When I use light.turn_off to turn off a group of hue lights, like from a tile on a dashboard or from a node red node, it fails with the following error. When I use the Mushroom Light Card, it works every time.

I am suspicious that the error message says, “ssl: default” and also port 80, but I’m not sure how to change this to test with ssl disabled.

Any pointers would be greatly appreciated!

2025-04-02 10:28:35.175 ERROR (MainThread) [homeassistant.components.hue.v1.light] Unexpected error fetching light data
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1067, in write
    n = self._sock.send(data)
ConnectionResetError: [Errno 104] Connection reset by peer

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/hue/bridge.py", line 128, in async_request_call
    return await task(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohue/v1/api.py", line 21, in update
    raw = await self._request("get", self._path)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohue/v1/__init__.py", line 138, in request
    async with self._websession.request(method, url, json=json) as resp:
               ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/.venv/lib/python3.13/site-packages/aiohttp/client.py", line 1425, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/config/.venv/lib/python3.13/site-packages/aiohttp/client.py", line 730, in _request
    await resp.start(conn)
  File "/config/.venv/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1059, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/config/.venv/lib/python3.13/site-packages/aiohttp/streams.py", line 671, in read
    await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/update_coordinator.py", line 281, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/hue/v1/light.py", line 269, in async_safe_fetch
    return await bridge.async_request_call(fetch_method)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/hue/bridge.py", line 139, in async_request_call
    raise HomeAssistantError(
        f"Request failed due connection error: {err}"
    ) from err
homeassistant.exceptions.HomeAssistantError: Request failed due connection error: [Errno 104] Connection reset by peer
2025-04-02 10:28:35.640 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140065330177664] Unexpected exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/light/__init__.py", line 659, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/group/light.py", line 197, in async_turn_off
    await self.hass.services.async_call(
    ...<5 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1032, in entity_service_call
    raise result from None
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/entity.py", line 1628, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/light/__init__.py", line 659, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/group/light.py", line 197, in async_turn_off
    await self.hass.services.async_call(
    ...<5 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1032, in entity_service_call
    raise result from None
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/entity.py", line 1628, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/light/__init__.py", line 659, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/group/light.py", line 197, in async_turn_off
    await self.hass.services.async_call(
    ...<5 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1032, in entity_service_call
    raise result from None
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/entity.py", line 1628, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/light/__init__.py", line 659, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/hue/v1/light.py", line 613, in async_turn_off
    await self.bridge.async_request_call(self.light.set_state, **command)
  File "/usr/local/lib/python3.13/site-packages/homeassistant/components/hue/bridge.py", line 139, in async_request_call
    raise HomeAssistantError(
        f"Request failed due connection error: {err}"
    ) from err
homeassistant.exceptions.HomeAssistantError: Request failed due connection error: Cannot connect to host 10.10.20.16:80 ssl:default [Connect call failed ('10.10.20.16', 80)]