home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.43k stars 30.67k forks source link

Velux KLF200 integration error #98868

Closed FROCHE38 closed 1 year ago

FROCHE38 commented 1 year ago

The problem

The integration works well since now 2 years. But this morning after a HA reboot, I have a velux integration issue

What version of Home Assistant Core has the issue?

2023.8.3

What was the last working version of Home Assistant Core?

Home Assistant OS 10.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Velux

Link to integration documentation on our website

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

Diagnostics information

Logger: homeassistant.setup Source: components/velux/init.py:84 First occurred: 11:26:04 (1 occurrences) Last logged: 11:26:04

Error during setup of component velux Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/velux/init.py", line 39, in async_setup await hass.data[DATA_VELUX].async_start() File "/usr/src/homeassistant/homeassistant/components/velux/init.py", line 84, in async_start await self.pyvlx.load_scenes() File "/usr/local/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 82, in load_scenes await self.scenes.load() File "/usr/local/lib/python3.11/site-packages/pyvlx/scenes.py", line 51, in load await get_scene_list.do_api_call() File "/usr/local/lib/python3.11/site-packages/pyvlx/api/api_event.py", line 21, in do_api_call await self.send_frame() File "/usr/local/lib/python3.11/site-packages/pyvlx/api/api_event.py", line 33, in send_frame await self.pyvlx.send_frame(self.request_frame()) File "/usr/local/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 66, in sendframe await self.connect() File "/usr/local/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 43, in connect await self.connection.connect() File "/usr/local/lib/python3.11/site-packages/pyvlx/connection.py", line 86, in connect self.transport, = await self.loop.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1085, in create_connection raise exceptions[0] File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection sock = await self._connect_sock( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 628, in sock_connect return await fut ^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 668, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('192.168.50.210', 51200)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

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

Code owner commands Code owners of `velux` 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 velux` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


velux documentation velux source (message by IssueLinks)

FROCHE38 commented 1 year ago

@home-assistant close

marcschumacher commented 1 year ago

Hi @FROCHE38 , would you mind shortly telling why you closed the issue again? Actually I am having the same problem. I also tried to first switch off and on shortly before I start up HA, but I did not succeed to get the integration running. I had the same issue like you (not able to connect to the VELUX controller).

FROCHE38 commented 1 year ago

Hello @marcschumacher, the issue was solved by itself! I also have an issue with 1 of my POE IP cameras during 2 days. I don't known why all is back to normal. Probably something wrong with my PoE switch or cables because high t° in France!

If you lose the communication with the KLF200, please try this procedure (100% working except during the last 2 days):

FROCHE38 commented 1 year ago

The problem is back today :-( after update to 2023.8.4 and reboot. My procedure wasn't work any more even after KLF200 off during 1 night

FROCHE38 commented 1 year ago

To be close again because the problem come from my switch HA can't connect because first I can't also ping the KLF200 from my computer. After fixing the ping and reboot HA all was OK Sorry again