core: Aqara M2 using Matter: ValueError: 0 is not a valid AccessControl.Enums.Privilege

The problem

Retrying setup: Matter client not ready is show at setting over matter (devices and services) Matter was conencted to Aqara Hub 2 and there 1 motion sensor, but after last matter addon update hasnt working anymorr. Have deleted addon and integration + reinstalled. And wont connect to aqara hub anymore

What version of Home Assistant Core has the issue?

core-2023.3.6

What was the last working version of Home Assistant Core?

core-2023.3.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Matter

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.matter
Source: components/matter/__init__.py:127
Integration: Matter (BETA) (documentation, issues)
First occurred: 9:18:57 AM (6 occurrences)
Last logged: 9:24:06 AM

Unexpected exception: 0 is not a valid AccessControl.Enums.Privilege
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 127, in _client_listen
    await matter_client.start_listening(init_ready)
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 276, in start_listening
    nodes = [
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 277, in <listcomp>
    MatterNode(dataclass_from_dict(MatterNodeData, x))
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/models/node.py", line 212, in __init__
    self.update(node_data)
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/models/node.py", line 299, in update
    self.endpoints[endpoint_id] = MatterEndpoint(
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/models/node.py", line 57, in __init__
    self.update(attributes_data)
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/models/node.py", line 186, in update
    self.set_attribute_value(attribute_path, attribute_value)
  File "/usr/local/lib/python3.10/site-packages/matter_server/client/models/node.py", line 177, in set_attribute_value
    attribute_value = parse_value(
  File "/usr/local/lib/python3.10/site-packages/matter_server/common/helpers/util.py", line 116, in parse_value
    return [
  File "/usr/local/lib/python3.10/site-packages/matter_server/common/helpers/util.py", line 117, in <listcomp>
    parse_value(name, subvalue, get_args(value_type)[0])
  File "/usr/local/lib/python3.10/site-packages/matter_server/common/helpers/util.py", line 113, in parse_value
    return dataclass_from_dict(value_type, value)
  File "/usr/local/lib/python3.10/site-packages/matter_server/common/helpers/util.py", line 214, in dataclass_from_dict
    **{
  File "/usr/local/lib/python3.10/site-packages/matter_server/common/helpers/util.py", line 215, in <dictcomp>
    field.name: parse_value(
  File "/usr/local/lib/python3.10/site-packages/matter_server/common/helpers/util.py", line 164, in parse_value
    return value_type(value)
  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: 0 is not a valid AccessControl.Enums.Privilege

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Yes! Its working now