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

Thermostat not really turned off #1096

Open I-Would-Like-To-Report-A-Bug-Please opened 11 months ago

I-Would-Like-To-Report-A-Bug-Please commented 11 months ago

Prerequisites

Description

Not sure what's happening but it seems that BT ignores my OFF setting. Even though my Thermostat is configured to off state I can notice it changes temperature on my main TRV to the state where it starts to heat the house which is not needed at the current time.

Steps to Reproduce

  1. Set BT to off State

Expected behavior:

If off is set then it should be honoured and no calibration, changes should happen to main thermostat.

Actual behavior:

If off is set it still changes the temperature on the main trv.

Versions

2023.10.3 1.3.0

Additional Information

Some debug logs re BetterHome


2023-10-18 08:06:06.550 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:06:06.550 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat sends new internal temperature from 20.0 to 20.1
2023-10-18 08:06:06.550 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 21.0
2023-10-18 08:06:06.551 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:06:06.551 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat sends new internal temperature from 20.0 to 20.1
2023-10-18 08:06:06.551 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_hvac_mode: climate.heating_thermostat from: off to: heat
2023-10-18 08:06:06.619 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:06:09.557 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_temperature: climate.heating_thermostat from: 21.0 to: 21.5
2023-10-18 08:06:09.560 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: climate.heating_thermostat / check_target_temp / _last: 21.5 - _current: 18.0
2023-10-18 08:06:09.646 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:06:09.654 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:10:26.891 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_hvac_mode: climate.heating_thermostat from: heat to: off
2023-10-18 08:10:26.953 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:10:26.953 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 21.5 - _new_heating_setpoint: 21.5 - _last_temperature: 21.5
2023-10-18 08:10:32.895 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_hvac_mode: climate.heating_thermostat from: off to: heat
2023-10-18 08:10:32.943 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:10:32.943 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 21.5 - _new_heating_setpoint: 21.5 - _last_temperature: 21.5
2023-10-18 08:10:35.899 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_temperature: climate.heating_thermostat from: 18.0 to: 18.5
2023-10-18 08:10:35.901 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: climate.heating_thermostat / check_target_temp / _last: 18.5 - _current: 21.5
2023-10-18 08:10:36.013 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:10:36.013 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 21.5 - _new_heating_setpoint: 18.5 - _last_temperature: 21.5
2023-10-18 08:10:36.030 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:10:36.031 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 18.5 - _new_heating_setpoint: 18.5 - _last_temperature: 21.5
2023-10-18 08:10:38.903 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_hvac_mode: climate.heating_thermostat from: heat to: off
2023-10-18 08:10:38.996 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 08:10:38.996 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 18.5 - _new_heating_setpoint: 18.5 - _last_temperature: 21.5
2023-10-18 08:16:43.269 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: climate.heating_thermostat the real TRV did not respond to the system mode change```
I-Would-Like-To-Report-A-Bug-Please commented 11 months ago

Also it seems slightly weird, but I disabled BetterHome thermostat in BT configuration a moment ago and I can still see it going on in the logs:

his device, is it possible that you forgot to set the heat auto swapped option?
2023-10-18 08:59:49.936 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 19.0 - _new_heating_setpoint: 19.0 - _last_temperature: 21.5
2023-10-18 08:59:49.936 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_hvac_mode: climate.heating_thermostat from: auto to: heat
2023-10-18 08:59:52.939 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_temperature: climate.heating_thermostat from: 21.5 to: 21.5
2023-10-18 08:59:52.941 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: climate.heating_thermostat / check_target_temp / _last: 21.5 - _current: 19.0
2023-10-18 09:14:09.717 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 09:14:09.717 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 21.5 - _new_heating_setpoint: 20.0 - _last_temperature: 21.5
2023-10-18 09:14:10.256 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 09:14:10.256 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 20.0 - _new_heating_setpoint: 19.5 - _last_temperature: 21.5
2023-10-18 09:14:10.269 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 09:14:10.270 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 19.5 - _new_heating_setpoint: 19.5 - _last_temperature: 21.5
2023-10-18 09:14:17.504 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: TRV climate.heating_thermostat update received
2023-10-18 09:14:17.504 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat BetterHome: trigger_trv_change / _old_heating_setpoint: 19.5 - _new_heating_setpoint: 19.0 - _last_temperature: 21.5
2023-10-18 09:14:31.752 DEBUG (MainThread) [custom_components.better_thermostat.events.temperature] better_thermostat BetterHome: external_temperature changed from 20.1 to 20.2
2023-10-18 09:14:31.753 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: TO TRV set_temperature: climate.heating_thermostat from: 21.5 to: 21.0
2023-10-18 09:14:31.759 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterHome: climate.heating_thermostat / check_target_temp / _last: 21.0 - _current: 19.0

image

DingenV commented 11 months ago

Same problem here. Off mode should be off. When triggering Set HVAC mode to off (triggered by the user), the better thermostat plugin will change the HVAC mode to off and within a couple of minutes it will change back to Changed to Heat triggered by service Climate: Set target temperature. The changed to heat is not triggered by a user in the logs. Maybe something wrong with the auto function?