versatile_thermostat: Too many calls to calculate_regulated_temperature

With currently 10 VTherm services using the regulated algo I can see 388 log entries within exactly 1 hour, so in average every service calls calculate_regulated_temperature in average every 1.5 minutes, even when using a 5 minutes cycle. Something is off, it should be called exactly once per cycle.

_Originally posted by @maia in https://github.com/jmcollin78/versatile_thermostat/discussions/154#discussioncomment-7480989_

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Reactions: 1
  • Comments: 32 (18 by maintainers)

Commits related to this issue

Most upvoted comments

This morning what I did was:

  1. change the code to replace LOGGER.debug with LOGGER.info as requested
  2. reboot HA
  3. edit the config for two rooms (“Schlafzimmer” and “Kinderzimmer”) by increasing the temperatures for eco/comfort/boost
  4. eat breakfast
  5. check the logs

I didn’t touch any other service and I didn’t touch the TRVs. So the three services with too many cycles at the moment were not reconfigured since the reboot.

I will try to reproduce what you have found. It sounds very strange to me. Regarding the code, it seems not possible to have multiple cycle in // on the same VTherm. Nevertheless, i will try. The most strange think is that you does nothing special. Maybe a side effect of the regulation which is relatively new.