core icon indicating copy to clipboard operation
core copied to clipboard

Weatherflow Cloud - Error setting up

Open grovolis opened this issue 2 months ago • 3 comments

The problem

Since yesterday that Weatherflow cloud integration has become unavailable, I've tried reloading, removing it and adding it back in etc. See the error from the logs below:

Logger: homeassistant.config_entries
Source: config_entries.py:761
First occurred: 15 October 2025 at 18:08:39 (9 occurrences)
Last logged: 11:56:48

Error setting up entry Weatherflow REST for weatherflow_cloud
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/__init__.py", line 80, in async_setup_entry
    await asyncio.gather(
    ...<2 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 148, in async_setup
    await self.websocket_api.send_message(message)
  File "/usr/local/lib/python3.13/site-packages/weatherflow4py/ws.py", line 164, in send_message
    await self._send(message)
  File "/usr/local/lib/python3.13/site-packages/weatherflow4py/ws.py", line 276, in _send
    await self.websocket.send(message)
  File "/usr/local/lib/python3.13/site-packages/websockets/asyncio/connection.py", line 476, in send
    async with self.send_context():
               ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/websockets/asyncio/connection.py", line 957, in send_context
    raise self.protocol.close_exc from original_exc
websockets.exceptions.ConnectionClosedOK: sent 1000 (OK); then received 1000 (OK)

What version of Home Assistant Core has the issue?

core-2025.10.2

What was the last working version of Home Assistant Core?

core-2025.10.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

weatherflow_cloud

Link to integration documentation on our website

https://www.home-assistant.io/integrations/weatherflow_cloud/

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

grovolis avatar Oct 16 '25 09:10 grovolis

Hey there @jeeftor, mind taking a look at this issue as it has been labeled with an integration (weatherflow_cloud) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of weatherflow_cloud can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign weatherflow_cloud Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


weatherflow_cloud documentation weatherflow_cloud source (message by IssueLinks)

home-assistant[bot] avatar Oct 16 '25 09:10 home-assistant[bot]

Same issue here on 2025.12.0. Was working fine until I reloaded the integration just now. I’m getting the same error as listed above now. Can’t seem to bring it back online.

Twenty5Schmeckels avatar Dec 04 '25 16:12 Twenty5Schmeckels

Suddenly have similar issue but it's a timeout.

TimeoutError: timed out during opening handshake
Error setting up entry Weatherflow REST for weatherflow_cloud

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/websockets/asyncio/client.py", line 541, in __await_impl__
    self.connection = await self.create_connection()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/websockets/asyncio/client.py", line 467, in create_connection
    _, connection = await loop.create_connection(factory, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1146, in create_connection
    sock = await self._connect_sock(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
        exceptions, addrinfo, laddr_infos)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1045, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/websockets/asyncio/client.py", line 539, in __await_impl__
    async with asyncio_timeout(self.open_timeout):
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/__init__.py", line 80, in async_setup_entry
    await asyncio.gather(
    ...<2 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 134, in async_setup
    await self.websocket_api.connect(client_context())
  File "/usr/local/lib/python3.13/site-packages/weatherflow4py/ws.py", line 217, in connect
    await websockets.connect(self.uri, ssl=ssl_context)
  File "/usr/local/lib/python3.13/site-packages/websockets/asyncio/client.py", line 578, in __await_impl__
    raise TimeoutError("timed out during opening handshake") from exc
TimeoutError: timed out during opening handshake

Looks like it's an issue connecting over websockets

https://github.com/jeeftor/weatherflow4py/blob/9c85fc153c2dafb9080cbf1b24d35d198b23be1d/weatherflow4py/ws.py#L217C25-L217C76

HarlemSquirrel avatar Dec 10 '25 02:12 HarlemSquirrel