KartoffelToby / better_thermostat

This custom component for Home Assistant will add crucial features to your climate-controlling TRV (Thermostatic Radiator Valves) to save you the work of creating automations to make it smart. It combines a room-temperature sensor, window/door sensors, weather forecasts, or an ambient temperature probe to decide when it should call for heat and automatically calibrate your TRVs to fix the imprecise measurements taken in the radiator's vicinity.
https://better-thermostat.org
GNU Affero General Public License v3.0
834 stars 126 forks source link

Target temperature rounding #894

Open daniushko opened 1 year ago

daniushko commented 1 year ago

Hello,

I've been using BT for more than a month now with Aqara Thermostats. One of the problems I face with it is that the target temperature in Awara TRVs is rounded to a half degree. This, combined with two of my thermometers being Bluetooth and constantly updating HA, leads to updating the thermostat every half a minute/ a minute if the temperature is at the edge. For example, if the calculated target temperature in BT is 24.2, Aqara rounds it to 24 and if it changes to 24.3, it rounds it to 24.5. And because the temperature is not stable, sometimes this "playing" lasts for minutes draining the battery. The solution I see is rounding the values in BT. I'd be happy to have all values rounded to half a degree as I don't see a point in having part degrees as long as Aqara doesn't support them.

Thanks,

Daniel

wtom commented 1 year ago

Hi, all target temperature values are getting rounded to half. Maybe you are using an old version of BT?

daniushko commented 1 year ago

Hi, all target temperature values are getting rounded to half. Maybe you are using an old version of BT?

Hi, yes you were right. I just updated and I could see that the target temperatures in BT are rounded to half. What about the calculated target temperatures sent to the TVR?

Rohaty commented 1 year ago

Hi,

I have the latest version of Better Thermostat, Home Assistant 2023.1.5 installed. I use TRV Danfoss Ally and an external temperature sensor. The temperature being sent from the Better Thermostat to the TRV is not correct.

A: The temperature of the external temperature sensor is lower than the target temperature.

The difference between the target temperature and the temperature sent to TRV is 1.

  1. IF I set the temperature in Better Thermostat, e.g. 22, it will transfer my temperature 21 to the TRV.

  2. IF I set the temperature to TRV, e.g. to 22, a temperature of 22 is transferred to the TRV, but then the temperature changes to 21 in the TRV.

B: The temperature of the external temperature sensor is higher than the target temperature.

If I set the temperature lower than the temperature of the external temperature sensor, the difference in sending the temperature is up to 2 degrees.

Where is the problem?