Error Message "climate-mode-entity-row"

Hello Forum,
i have a little probleme with my thermostat.
I use a entity card with “climate-mode-entity-row”
Very simple.
But each time i click on the “Auto” mode button i get a error message about calling a service.

“None is not a valid HVACOperationMode”

What i know is, that it should be no “HVAC Mode”, it should be a “Preset Mode”

type: entities
entities:
  - entity: climate.schlafzimmer
    type: custom:climate-mode-entity-row
    icon: mdi:home
    modes:
      - preset_mode: auto
      - preset_mode: comfort
      - preset_mode: away
        icon: mdi:leaf
        color: '#76D275'
      - preset_mode: sleep
        color: '#FFC107'
      - preset_mode: eco
        icon: mdi:snowflake
        color: '#34c6eb'
state_color: true

Climate-mode-entity-row

Each other mode button is working perfektly.

Here is the error log:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/knx/climate.py:275
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 30. November 2022 um 21:19:42 (26 occurrences)
Last logged: 18:44:13

  • [547858659840] None is not a valid HVACOperationMode
  • [547810340400] None is not a valid HVACOperationMode
  • [548057330688] None is not a valid HVACOperationMode

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 200, in handle_call_service await hass.services.async_call( File “/usr/src/homeassistant/homeassistant/core.py”, line 1744, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1781, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 208, in handle_service await service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 678, in entity_service_call future.result() # pop exception if have File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 943, in async_request_call await coro File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 715, in _handle_entity_call await result File “/usr/src/homeassistant/homeassistant/components/knx/climate.py”, line 275, in async_set_preset_mode knx_operation_mode = HVACOperationMode(PRESET_MODES_INV.get(preset_mode)) File “/usr/local/lib/python3.10/enum.py”, line 385, in call return cls.new(cls, value) File “/usr/local/lib/python3.10/enum.py”, line 710, in new raise ve_exc ValueError: None is not a valid HVACOperationMode

Can please anyone me.

Hi :wave:!
What is your entities configuration yaml?

Hi,
the room ist integratet via KNX.

climate:
  - name: "Schlafzimmer"
    temperature_address: "3/2/1"
    target_temperature_state_address: "3/2/2"
    target_temperature_address: "3/2/2"
    operation_mode_state_address: "3/1/1"
    operation_mode_address: "3/1/2"

i think that there is a bug in “climate-mode-entity-row”.
You can have the “Auto” state two times in a climate.
One selecting hvac_mode and the other selecting preset_mode.
And in preset_mode “Auto” ist belonging to “none”.
For me it seems that the expression “none” maybe is the problem.

Maybe. The HA climate model doesn’t support an “Auto” preset (HA presets are KNX operation modes).
Can you select that preset from the default climate entity card?

What knx controller do you use? The ones I have seen don’t really support “Auto” mode.

That is not right.
HA climate does support “Auto”.
As the Documentation tells so, “Auto” maps to “none” in preset_mode.

The following presets are valid for the Home Assistant Climate preset_mode attribute. Supported values for your KNX thermostats can be specified via operation_modes configuration variable:

  • Auto (maps to none of the Home Assistant Climate preset_mode attribute)
  • Comfort (maps to comfort of the Home Assistant Climate preset_mode attribute)
  • Standby (maps to away of the Home Assistant Climate preset_mode attribute)
  • Night (maps to sleep of the Home Assistant Climate preset_mode attribute)
  • Frost Protection (maps to eco of the Home Assistant Climate preset_mode attribute)

Also if i use the “simple thermostat” it is working perfectly.

I use Siemens Synco Living QAX910HA

Processing: synco modes.pdf…

That’s what I meant. There is no “auto” in HA, “none” was the closest to choose.

I have no experience whatsoever with custom card things. But if that works it doesn’t seem to be a KNX integration problem. However the error is raised in the KNX integration code… so that’s awkward.
What are the available preset modes for the entity? You can look it up in /developer-tools/state.

Looking at your DPT table it seems the device can receive “Auto” mode (since it is part of the DPT spec), but can’t have the state “Auto” - it is not listed in “Betriebsart: Zustand”.

Yes thats what i think.
The problem is not a KNX integration problem.
I made a bug report to the author of “climate-mode-entity-row” at github, 10 days ago but no response till now.