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
74.04k stars 31.07k forks source link

Velux integration setup failed #124903

Open vltnm opened 3 months ago

vltnm commented 3 months ago

The problem

Setup velux integration installation fails.

Connection to KLF successfull Connected to: <DtoVersion softwareversion="0.2.0.0.71.0" hardwareversion="6" productgroup="14" producttype="3"/> pyvlx shows error: Cannot connect: <PyVLXException description="Unable disable house status monitor."

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

No response

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

No response

Example YAML snippet

Setup via GUI

Anything in the logs that might be useful for us?

2024-08-30 08:28:01.587 DEBUG (MainThread) [pyvlx] Heartbeat __init__
2024-08-30 08:28:01.587 DEBUG (MainThread) [pyvlx] Loadig pyvlx v0.2.21
2024-08-30 08:28:01.614 DEBUG (MainThread) [pyvlx] Connecting to KLF 200
2024-08-30 08:28:05.947 DEBUG (MainThread) [pyvlx] Amount of connections since last HA start: 1
2024-08-30 08:28:05.948 DEBUG (MainThread) [pyvlx] SEND: <FramePasswordEnterRequest password="Tr****"/>
2024-08-30 08:28:05.952 DEBUG (MainThread) [pyvlx] REC: <FramePasswordEnterConfirmation status="PasswordEnterConfirmationStatus.SUCCESSFUL"/>
2024-08-30 08:28:05.954 DEBUG (MainThread) [pyvlx] SEND: <FrameGetVersionRequest/>
2024-08-30 08:28:05.958 DEBUG (MainThread) [pyvlx] REC: <FrameGetVersionConfirmation software_version="0.2.0.0.71.0" hardware_version="6" product="KLF 200"/>
2024-08-30 08:28:05.960 DEBUG (MainThread) [pyvlx] SEND: <FrameGetProtocolVersionRequest/>
2024-08-30 08:28:06.168 DEBUG (MainThread) [pyvlx] REC: <FrameGetProtocolVersionConfirmation version="3.14"/>
2024-08-30 08:28:06.170 DEBUG (MainThread) [pyvlx] Connected to: <DtoVersion softwareversion="0.2.0.0.71.0" hardwareversion="6" productgroup="14" producttype="3"/>,  <DtoProtocolVersion majorversion="3" minorversion="14"/>
2024-08-30 08:28:06.170 DEBUG (MainThread) [pyvlx] SEND: <FrameHouseStatusMonitorDisableRequest/>
2024-08-30 08:28:06.378 DEBUG (MainThread) [pyvlx] REC: <FrameErrorNotification error_type="ErrorType.UnknownCommand"/>
2024-08-30 08:28:16.172 DEBUG (MainThread) [homeassistant.components.velux] Cannot connect: <PyVLXException description="Unable disable house status monitor." />

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @julius2342, @deermaximum, 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)

vltnm commented 2 months ago

You have to connect to the wlan access point with another device. Then you are able to connect the integration. It’s a little bit strange, but this is how I got the integration working. After this and the reboot automation everything works as expected.

sven-s commented 4 days ago

I have also problems connecting the velux integration to home asssitant. I tried also to log in via the VELUX_KLF wifi in parallel but got no luck.

The only thing i got is: failed to connect

Logger: pyvlx Source: runner.py:189 First occurred: 11:56:06 (5 occurrences) Last logged: 12:13:45

Failed to authenticate with password "QY****"

The velux hub is connected to the lan with a fixed IP address and i can ping the hub. The strange thing is, that i used openhab in the past, and that did work with the same ip and password (the one for the wifi).

Any hints or advice how to get the integration to work?