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
822 stars 126 forks source link

HA crashes and reboots when trying to enable heating #1211

Open Razile89 opened 10 months ago

Razile89 commented 10 months ago

Prerequisites

{
  YOUR DEVICE DIAGNOSTICS JSON OUTPUT HERE
}

Description

After setting up BT, when i click on the the heat button HA becomes unrensponsive and then after some minutes rebootes

Versions

HA Core 2023.12.3, Frontend20231208.2 BT version 1.4.0

Drewskieza commented 10 months ago

Here is what I see in my logs (as can be seen there are many per second).

2023-12-20 08:07:21.108 ERROR (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Taeyah TRV: ERROR controlling: climate.taeyah_thermostat Traceback (most recent call last): File "/config/custom_components/better_thermostat/utils/controlling.py", line 46, in control_queue _temp = await control_trv(self, trv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/better_thermostat/utils/controlling.py", line 85, in control_trv await update_hvac_action(self) File "/config/custom_components/better_thermostat/events/trv.py", line 249, in update_hvac_action self.bt_target_temp > self.cur_temp + self.tolerance TypeError: '>' not supported between instances of 'NoneType' and 'float' 2023-12-20 08:07:21.109 ERROR (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Taeyah TRV: ERROR controlling: climate.taeyah_thermostat Traceback (most recent call last): File "/config/custom_components/better_thermostat/utils/controlling.py", line 46, in control_queue _temp = await control_trv(self, trv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/better_thermostat/utils/controlling.py", line 85, in control_trv await update_hvac_action(self) File "/config/custom_components/better_thermostat/events/trv.py", line 249, in update_hvac_action self.bt_target_temp > self.cur_temp + self.tolerance TypeError: '>' not supported between instances of 'NoneType' and 'float' 2023-12-20 08:07:21.110 ERROR (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Taeyah TRV: ERROR controlling: climate.taeyah_thermostat Traceback (most recent call last): File "/config/custom_components/better_thermostat/utils/controlling.py", line 46, in control_queue _temp = await control_trv(self, trv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/better_thermostat/utils/controlling.py", line 85, in control_trv await update_hvac_action(self) File "/config/custom_components/better_thermostat/events/trv.py", line 249, in update_hvac_action self.bt_target_temp > self.cur_temp + self.tolerance TypeError: '>' not supported between instances of 'NoneType' and 'float'

joepbuhre commented 9 months ago

Perhaps close this for now and reference this issue: #1245