Hi, Hoping someone might be able to help as i’ve exhausted all ideas, For a long time i could connect to the Velux KLF200 with no problems and operate my windows and blinds, on occasion id have to reboot the device normally after multiple Home assistant reboots (I understand this issue has now been resolved with a work around automation that reboots the klf200 on Home assistant reboot).
However now no matter what i try i cant seem to get it to connect i always get an error on home assistant start up, unfortunately because i’ve left this in fault for quite some time now i don’t have the option to roll back home assistant versions. Ive tried completely resetting the KLF200 and re adding all my windows but unfortunately this made no difference.
multiple klf restarts, pulling the plug leaving for a while and plugging back in etc… no success.
my yaml is as follows…
velux:
host: "192.168.50.69"
password: "wifipassword"
the error i recive is
Logger: homeassistant.setup
Source: components/velux/__init__.py:78
First occurred: 8:36:26 PM (1 occurrences)
Last logged: 8:36:26 PM
Error during setup of component velux
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 249, in _async_setup_component
result = await task
File "/usr/src/homeassistant/homeassistant/components/velux/__init__.py", line 33, in async_setup
await hass.data[DATA_VELUX].async_start()
File "/usr/src/homeassistant/homeassistant/components/velux/__init__.py", line 78, in async_start
await self.pyvlx.load_scenes()
File "/usr/local/lib/python3.9/site-packages/pyvlx/pyvlx.py", line 80, in load_scenes
await self.scenes.load()
File "/usr/local/lib/python3.9/site-packages/pyvlx/scenes.py", line 51, in load
await get_scene_list.do_api_call()
File "/usr/local/lib/python3.9/site-packages/pyvlx/api/api_event.py", line 21, in do_api_call
await self.send_frame()
File "/usr/local/lib/python3.9/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.9/site-packages/pyvlx/pyvlx.py", line 66, in send_frame
await self.connect()
File "/usr/local/lib/python3.9/site-packages/pyvlx/pyvlx.py", line 43, in connect
await self.connection.connect()
File "/usr/local/lib/python3.9/site-packages/pyvlx/connection.py", line 87, in connect
self.transport, _ = await self.loop.create_connection(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1056, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
return await fut
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.50.69', 51200)