-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Velux integration with KLF 200 error when activating scenes #98168
Comments
Hey there @Julius2342, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) velux documentation |
I can confirm this issue. In my instance does this problem also occur. What version of Home Assistant Core has the issue?2023.8.3 What was the last working version of Home Assistant Core?not sure What type of installation are you running?Home Assistant OS Integration causing the issueVelux integration Link to integration documentation on our websitehttps://www.home-assistant.io/integrations/velux/ Anything in the logs that might be useful for us?
Additional informationAction: activating a scene opening/closing 5 window covers. In addition the covers move directly if the command is given manual in the HA UI instead through a configured scene. |
I think there is an issue with the parallelism somewhere. I do not have the same issue per say, because I do not use scenes, only automation to pilot my somfy shutters. |
I do have the same issue, since 2023.8. Below you will find what I found in the logs! File "/usr/local/lib/python3.11/site-packages/pyvlx/opening_device.py", line 73, in close I’m using a combination of scenes and automations. In my case 2 shutters are opening, and two keep closed! |
Hi, I still have similar issues with Home Assistant 2023.8.4 (Core), updated to the latest versions from the UI, when opening several covers at the same time. However I do not know how to check which version of Velux component I have. Also reported in: pawlizio/my_velux#27 (comment) and pawlizio/my_velux#28 (comment) I get following error several times:
Thank you in advance for your help and kind regards. |
Same with me: i tried to include a "wait" or "delay" in scene = seems not to be possible. at least i think hundreds of scenes of all shutters (i have about 30) open/close and combine them in automations with delays for each step might be a next try... i would love if anyone has an idea which change failed this great feature (i use somfy io via klf200 included in home-assistant since more than a year very successfull and happy). Everything still works fine with manual control - but i miss the scene very much. who is the scene master at home assistant and could identify the trouble between shooting commands >2 device on velux and fail ?! |
For covers/shutters, you have to call the services |
gijoe88 - you made my day! |
I have the same issue since 2023.8 and also with 2023.9.1. I’m on the last est version of the Velux Firmware! |
I had the same issue in Home Assistant 2023.8.1 and I had to revert to 2023.7.3 which is the last working version. I tried every new available HA version since but they all have the same (bad) behavior. |
I also reverted back to 2023.7.3 and my scenes work again. |
Looking at the history of ./helpers/service.py, it appears the file has been modified on the 2023.8.1 release in order to: Speed up single entity/response service calls #96729, notably around the line 870... Maybe a first clue... |
Hello everyone, Since the migration to HA 2023.10, I have similar issues. When closing covers one by one, things are fine, yet scenes and services involving covers either fail or only handle two covers at a time. I see a temporary widget appearing mentioning an error I do not have time to read (disappears too quickly). Can you please advise? Thanks for your support. NB: After some additional tests, it appears that if I create scripts and call covers one by one, things work fine. Anything I have tried that manages several covers seams to be buggy. |
Same here |
Same here. Using 5 covers with KLF200, I've set up 2 scenes - one to open all, another one to close them. Every time I ran any of the scenes some covers respond to the commands, and some don't. Sometimes it takes 2, sometimes 3 tries to get it right. |
Same here |
May I ask you to check the following: within the scene - comment out all entities execpt one, then except 2. Nothing was changed in the unterlaying pyvlx library. My suspicion would be that something within hass was changed recently which triggers the activation in parallel (and no longer subsequential). It could be that the KLF200 is then overwhelmed. If this is the case, we could try to mitigate this by adding some sort of lock? |
I've switched to https://github.com/pawlizio/my_velux integration, it is working fine, has more features (like adjusting speed of covers) and is configured via UI. |
That component contains an interesting commit: pawlizio/my_velux@871129d
@pawlizio : Do you have an idea why this works on your component but not in the general one? |
Just installed https://github.com/pawlizio/my_velux, works perfectly. |
My custom uses my pyvlx fork. Please check latest commits to see how I solved it. Have just limited possibilities now, can give more detailed feedback later. |
[104 commits ahead], [13 commits behind] Julius2342:master. Do you think we have the chance to bring both branches together? |
Hello, My KLF200 has got unreliable. I'm using the velux integration in homeassistant. I made sure it gets rebooted when an HA restart is initiated. I do own 4 velux cover and 3 velux blinds. I get cases where the klf200 seems not manageable at all from homeassistant. In this case, a power cycle on the klf200 solves the situation. I just got a strange case where I could control all covers and all blinds except one cover and one blind. I never found how to enable logging on this part of HA.
After many restart I finally got everything in control... Until when ? I thought I might give a try to the my_velux and see if I get a reliable setup. |
An update last year change the behaviour in case were scenes are used to control the blinds or Windows. |
I think this topic is solved, this issue was caused by a command burst which was not acknowleged by KF200. There was a change in pyvlx PR #353 to add a semaphore to the API interface which ensures that new commands are only send to KLF200 once the last command was acknowledged. It is part of latest version pyvlx 0.2.21 and is implemented to HA since version 2024.1. |
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. |
The problem
I have been using Velux integration with my KLF 200 without any problems for the last couple of months. I have defined scenes for the 4 Velux covers on my south roof, one for the cover open position, one for the close position, and several scenes for different opening positions of the windows, which are used in automations.
A couple of days ago I updated to the latest version of Home Assistant Core. I am unfortunately not sure which version I was using before but I must have skipped a few. I might have been at 2023.5 or 2023.6 (is there any way to check my previously installed version?) .
Shortly after this upgrade, I discovered that my scenes were not working anymore. Most of the time, only one or two of the covers or windows are reacting, and only when activating the scene a second or third time the remaining covers or windows adapt their position. There is an error message in the core log related to this problem.
What version of Home Assistant Core has the issue?
core-2023.8.1
What was the last working version of Home Assistant Core?
2023.7.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Velux integration
Link to integration documentation on our website
https://www.home-assistant.io/integrations/velux/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Action: activating a scene opening/closing 4 Velux shades/windows
Expected behaviour: the 4 Velux shades/windows open/close at the same time
Observed behaviour: only 1 or 2 Velux shades/windows open/close. A subsequent activation of the same scene opens/closes one additional shades/window. The remaining shade/window is then opened/closed with a third activation of the scene.
The text was updated successfully, but these errors were encountered: