Description
When the window sensor was open and Better Thermostat was configured to use 5°C instead of off and TRV had heating disabled, Better Thermostat repeatedly tried to control the real thermostat and failed with:
homeassistant.exceptions.ServiceValidationError: temp_out_of_range
The error was repeated extremely quickly, generating around 3 GB of Docker logs within approximately 1 hour. During this time Home Assistant became unresponsive.
Disabling Better Thermostat fixed Home Assistant immediately.
Steps to Reproduce
- Enable the option to set
5°C instead of off.
- Configure a window sensor in Better Thermostat.
- Make sure the real thermostat entity is available and responding in Home Assistant.
- Manually disable heating on the real thermostat itself.
- Open the window so the configured window sensor becomes open.
- Wait for Better Thermostat to control the real thermostat.
Expected behavior:
Better Thermostat should handle the situation gracefully.
Actual behavior:
Better Thermostat repeatedly tried to control the real thermostat and failed with temp_out_of_range.
The same traceback was logged multiple times per second. This generated around 3 GB of logs within approximately 1 hour and made Home Assistant unresponsive.
Logs
2026-05-04 12:57:20.633 ERROR (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Better thermostat: ERROR controlling: climate.tstat_8942b3_t6_thermostat
Traceback (most recent call last):
File "/config/custom_components/better_thermostat/utils/controlling.py", line 67, in control_queue
_temp = await control_trv(self, trv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/better_thermostat/utils/controlling.py", line 296, in control_trv
await set_temperature(self, heater_entity_id, _temperature)
File "/config/custom_components/better_thermostat/adapters/delegate.py", line 75, in set_temperature
return await self.real_trvs[entity_id]["adapter"].set_temperature(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self, entity_id, temperature
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/better_thermostat/adapters/generic.py", line 111, in set_temperature
await self.hass.services.async_call(
...<5 lines>...
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2817, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2860, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 835, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 907, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 828, in async_service_temperature_set
raise ServiceValidationError(
...<7 lines>...
)
homeassistant.exceptions.ServiceValidationError: temp_out_of_range
Additional context
The real thermostat was not offline or unavailable. The entity was available and responding in Home Assistant.
The important state combination seems to be:
- real thermostat powered on / available
- heating manually disabled on the real thermostat
- Better Thermostat configured with
5°C instead of off
- window sensor configured
- window sensor open
The 5°C instead of off option had previously worked correctly in normal use.
Versions and HW
- Home Assistant 2026.3.1
- Better Thermostat 1.7.0
- TRV(s): Honeywell T6R connected over HomeKit Controller
Description
When the window sensor was open and Better Thermostat was configured to use
5°C instead of offand TRV had heating disabled, Better Thermostat repeatedly tried to control the real thermostat and failed with:The error was repeated extremely quickly, generating around 3 GB of Docker logs within approximately 1 hour. During this time Home Assistant became unresponsive.
Disabling Better Thermostat fixed Home Assistant immediately.
Steps to Reproduce
5°C instead of off.Expected behavior:
Better Thermostat should handle the situation gracefully.
Actual behavior:
Better Thermostat repeatedly tried to control the real thermostat and failed with
temp_out_of_range.The same traceback was logged multiple times per second. This generated around 3 GB of logs within approximately 1 hour and made Home Assistant unresponsive.
Logs
Additional context
The real thermostat was not offline or unavailable. The entity was available and responding in Home Assistant.
The important state combination seems to be:
5°C instead of offThe
5°C instead of offoption had previously worked correctly in normal use.Versions and HW