Open Shimakuchi opened 2 months ago
Same here:
homeassistant.exceptions.ServiceValidationError: Provided temperature 35.0 is not valid. Accepted range is 5 to 25
Dirty Workaround, seems to work:
Edit custom_components/better_thermostat/utils/controlling.py and change the code starting at line 267:
if _temperature != _current_set_temperature:
if _temperature > 25:
_temperature = 25
old = self.real_trvs[heater_entity_id].get("last_temperature", "?")
Pay attention to the correct indentation an alter 25 to whatever you need. I hardcoded "bt_max_temp" to 25 before and the problem persists. Seems the limits are not checked within the calculation or the limits of different trvs gets mixed up.
I had the same issue. I am using Bosch Thermostat 230v. Just tested the fix, and this seems to solve the problem. Thank you!
Hi, i've got the same issue, home assistant is not responding anymore because of this. It's happening daily for me now. Where do you find the target temperature? my journalctl logs don't show the temperature invalid temperature error though. Where do you find this?
Look in HA's base directory, you should find a file named 'home-assistant.log'.
@KleinRiese hi i tried you fix but i can´t get the indentation to work, i tried switsching around different spaces or even tabs..
Can you give a hint for indentation?
here is the error :
File "/config/custom_components/better_thermostat/utils/controlling.py", line 270 old = self.real_trvs[heater_entity_id].get("last_temperature", "?") ^ IndentationError: unindent does not match any outer indentation level
i didn´t even change that line, only added the two above like in you post, maby you or someone sees my mistake.
@starhopper1 well, for the sake of simplicity I attached my controlling.py (limited to 25) 😊
thanks ok i see my error.
you use all eve devices? can someone provide the org. eve HA Debug infos from this device?
No, I use mainly Tado but have 2 different Tuya-Devices:
config_entry-better_thermostat-df3bd9b0e2143f643d7ffc5772d50da2.json config_entry-better_thermostat-81be3c65bda4aeae19bd4910bce7503b.json
@KartoffelToby maybe I can help. I'm running with 8 Eve Thermo over Matter. What exactly do you need?
This? And if so, do I have to edit out some confidential information before uploading here or is there nothig to worry about?
Yes its safe. Its a function from ha itself
@KartoffelToby alright, so here is the debug of one of my Eve Thermo connected via Matter integration. Hope it helps :)
matter-7dba542cd06503fb22e72db21f6a6f1c-Eve Thermo 20EBP1701-f161eec3ec993cb2a6832e824a1045a8.json
Got the same problem, I'm using zwave Spirit thermostats by Eurotronics
2024-11-15 20:28:14.197 ERROR (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BetterThermostat - Küche: ERROR controlling: climate.thermostat_kuche
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(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/better_thermostat/adapters/generic.py", line 111, in set_temperature
await self.hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 1017, in async_service_temperature_set
raise ServiceValidationError(
homeassistant.exceptions.ServiceValidationError: Provided temperature 3.5 is not valid. Accepted range is 8 to 28
Hope it helps: zwave_js-01JB9WW6QNX2M8YDG4FAZSK9P6-Thermostat_Küche-07feaad8ed7cc3b4f6e17fb40a7e884d.json
I am using the Eve Thermo with the HomeKit integration because I have version 2 or 3, which does not support Matter. Where can I find the debug information you need?
Eve Thermo v2 and v3
Description
Home Assistant does not respond anymore.
Steps to Reproduce
Sometimes it happens when setting the temperature, but sometimes it just happens randomly
Expected behavior:
I set a temperature and the thermostat reacts accordingly without Home Assistant being unavailable and me having to restart the Docker container
Actual behavior:
I set a temperature and Home Assistant no longer responds
Versions
Core 2024.9.1 Frontend 20240906.0 BT 1.6.0 BT-UI 2.2.0
Additional Information
I found the following in the log. The second output, the error, then runs on an endless loop and apparently ensures that Home Assistant is no longer accessible