GithubHelp home page GithubHelp logo

Comments (8)

JoDehli avatar JoDehli commented on August 15, 2024 1

@johny-mnemonic I released a new version where you can define the delay for the scene generation.:
image

For the big log. The Loxone sends every device and all information once a client (here pyloxone or the android/ios app) connects. You can disable the log but it will sent it anyways.

from pyloxone.

JoDehli avatar JoDehli commented on August 15, 2024

Can you edit the source code for testing?

If so can you increase the delay of the scene generation in the scene.py:

This Line hier

Increase it from 0.5 to maybe 2.0 or 3.0 or even more!

from pyloxone.

JoDehli avatar JoDehli commented on August 15, 2024

I could reproduce it on a very slow raspberry pi. I increased the value to 10 and I could restart without problems. Maybe this fixes this issue. I try to put this value in the config menu so that each user can edit this value if similar problems occur.

from pyloxone.

ThePhantom79 avatar ThePhantom79 commented on August 15, 2024

I tested it, and it works for me (with a value of 3).
I dont think, thats a problem with the power of the HA-Installation - my installation is on VM in an powerfull ESXi-Server. Maybe the Miniserver itself is to slow.

from pyloxone.

JoDehli avatar JoDehli commented on August 15, 2024

Hmmm I do not had any problems on my Dev machine and it is an old pc :-)

It is hard to debug for me. I try to make the value configurable until I have a better solution.

from pyloxone.

ThePhantom79 avatar ThePhantom79 commented on August 15, 2024

Fo me its fine - itr worked and you can close the issue.
Thanks!

from pyloxone.

johny-mnemonic avatar johny-mnemonic commented on August 15, 2024

@JoDehli
I seem to have the same issue and I would bet it is not your plugin, but my slow Miniserver.
I have pretty big program, that would deserve some clean-up ;-), and my Miniserver is pretty slow thanks to that. Raising the time for scene generation to 5.0 fixed it for me.
I fist enabled debug, but the only interesting thing I found was, that your plugin is downloading all the event logs from Loxone, which in my case is pretty big part of the debug log output and feels superfluous...

Regardless, it seems like making this timeout configurable or trying the scene generation again after some time, when it fails during startup, would be great.

from pyloxone.

johny-mnemonic avatar johny-mnemonic commented on August 15, 2024

Thanks a lot @JoDehli !
I didn't know that it sends everything all the time. That at least partly explains, why the app start is so slow I guess...

from pyloxone.

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.