Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Room temperature (and likely other Rega values) not updating #717

Open
GrimmiMeloni opened this issue Sep 27, 2022 · 0 comments
Open

Room temperature (and likely other Rega values) not updating #717

GrimmiMeloni opened this issue Sep 27, 2022 · 0 comments

Comments

@GrimmiMeloni
Copy link

GrimmiMeloni commented Sep 27, 2022

Describe the bug
Room temperature values from thermostats are not showing current values, they stay at the initial value read on booting homebridge.

Version [e.g. 22]
v0.2.226

Which Homematic Device or Service the bug is about
HmIP-eTRV-B

To Reproduce
Steps to reproduce the behavior:

  1. Register an HmIP-eTRV-B thermostat
  2. Reboot homebridge
  3. Room temperature shown in Device view (or in Home App on iOS) is acurate and in sync with value shown in CCU.
  4. Make room temperature change (open window, start AC, ...)

Actual behaviour
Room temperature in Homebridge will not update, getting out of sync with real metrics shown in CCU.

Expected behavior
Room temperature in Homebridge should update, staying in sync with metrics shown in CCU.

Additional context
I have analysed this yesterday. The bug lies in the fact that before any Rega request is sent, the HomeMaticCacheManager is checked for a stored value. For the initial request after reboot this is OK, as there will be a cache miss. However, as the cache entries never expire, any consecutive (rega) request will simply be answered by the cache and no current values are fetched.

I observed this in context of the ThermostatServiceIP service's ACTUAL_TEMPERATURE datapoint. However given the generic approach of the rega request and the cache interaction, I assume many other values might also be affected. Maybe all values that are not pushed into Homebridge but rather just regularly queried. However, I did not dive deep enough into the code to be sure about this. Consider it a hunch.

@GrimmiMeloni GrimmiMeloni changed the title Room temperature values not updating Room temperature (and likely other Rega values) not updating Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant