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.94k stars 30.99k forks source link

Velux Integration #110125

Closed tof92130 closed 5 months ago

tof92130 commented 9 months ago

The problem

since 2024.02 update, Velux integration is KO

What version of Home Assistant Core has the issue?

2024.02.00

What was the last working version of Home Assistant Core?

2024.01.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Velux

Link to integration documentation on our website

No response

Diagnostics information

Logger: homeassistant.setup Source: setup.py:333 First occurred: 16:45:17 (1 occurrences) Last logged: 16:45:17

Error during setup of component velux Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 333, 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.12/site-packages/pyvlx/pyvlx.py", line 106, in load_scenes await self.scenes.load() File "/usr/local/lib/python3.12/site-packages/pyvlx/scenes.py", line 56, in load await get_scene_list.do_api_call() File "/usr/local/lib/python3.12/site-packages/pyvlx/api/api_event.py", line 29, in do_api_call await self.pyvlx.check_connected() File "/usr/local/lib/python3.12/site-packages/pyvlx/pyvlx.py", line 83, in checkconnected await self.connect() File "/usr/local/lib/python3.12/site-packages/pyvlx/pyvlx.py", line 58, in connect await self.connection.connect() File "/usr/local/lib/python3.12/site-packages/pyvlx/connection.py", line 103, in connect self.transport, = await self.loop.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1146, in create_connection transport, protocol = await self._create_connection_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1179, in _create_connection_transport await waiter ConnectionAbortedError: SSL handshake is taking longer than 60.0 seconds: aborting the connection

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 9 months 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. - `@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)


velux documentation velux source (message by IssueLinks)

jjmirko commented 9 months ago

same issue for me...

GitMcDoush commented 9 months ago

Same here:

Logger: homeassistant.setup Source: setup.py:333 First occurred: 10:28:41 (1 occurrences) Last logged: 10:28:41

Error during setup of component velux Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 333, 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.12/site-packages/pyvlx/pyvlx.py", line 106, in load_scenes await self.scenes.load() File "/usr/local/lib/python3.12/site-packages/pyvlx/scenes.py", line 56, in load await get_scene_list.do_api_call() File "/usr/local/lib/python3.12/site-packages/pyvlx/api/api_event.py", line 29, in do_api_call await self.pyvlx.check_connected() File "/usr/local/lib/python3.12/site-packages/pyvlx/pyvlx.py", line 83, in checkconnected await self.connect() File "/usr/local/lib/python3.12/site-packages/pyvlx/pyvlx.py", line 58, in connect await self.connection.connect() File "/usr/local/lib/python3.12/site-packages/pyvlx/connection.py", line 103, in connect self.transport, = await self.loop.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1146, in create_connection transport, protocol = await self._create_connection_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1179, in _create_connection_transport await waiter ConnectionAbortedError: SSL handshake is taking longer than 60.0 seconds: aborting the connection

Kurisutian commented 9 months ago

I can confirm as well

mmoelli commented 9 months ago

Had the same issue. Rollback to 2024.1.6 kinda solved it.. but can't update now until velux integration is fixed.

Thanks for your hard work!

GitMcDoush commented 9 months ago

Had the same issue. Rollback to 2024.1.6 kinda solved it.. but can't update now until velux integration is fixed.

Thanks for your hard work!

Thanks for the hint, downgrade did the trick!

KingofCurrywurst commented 9 months ago

Same problem, after a power-down of the Home Assistant and the Velux KLF200 interface it runs for a half day. But the communication is very slow-> the feedback(positions) comes between 15..40 sec. and sometime it stuck complete. Problem for me is that I'm will not rollback because i think I become other problems with other integrations.

ralpho1337 commented 9 months ago

Same here...

evilmumi commented 9 months ago

What integration to use? official or from HACS? both run into problems!?

jjmirko commented 9 months ago

I'm using the official integration... I didn’t know about the existence of integration from hacs.


Da: evilmumi @.***> Inviato: Martedì 20 Febbraio 2024 22:05 A: home-assistant/core Cc: Mirko Borsari; Manual Oggetto: Re: [home-assistant/core] Velux Integration (Issue #110125)

What integration to use? official or from HACS? both run into problems!?

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/110125#issuecomment-1955096354, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BENB7FRUW2S4JMI6K5B5NMTYUUF2JAVCNFSM6AAAAABDBZPCVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVGA4TMMZVGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

evilmumi commented 9 months ago

https://github.com/pawlizio/my_velux/ is the one

dan-s-github commented 9 months ago

seems there is an issue with the velux.reboot_gateway service as manually rebooting the gateway and restart HA will fix the issue. There is a new version of pyvlx 0.2.22 available that might fix the issue no clue how to get the dependency updated.

pergolafabio commented 9 months ago

I use hacs version, I don't notice the issue

jjmirko commented 9 months ago

I tried again upgrade to 2024.2.3 and I confirm official integration stop to work. So I disabled official and installed integration from HACS. Now all works fine Thank you

GitMcDoush commented 9 months ago

I tried again upgrade to 2024.2.3 and I confirm official integration stop to work. So I disabled official and installed integration from HACS. Now all works fine Thank you

Could you please provide the repository for HACS. Because I can´t find the Velux integration in standard repos

Thank you!

pergolafabio commented 9 months ago

I use this one: https://github.com/pawlizio/my_velux

there is btw a huge PR coming in official integration, lots of the stuff in the custom hacs version is coming finally to official one, like rain sensor ...

GitMcDoush commented 9 months ago

Just tested it with the HACS integration, works like a charme!

Thank you guys!!!

evilmumi commented 9 months ago

I use this one: https://github.com/pawlizio/my_velux

there is btw a huge PR coming in official integration, lots of the stuff in the custom hacs version is coming finally to official one, like rain sensor ...

Would be great to have it official - even the problem with double entities

pergolafabio commented 9 months ago

seems the new PR is merged, so now new stuff can be added

https://github.com/home-assistant/core/pull/89155

jjmirko commented 9 months ago

there is btw a huge PR coming in official integration, lots of the stuff in the custom hacs version is coming finally to official one, like rain sensor ...

Rain sensor? Is it possible (or will it be possible) to use the rain sensor in automation?

pergolafabio commented 9 months ago

Yes, already using it for several years on the velux integration, they detect if the the velux can be openened to 100% or 93%

for insance, now its raining here, the lim max = 93% > means its raining, cause the windows can only be opened 7% (ventilation mode) , based on that attribute you can start an automation

image

jjmirko commented 9 months ago

very nice! Now I try! thank you.

issue-triage-workflows[bot] commented 6 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.