tetele / hvac_group

Group together `climate` components for easy control
MIT License
25 stars 5 forks source link

Error when calling the service climate/set_temperature. unknown error #91

Open Sputnikchen opened 5 months ago

Sputnikchen commented 5 months ago

System Health details

Version: core-2024.3.1 Python-Version: 3.12.2 OSVersion: 6.1.73-haos-raspi

Checklist

Describe the issue

Can't set anything. Error setting temp and error setting HVAC-mode (climate/set_hvac_mode. unknown error)

Reproduction steps

  1. Install HVAC group
  2. Create group with 3 TRV
  3. Open group and try to change temp or hvac-mode

Debug logs

Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/websocket_api/commands.py:239
Integration: Home Assistant WebSocket API (Dokumentation, Probleme)
Erstmals aufgetreten: 07:07:23 (5 Vorkommnisse)
Zuletzt protokolliert: 07:14:22

[547274524224]
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 864, in async_service_temperature_set
    await entity.async_set_temperature(**kwargs)
  File "/config/custom_components/hvac_group/climate.py", line 1039, in async_set_temperature
    await self.async_commit_state_if_running(update_actuators=True)
  File "/config/custom_components/hvac_group/climate.py", line 536, in async_commit_state_if_running
    await self.async_run_hvac(update_actuators=update_actuators)
  File "/config/custom_components/hvac_group/climate.py", line 684, in async_run_hvac
    await self.async_control_actuators(
  File "/config/custom_components/hvac_group/climate.py", line 707, in async_control_actuators
    await self._async_turn_on_heaters()
  File "/config/custom_components/hvac_group/climate.py", line 1106, in _async_turn_on_heaters
    await targets.async_turn_on(
  File "/config/custom_components/hvac_group/actuator.py", line 317, in async_turn_on
    await actuator.async_turn_on(
  File "/config/custom_components/hvac_group/actuator.py", line 245, in async_turn_on
    await self.async_set_temperature(
  File "/config/custom_components/hvac_group/actuator.py", line 122, in async_set_temperature
    assert None in (temperature, target_temp_high, target_temp_low)
AssertionError

Diagnostics dump

No response