Coder Social home page Coder Social logo

Comments (3)

travisghansen avatar travisghansen commented on August 20, 2024 1

We’re working on a massive rewrite currently. I’m guessing one of the biggest reasons that happened is every entity was independently hitting the opensprinkler api. The code is now updated to get the status of everything in a single api call across all entities. For me this change cut the api requests down from probably close to 100+ every 5 seconds to 1 every 5 seconds.

The new branch isn’t quite ready yet but it’s a massive improvement in several ways. We hope to get it included into hass core as well.

from hass-opensprinkler.

maorcc avatar maorcc commented on August 20, 2024

I believe that many people are seeing the following Warnings in the Core logs.

2020-05-27 16:48:53 WARNING (MainThread) [homeassistant.components.switch] Updating hass_opensprinkler switch took longer than the scheduled update interval 0:00:05
2020-05-27 16:48:53 WARNING (MainThread) [homeassistant.components.binary_sensor] Updating hass_opensprinkler binary_sensor took longer than the scheduled update interval 0:00:05
2020-05-27 16:48:53 WARNING (MainThread) [homeassistant.components.sensor] Updating hass_opensprinkler sensor took longer than the scheduled update interval 0:00:05

Would increasing the update time resolve this?

from hass-opensprinkler.

vinteo avatar vinteo commented on August 20, 2024

Yea I think with the next version this is probably not needed anymore tbh

from hass-opensprinkler.

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.