pawlizio / my_velux

Custom component of velux integration for Home Assistant
32 stars 9 forks source link

KLF 200 Unknown command #51

Closed AN3Orik closed 3 months ago

AN3Orik commented 4 months ago

Hi there. When i trying to connect to KLF 200 its failing with "Failed to connect" message at integration configuration window. There some logs for this. Ty in advance. PS: Tried to reboot/reset HASS/KLF200 multiple times.

2024-07-09 11:39:09.499 DEBUG (MainThread) [pyvlx] Heartbeat __init__
2024-07-09 11:39:09.500 DEBUG (MainThread) [pyvlx] Loadig pyvlx v0.2.23
2024-07-09 11:39:09.500 DEBUG (MainThread) [pyvlx] Connecting to KLF 200
2024-07-09 11:39:09.572 DEBUG (MainThread) [pyvlx] Connecting to KLF 200 was closed
2024-07-09 11:39:13.854 DEBUG (MainThread) [pyvlx] Amount of connections since last HA start: 1
2024-07-09 11:39:13.857 DEBUG (MainThread) [pyvlx] SEND: <FramePasswordEnterRequest password="rb****"/>
2024-07-09 11:39:13.866 DEBUG (MainThread) [pyvlx] REC: <FramePasswordEnterConfirmation status="PasswordEnterConfirmationStatus.SUCCESSFUL"/>
2024-07-09 11:39:13.869 DEBUG (MainThread) [pyvlx] SEND: <FrameGetVersionRequest/>
2024-07-09 11:39:13.882 DEBUG (MainThread) [pyvlx] REC: <FrameGetVersionConfirmation software_version="0.2.0.0.71.0" hardware_version="6" product="KLF 200"/>
2024-07-09 11:39:13.885 DEBUG (MainThread) [pyvlx] SEND: <FrameGetProtocolVersionRequest/>
2024-07-09 11:39:14.075 DEBUG (MainThread) [pyvlx] REC: <FrameGetProtocolVersionConfirmation version="3.14"/>
2024-07-09 11:39:14.079 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-07-09 11:39:14.079 DEBUG (MainThread) [pyvlx] SEND: <FrameHouseStatusMonitorDisableRequest/>
2024-07-09 11:39:14.285 DEBUG (MainThread) [pyvlx] REC: <FrameErrorNotification error_type="ErrorType.UnknownCommand"/>
pawlizio commented 4 months ago

Which version you are using?

AN3Orik commented 4 months ago

Home Assistant 2024.7.1 MyVelux version 2.9.12

pawlizio commented 4 months ago

Can you please try the beta 2.9.13

AN3Orik commented 4 months ago

Seems like same. No windows connected currently to KLF (not configured as interface/repeater) - thats can be issue?

2024-07-09 12:08:17.700 DEBUG (MainThread) [pyvlx] Heartbeat __init__
2024-07-09 12:08:17.701 DEBUG (MainThread) [pyvlx] Loadig pyvlx v0.1.103
2024-07-09 12:08:17.701 DEBUG (MainThread) [pyvlx] Connecting to KLF 200
2024-07-09 12:08:22.447 DEBUG (MainThread) [pyvlx] Socket connection to KLF 200 opened
2024-07-09 12:08:22.448 DEBUG (MainThread) [pyvlx] Amount of connections since last HA start: 1
2024-07-09 12:08:22.448 DEBUG (MainThread) [pyvlx] SEND: <FramePasswordEnterRequest password="rb****"/>
2024-07-09 12:08:22.454 DEBUG (MainThread) [pyvlx] REC: <FramePasswordEnterConfirmation status="PasswordEnterConfirmationStatus.SUCCESSFUL"/>
2024-07-09 12:08:22.454 DEBUG (MainThread) [pyvlx] SEND: <FrameGetVersionRequest/>
2024-07-09 12:08:22.458 DEBUG (MainThread) [pyvlx] REC: <FrameGetVersionConfirmation software_version="0.2.0.0.71.0" hardware_version="6" product="KLF 200"/>
2024-07-09 12:08:22.460 DEBUG (MainThread) [pyvlx] SEND: <FrameGetProtocolVersionRequest/>
2024-07-09 12:08:22.668 DEBUG (MainThread) [pyvlx] REC: <FrameGetProtocolVersionConfirmation version="3.14"/>
2024-07-09 12:08:22.669 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-07-09 12:08:22.669 DEBUG (MainThread) [pyvlx] SEND: <FrameHouseStatusMonitorDisableRequest/>
2024-07-09 12:08:22.878 DEBUG (MainThread) [pyvlx] REC: <FrameErrorNotification error_type="ErrorType.UnknownCommand"/>
2024-07-09 12:08:32.673 DEBUG (MainThread) [custom_components.velux] Cannot connect: <PyVLXException description="Unable disable house status monitor." />
pawlizio commented 4 months ago

This log for the House status monitor may happen if it simply was not on before, so you can ignore it.

AN3Orik commented 4 months ago

But this log starting with "Cannot connect" and no any other logs from velux integration after =\

pawlizio commented 4 months ago

Ok, but the one you sent in your last comment has established a connection.

pawlizio commented 4 months ago

Probably House Status Monitor does not work if no device is configured in KLF200.

AN3Orik commented 4 months ago

Ok, ty. Ill check after installing windows.

AN3Orik commented 3 months ago

Sorry for late answer. After adding and configuring all windows to gateway - integration work's like a charm.