Hi,
I try to autodiscover Heiman Smart siren (HS2WD-E) in HA without success. I have an error in log file:
2023-01-14 14:31:11 ERROR (MainThread) [homeassistant.util.logging] Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'availability': [{'topic': 'zigbee/bridge/state'}], 'device': {'identifiers': ['zigbee2mqtt_0xcc86ecfffee590e8'], 'manufacturer': 'HEIMAN', 'model': 'Smart siren (HS2WD-E)', 'name': 'siren2'}, 'device_class': 'battery', 'enabled_by_default': True, 'entity_category': 'diagnostic', 'json_attributes_topic': 'zigbee/siren2', 'name': 'siren2 battery', 'state_class': 'measurement', 'state_topic': 'zigbee/siren2', 'unique_id': '0xcc86ecfffee590e8_battery_zigbee', 'unit_of_measurement': '%', 'value_template': '{{ value_json.battery }}', 'platform': 'mqtt'},)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 160, in async_discover
config = schema(discovery_payload)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['entity_category']
have you any idea?