home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.44k stars 30.68k forks source link

Error with Homematic integration after update to Core 2024.4.0 #114930

Closed thorbie69 closed 7 months ago

thorbie69 commented 7 months ago

The problem

Nach dem Update auf Core 2024.4.0 werden meine Homematic Thermostate (Climate) nicht mehr angezeigt.

What version of Home Assistant Core has the issue?

core-2024.4.0

What was the last working version of Home Assistant Core?

core-2024.3.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Homematic

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

homematic:
  interfaces:
    wireless:
      host: 192.168.xxx.xxx
      port: 2001 
      resolvenames: json 
      username: xxxxx 
      password: xxxxxx

Anything in the logs that might be useful for us?

Logger: homeassistant.components.climate
Quelle: helpers/entity_platform.py:787
Integration: Klima (Dokumentation, Probleme)
Erstmals aufgetreten: 10:35:45 (31 Vorkommnisse)
Zuletzt protokolliert: 10:35:45

Error adding entity None for domain climate with platform homematic
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 787, in _async_add_entity
    capabilities=entity.capability_attributes,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 328, in __getattribute__
    return super().__getattribute__(__name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 501, in capability_attributes
    data[ATTR_PRESET_MODES] = self.preset_modes
                              ^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 328, in __getattribute__
    return super().__getattribute__(__name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/homematic/climate.py", line 116, in preset_modes
    return [HM_PRESET_MAP[mode] for mode in self._hmdevice.ACTIONNODE]
            ~~~~~~~~~~~~~^^^^^^
KeyError: 'AUTO_MODE'

Additional information

No response

joostlek commented 7 months ago

Is fixed in 2024.4.1, will be released soon

sbahles commented 7 months ago

@joostlek Problem still occurs in 2024.4.1:

(Core: 2024.4.1 Supervisor: 2024.03.1 Operating System: 12.1 Frontend: 20240404.1)

2024-04-05 17:36:57.921 WARNING (MainThread) [homeassistant.setup] Setup of homematic is taking over 10 seconds.
2024-04-05 17:37:01.016 WARNING (MainThread) [homeassistant.helpers.entity] Entity homematic.ccu3 (<class 'homeassistant.components.homematic.entity.HMHub'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent helper, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue
2024-04-05 17:37:05.326 ERROR (MainThread) [homeassistant.components.climate] Error adding entity None for domain climate with platform homematic
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 787, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 328, in __getattribute__
return super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 501, in capability_attributes
data[ATTR_PRESET_MODES] = self.preset_modes
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 328, in __getattribute__
return super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homematic/climate.py", line 116, in preset_modes
return [HM_PRESET_MAP[mode] for mode in self._hmdevice.ACTIONNODE]
~~~~~~~~~~~~~^^^^^^
KeyError: 'AUTO_MODE'
2024-04-05 17:37:05.402 ERROR (MainThread) [homeassistant.components.climate] Error adding entity None for domain climate with platform homematic
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 787, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 328, in __getattribute__
return super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 501, in capability_attributes
data[ATTR_PRESET_MODES] = self.preset_modes
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 328, in __getattribute__
return super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homematic/climate.py", line 116, in preset_modes
return [HM_PRESET_MAP[mode] for mode in self._hmdevice.ACTIONNODE]
~~~~~~~~~~~~~^^^^^^
KeyError: 'AUTO_MODE'
joostlek commented 7 months ago

Yep, I made a mistake and forgot to tag it to the milestone so it hasn't been included in 2024.4.1. It will go out in 2024.4.2.