Code Monkey home page Code Monkey logo

Comments (10)

rigorm avatar rigorm commented on September 3, 2024 2

try this line :

update_interval=timedelta(seconds=30),

from iotawatt_ha.

polyfaces avatar polyfaces commented on September 3, 2024 1

It is easy to do so. Just fork this respository and change the value in the "const.py" file. I have already done this.

polyfaces@4d65ef9

from iotawatt_ha.

gtdiehl avatar gtdiehl commented on September 3, 2024

@mmiller7 I believe the default polling period is 30seconds. Do you want a way to increase it to poll say every 45-60seconds?

from iotawatt_ha.

mmiller7 avatar mmiller7 commented on September 3, 2024

I was thinking more like 5-10 seconds (so 6x or 12x per minute) - I'd like to have HomeAssistant monitor some things that are much shorter duration or trigger more events more quickly after they start happening.

from iotawatt_ha.

stepir avatar stepir commented on September 3, 2024

hi @polyfaces the current version of https://github.com/gtdiehl/iotawatt_ha/blob/main/custom_components/iotawatt/const.py does not include such constant anymore - I tried your suggested solution and added it myself but the integration seems to ignore it?

from iotawatt_ha.

mmiller7 avatar mmiller7 commented on September 3, 2024

It is easy to do so. Just fork this respository and change the value in the "const.py" file. I have already done this.

polyfaces@4d65ef9

Just tried updating and discovered this no longer seems to exist.

How do we adjust the refresh rate in the new version?

from iotawatt_ha.

tasranson avatar tasranson commented on September 3, 2024

I would love to be able to do this too. Ideally only for one or two specific measurements (entities in HA) coming off the iotawatt that are more time critical, but would be happy to suck up the pain if it had to apply to all measurements (entities in HA). I can where 30 seconds is set in the code in GitHub, but I dont really want to revert from using the core version of the integration to a custom one unless that is the only way to do this.

from iotawatt_ha.

zunnnn avatar zunnnn commented on September 3, 2024

same problem, i would like to set custom refresh rate because 30 second is a lot of time when i have to turn off some items. i suffer disconnection from the grid because this integration is too slow to trigger events

from iotawatt_ha.

stepir avatar stepir commented on September 3, 2024

Thank you!!

from iotawatt_ha.

mmiller7 avatar mmiller7 commented on September 3, 2024

Anyone getting this error in the log with a higher refresh rate?

2022-03-19 11:40:50 WARNING (MainThread) [iotawattpy.iotawatt] Nothing to query, update() called too soon, must wait {timespan}

from iotawatt_ha.

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.