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
752 stars 122 forks source link

BT doesn't offer to use offset temperature compensation despite the TRV having such property #1047

Closed R1DEN closed 12 months ago

R1DEN commented 1 year ago

Prerequisites

Description

BT doesn't allow offset compensation

Steps to Reproduce

Try to add a new BT integration

Expected behavior:

BT has the option to compensate with offset as my TRV has the offset property

Actual behavior:

BT doesn't allow offset compensation

Versions

HA 2023.8.3 BT 1.2.2

Additional Information

image

image

wtom commented 1 year ago

when i have time, i will implement this.

wtom commented 1 year ago

the problem here is, to find the right entity. yours is called bedroom_trv_number_temperature_calibration and for my TRV for example it's number.heizung_badezimmer_number_temperature_offset.

@KartoffelToby wrote it here in the comments, hacky way. https://github.com/KartoffelToby/better_thermostat/blob/master/custom_components/better_thermostat/utils/helpers.py#L527:L566

We would now need to add our cases, and then more and more. In the future. But the Temperature based calibration should also work, so i think this is not a prio?

wtom commented 1 year ago

we would then also need to add some code to the adapters. like it is in the mqtt adapter. all the offset related code.

maybe i will try it tomorrow and test it with one of my thermostats.

R1DEN commented 1 year ago

Are there any drawbacks with replacing that with a more generic

'temperature_calibration' in uid
||
'temperature_offset' in uid

?

P.S. Sorry, posted it from wrong account. reposting so that the history is not lost)

wtom commented 1 year ago

I've made a PR.