Das alte Hase und Igel Spiel: Mit Core 2023.11.1 gab es mal wieder eine Änderung bzgl. Sensoren. Diese Änderung betrifft wohl Nextcloud, MQTT und ESPHome.
https://github.com/home-assistant/core/pull/101471
Sensors cannot have EntityCategory.CONFIG as they cannot change anything.
Add a check for it and fix nextcloud, mqtt and esphome
Für Zigbee2MQTT Nutzer bedeutet dies das mit der aktuellen Version 1.33.2 dann einige Sensoren unter HA nicht mehr vorhanden sind und es zu Fehlermeldungen kommt. Das Problem bei/mit Zigbee2MQTT soll dann mit der zukünftigen Zigbee2MQTT Version 1.33.3 gefixt werden ("This specific issue is solved by 1.33.3 of z2m.")
https://github.com/home-assistant/core/issues/103414
Die Fehlermeldung dazu sieht dann bei mir z.B. so aus:
Code: Alles auswählen
Logger: homeassistant.components.mqtt.mixins
Source: components/mqtt/mixins.py:279
Integration: MQTT (documentation, issues)
First occurred: 11:22:52 (2 occurrences)
Last logged: 11:22:52
Error 'Entity category `config` is invalid' when processing MQTT discovery message topic: 'homeassistant/sensor/0x0015bc001a01a9b0/occupancy_timeout/config', message: '{'availability': [{'topic': 'zigbee2mqtt/bridge/state'}], 'device': {'identifiers': ['zigbee2mqtt_0x0015bc001a01a9b0'], 'manufacturer': 'Develco', 'model': 'Motion sensor (MOSZB-140)', 'name': 'BWM_01', 'sw_version': '4.0.2'}, 'enabled_by_default': False, 'entity_category': 'config', 'icon': 'mdi:timer', 'json_attributes_topic': 'zigbee2mqtt/BWM_01', 'name': 'Occupancy timeout', 'object_id': 'bwm_01_occupancy_timeout', 'origin': {'name': 'Zigbee2MQTT', 'sw_version': '1.33.1', 'support_url': 'https://www.zigbee2mqtt.io'}, 'state_topic': 'zigbee2mqtt/BWM_01', 'unique_id': '0x0015bc001a01a9b0_occupancy_timeout_zigbee2mqtt', 'unit_of_measurement': 's', 'value_template': '{{ value_json.occupancy_timeout }}', 'platform': 'mqtt'}'
Error 'Entity category `config` is invalid' when processing MQTT discovery message topic: 'homeassistant/sensor/0x84fd27fffe9c4d42/power_on_behavior/config', message: '{'availability': [{'topic': 'zigbee2mqtt/bridge/state'}], 'device': {'identifiers': ['zigbee2mqtt_0x84fd27fffe9c4d42'], 'manufacturer': 'Lidl', 'model': 'Silvercrest smart plug (EU, CH, FR, BS, DK) (HG06337)', 'name': 'Lidl_Plug_1'}, 'enabled_by_default': False, 'entity_category': 'config', 'icon': 'mdi:power-settings', 'json_attributes_topic': 'zigbee2mqtt/Lidl_Plug_1', 'name': 'Power-on behavior', 'object_id': 'lidl_plug_1_power_on_behavior', 'origin': {'name': 'Zigbee2MQTT', 'sw_version': '1.33.1', 'support_url': 'https://www.zigbee2mqtt.io'}, 'state_topic': 'zigbee2mqtt/Lidl_Plug_1', 'unique_id': '0x84fd27fffe9c4d42_power_on_behavior_zigbee2mqtt', 'value_template': '{{ value_json.power_on_behavior }}', 'platform': 'mqtt'}'
VG Jim