Giter VIP home page Giter VIP logo

Comments (10)

palfrey avatar palfrey commented on July 29, 2024

To clarify some details on this, this is with Home Assistant 2023.8.4. I'm pretty sure I didn't used to see this, so guessing it's an upgrade change at some point, but not sure exactly when as I was doing auto-upgrades for a while. Generally, this only happens when I'm running a scene (i.e. a bunch of velux changes in one go), although I was able to reproduce this earlier when just clicking a whole set of windows at once, so guessing it's probably to do with the gap between commands?

from pyvlx.

00-10-01-11 avatar 00-10-01-11 commented on July 29, 2024

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 HA version since but they all have the same behavior.

from pyvlx.

palfrey avatar palfrey commented on July 29, 2024

I have a very hacky workaround with time.sleep filed in Core (home-assistant/core#100523) and we'll see where that gets to...

from pyvlx.

OXERY avatar OXERY commented on July 29, 2024

I mainly see this issue when activating a scene that closes all my velux window covers. It seems that the library or klf200 is overwhelmed by the requests?
When playing around with only one window cover, it works as expected. When activating the scene mentioned before, not all window covers are closing/opening - and the ones not moving are always the same.
I was using an automation for opening and closing, which isn't working currently. Maybe I have to work around that like @palfrey and change the automation to issue only one command at a time.

from pyvlx.

rjlee avatar rjlee commented on July 29, 2024

See also pawlizio/my_velux#27 and home-assistant/core#98168 (comment)

from pyvlx.

spitfire avatar spitfire commented on July 29, 2024

I mainly see this issue when activating a scene that closes all my velux window covers. It seems that the library or klf200 is overwhelmed by the requests? When playing around with only one window cover, it works as expected. When activating the scene mentioned before, not all window covers are closing/opening - and the ones not moving are always the same. I was using an automation for opening and closing, which isn't working currently. Maybe I have to work around that like @palfrey and change the automation to issue only one command at a time.

for me they are always different. If I run my close or open scene again in HA they eventually get to the right state.

from pyvlx.

palfrey avatar palfrey commented on July 29, 2024

@Julius2342 Any thoughts on a PR to add the option for minimum delays between calls to KLF 200 devices? Like home-assistant/core#100523, but folded into the library and redone to only add delays on subsequent rapid calls, not all of them.

from pyvlx.

pawlizio avatar pawlizio commented on July 29, 2024

I implemented a semaphore to avoid parallel commands as the HA solution seems not work... Here the corresponding commit:

pawlizio@7032496

from pyvlx.

Julius2342 avatar Julius2342 commented on July 29, 2024

Hmm, probably a semaphore. I would have done it quite highlevel, e.g. in ApiEvent/do_api_call . What do you think?

from pyvlx.

palfrey avatar palfrey commented on July 29, 2024

Hmm, probably a semaphore. I would have done it quite highlevel, e.g. in ApiEvent/do_api_call . What do you think?

That seems sensible to me. #353 does this, and also solves the "why doesn't this first call respond?" issue I was seeing before in HA by making sure we're connected before entering the Semaphore section.

from pyvlx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.