KartoffelToby/better_thermostat

External Sensor updates are not processed in a timely manner

RubenKelevra opened this issue · 6 comments

Description

I've noticed that the sensor updates by my external sensor are not processed in a timely manner, but instead very delayed in some instances, some updates are also skipped completely. This leads to changes in temperature not being correctly processed and thus the TRV not correctly adjusted for long durations.

The external sensor sees:

18.6 °C before
18.7 °C at 19:23:03
19.4 °C at 19:30:58
20.0 °C at 19:41:24

  • Better Thermostat is processing the 18.7 °C at 19:41:24 - so with 18 minutes and 21 seconds delay.
  • Better Thermostat has never processed the 19.4 °C
  • Better Thermostat is processing the 20.0 °C at 19:41:25 - so just one second after the 18.7 °C is processed.

Screenshots

Screenshot_20241115_194506

Screenshot_20241115_194516

Screenshot_20241115_194525

And here is what Better Thermostat does as state changes:

Screenshot_20241115_194600

Screenshot_20241115_194542

Screenshot_20241115_194611

Steps to Reproduce

unknown

Expected behavior:

Better Thermostat should process the temperature as soon as there are updates and should process all incoming values.

Actual behavior:

Better Thermostat delays processing for 18 minutes and 21 seconds delay and skips values completely.

Versions

HA: 2024.11.1
BT: 1.6.1 with PR #1472 and #1473 applied - otherwise unusable.

Additional Information

folfy commented

Yeah something is rly off, will try to look into this, like this can and sure does cause a lot of trouble for some 😐