Skip to content

TRV auto heat exchange causes my server to crash #1653

@albundycoa

Description

@albundycoa

Hi, and first of all, thank you for this integration.

I use the following thermostats BRT-100-TRV

"In order for them to be properly controlled when the window is opened, I have to change the "Auto" and "Heat" modes. If I do, then the TRVs are grayed out and you can't use them. If I set up the TRV without the tick during mode exchange, they are available. If I now go back to the "setting" and tick the mode exchange, then the "system" works until you open the window... then the HA shoots me and I have to restart the system... Before the crash, the CPU load goes to 75-99%.

Z2M is the latest version installed and since the system is constantly crashing in this setting, there are unfortunately no logs that I can attach.

I hope I was able to describe the mistake as best I could.

edit: I found a log entry, maybe it will help.

Logger: homeassistant
Quelle: components/climate/init.py:532
Erstmals aufgetreten: 00:07:16 (4 Vorkommnisse)
Zuletzt protokolliert: 00:14:43

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/better_thermostat/climate.py", line 892, in startup
await control_trv(self, trv)
File "/config/custom_components/better_thermostat/utils/controlling.py", line 239, in control_trv
await set_hvac_mode(self, heater_entity_id, _new_hvac_mode)
File "/config/custom_components/better_thermostat/adapters/delegate.py", line 82, in set_hvac_mode
return await self.real_trvs[entity_id]["adapter"].set_hvac_mode(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self, entity_id, hvac_mode
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/better_thermostat/adapters/mqtt.py", line 78, in set_hvac_mode
await generic_set_hvac_mode(self, entity_id, hvac_mode)
File "/config/custom_components/better_thermostat/adapters/generic.py", line 124, in set_hvac_mode
await self.hass.services.async_call(
...<5 lines>...
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2835, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2878, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 850, 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 922, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 576, in async_handle_set_hvac_mode_service
self._valid_mode_or_raise("hvac", hvac_mode, self.hvac_modes)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 532, in _valid_mode_or_raise
raise ServiceValidationError(
...<6 lines>...
)
homeassistant.exceptions.ServiceValidationError: HVAC mode auto is not valid. Valid HVAC modes are: heat

Metadata

Metadata

Assignees

Labels

new bugincoming bug issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions