core icon indicating copy to clipboard operation
core copied to clipboard

Velux Integration

Open tof92130 opened this issue 6 months ago • 8 comments

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 check_connected 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

tof92130 avatar Feb 09 '24 17:02 tof92130

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)

home-assistant[bot] avatar Feb 09 '24 17:02 home-assistant[bot]

same issue for me...

jjmirko avatar Feb 11 '24 10:02 jjmirko

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 check_connected 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

GitMcDoush avatar Feb 13 '24 10:02 GitMcDoush

I can confirm as well

Kurisutian avatar Feb 13 '24 15:02 Kurisutian

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!

mmoelli avatar Feb 14 '24 10:02 mmoelli

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!

GitMcDoush avatar Feb 14 '24 13:02 GitMcDoush

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.

KingofCurrywurst avatar Feb 15 '24 19:02 KingofCurrywurst

Same here...

ralpho1337 avatar Feb 17 '24 08:02 ralpho1337

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

evilmumi avatar Feb 20 '24 21:02 evilmumi

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: @.***>

jjmirko avatar Feb 20 '24 22:02 jjmirko

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

evilmumi avatar Feb 21 '24 09:02 evilmumi

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.

dan-s-github avatar Feb 24 '24 19:02 dan-s-github

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

pergolafabio avatar Feb 24 '24 21:02 pergolafabio

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

jjmirko avatar Feb 25 '24 12:02 jjmirko

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!

GitMcDoush avatar Feb 26 '24 08:02 GitMcDoush

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 ...

pergolafabio avatar Feb 26 '24 08:02 pergolafabio

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

Thank you guys!!!

GitMcDoush avatar Feb 26 '24 09:02 GitMcDoush

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

evilmumi avatar Feb 26 '24 09:02 evilmumi

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

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

pergolafabio avatar Feb 26 '24 09:02 pergolafabio

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?

jjmirko avatar Feb 26 '24 10:02 jjmirko

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

pergolafabio avatar Feb 26 '24 10:02 pergolafabio

very nice! Now I try! thank you.

jjmirko avatar Feb 26 '24 10:02 jjmirko