joggs / home_assistant_ebeco

Integration for Ebeco thermostats
30 stars 15 forks source link

Low refresh rate #38

Open danilsson opened 10 months ago

danilsson commented 10 months ago

It seems like my data in HA only refreshes once every 10 minutes, both current temperature and relay on/off, instead of the once per minute that the code seems to intend. For example like this:

image

I have tried running these changes on my instance and it seems to fix the issue:

in const.py:

SCAN_INTERVAL = timedelta(seconds=15)

In sensor.py and climate.py:

from .const import SCAN_INTERVAL

I'm quite new to the HA ecosystem, but from what I understand the core system will try to import SCAN_INTERVAL from each of the platforms.

Am I the only one having this issue or is it a general thing?

danilsson commented 10 months ago

I spoke too soon, my "fix" didn't actually fix it. It does refresh quickly when I change the target temperature, updating the relay state within 15 seconds, but otherwise it still only updates every 10 minutes exactly. Not sure what's going on

danilsson commented 10 months ago

It seems to me that the actual API endpoint only updates its values every 10 minutes, if so that'd certainly explain it :D

danilsson commented 10 months ago

Or potentially the actual thermostats only report their values every 10 minutes, because my two devices have different refresh times (but each of them every 10 minutes).