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
71.11k stars 29.79k forks source link

Two different Matter devices were mistakenly recognized as one device #123630

Closed liuguoping1024 closed 1 week ago

liuguoping1024 commented 1 month ago

The problem

I used a Smart Bridge MZ1 (https://3reality.com/product/smart-bridge-mz1/) to connect several Zigbee devices, but later discovered that some devices were unavailable and some were invisible. After investigation, I found the following issues:

part-1、error device json

1-1: error-1, two devices into one device, one is Window Covering, the other is sonsor. {"area_id":"b2","config_entries":["65f8ce1b335c39d5f1a9e2d6dc4726fc"],"configuration_url":null,"connections":[],"disabled_by":null,"entry_type":null,"hw_version":"","id":"31ce9f9cc0cd93b9d67f9ce4b55f76e8","identifiers":[["matter","deviceid_E4FFD621BB0649DA-000000000000000B-13"],["matter","deviceid_E4FFD621BB0649DA-0000000000000009-14"],["matter","serial_282C02BFFFEA086D"],["matter","serial_F442500023410000"]],"labels":[],"manufacturer":"Third Reality, Inc","model":"3RSB015BZ","name_by_user":null,"name":"Window Covering","serial_number":"282C02BFFFEA086D","sw_version":"v1.00.72","via_device_id":"894e888f806f6c11860c602fdb13c43b"}, 1-2: error-2, two devices into one device partly {"area_id":"b4","config_entries":["65f8ce1b335c39d5f1a9e2d6dc4726fc"],"configuration_url":null,"connections":[],"disabled_by":null,"entry_type":null,"hw_version":"","id":"09e8a2b8fbc0c0f0d7d52b67e2c177e9","identifiers":[["matter","serial_282C02BFFFE99E0B"],["matter","deviceid_E4FFD621BB0649DA-000000000000000B-14"],["matter","serial_282C02BFFFEA8813"]],"labels":[],"manufacturer":"Third Reality, Inc","model":"3RSS009Z","name_by_user":null,"name":"OnOff Switch4-2","serial_number":"282C02BFFFE99E0B","sw_version":"v1.00.19","via_device_id":"9073d4012433d251dc24d7b8b12b68e7"}

part-2:

2-1: two devices' entities mapping to one device based on "error-1", (generated by python script): { "index": "35", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "name": "Window Covering", "model": "3RSB015BZ", "entities": [ { "index": "0", "id": "67e7b5c2eb2b3d4d4d668f4c54c677ba", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "sensor.t_h_sensor_lite_temperature_3", "unique_id": "E4FFD621BB0649DA-0000000000000009-14-14-TemperatureSensor-1026-0", "platform": "matter", "original_name": "Temperature" }, { "index": "0", "id": "a57d9528a3cc45772a9e946ed5c3cf5e", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "sensor.t_h_sensor_lite_humidity_3", "unique_id": "E4FFD621BB0649DA-0000000000000009-14-14-HumiditySensor-1029-0", "platform": "matter", "original_name": "Humidity" }, { "index": "0", "id": "de1346610b0450c45df9767c54a253fc", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "sensor.t_h_sensor_lite_battery_3", "unique_id": "E4FFD621BB0649DA-0000000000000009-14-14-PowerSource-47-12", "platform": "matter", "original_name": "Battery" }, { "index": "0", "id": "9617b2ef00863e30cdac9364a4ec436a", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "sensor.t_h_sensor_lite_temperature_5", "unique_id": "E4FFD621BB0649DA-000000000000000B-13-13-TemperatureSensor-1026-0", "platform": "matter", "original_name": "Temperature" }, { "index": "0", "id": "b9c8a5102cb72a74c079a21366199864", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "sensor.t_h_sensor_lite_humidity_5", "unique_id": "E4FFD621BB0649DA-000000000000000B-13-13-HumiditySensor-1029-0", "platform": "matter", "original_name": "Humidity" }, { "index": "0", "id": "8e7dd0a609e24a465152ac05d4bb248f", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "sensor.t_h_sensor_lite_battery_5", "unique_id": "E4FFD621BB0649DA-000000000000000B-13-13-PowerSource-47-12", "platform": "matter", "original_name": "Battery" }, { "index": "0", "id": "10a7b699fdecd085d19e0a1f28568bdf", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "cover.window_covering", "unique_id": "E4FFD621BB0649DA-0000000000000009-14-14-MatterCoverPositionAwareLiftAndTilt-258-10", "platform": "matter", "original_name": null }, { "index": "0", "id": "cffc36f126a8cc21dff2fd104ca6b99c", "device_id": "31ce9f9cc0cd93b9d67f9ce4b55f76e8", "entity_id": "switch.window_covering", "unique_id": "E4FFD621BB0649DA-0000000000000009-14-14-MatterSwitch-6-0", "platform": "matter", "original_name": null } ] }

2-2: error-3, a sensor is mapping to one matter bridge(https://3reality.com/product/smart-bridge-mz1/). {"aliases":[],"area_id":null,"categories":{},"capabilities":{"state_class":"measurement"},"config_entry_id":"65f8ce1b335c39d5f1a9e2d6dc4726fc","device_class":null,"device_id":"9073d4012433d251dc24d7b8b12b68e7","disabled_by":null,"entity_category":null,"entity_id":**"sensor.bridge_4_temperature"**,"hidden_by":null,"icon":null,"id":"0f3f4704a471fc5ba04bba9c6a8398c8","has_entity_name":true,"labels":[],"name":null,"options":{"conversation":{"should_expose":true}} device id: 9073d4012433d251dc24d7b8b12b68e7 is mapping to a bridge.

What version of Home Assistant Core has the issue?

2024.6.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

matter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/matter

Diagnostics information

No response

Example YAML snippet

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

recorder:
  purge_keep_days: 15
  exclude:
    entity_globs:
      - sensor.sun*
      - weather.*
    entities:
      - sensor.date
      - sensor.last_boot # Comes from 'systemmonitor' sensor platform
      - sun.sun # Don't record sun data

Anything in the logs that might be useful for us?

./home-assistant.log:2024-08-07 17:18:39.171 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 17:18:39.172 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-07 18:16:13.018 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 18:16:13.018 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-07 19:16:22.952 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 19:16:22.953 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-07 20:16:46.518 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 20:16:46.518 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-07 21:17:19.633 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 21:17:19.633 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-07 22:17:21.242 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 22:17:21.242 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-07 22:17:25.903 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-07 22:17:25.903 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-08 04:02:39.202 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-08 04:02:39.202 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-08 04:21:14.468 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-08 04:21:14.468 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-09 16:29:36.382 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-09 16:29:36.382 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-09 16:29:41.110 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-09 16:29:41.111 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-09 17:29:46.906 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-09 17:29:46.907 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-09 22:33:00.569 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-09 22:33:00.570 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3
./home-assistant.log:2024-08-10 15:41:43.452 ERROR (MainThread) [homeassistant.components.light] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-MatterLight-6-0 already exists - ignoring light.onoff_switch_5
./home-assistant.log:2024-08-10 15:41:43.452 ERROR (MainThread) [homeassistant.components.sensor] Platform matter does not generate unique IDs. ID E4FFD621BB0649DA-000000000000000B-14-14-PowerSource-47-12 already exists - ignoring sensor.motion_sensor_battery_3

Additional information

Here is the bridge: {"area_id":"b2","config_entries":["65f8ce1b335c39d5f1a9e2d6dc4726fc"],"configuration_url":null,"connections":[],"disabled_by":null,"entry_type":null,"hw_version":"1.0.0","id":"894e888f806f6c11860c602fdb13c43b","identifiers":[["matter","deviceid_E4FFD621BB0649DA-0000000000000009-MatterNodeDevice"],["matter","serial_3RM04-3455-00709"]],"labels":[],"manufacturer":"ThirdReality","model":"Smart Bridge MZ1","name_by_user":null,"name":"Bridge 2","serial_number":"3RM04-3455-00709","sw_version":"v1.00.68","via_device_id":null},

{"area_id":"b4","config_entries":["65f8ce1b335c39d5f1a9e2d6dc4726fc"],"configuration_url":null,"connections":[],"disabled_by":null,"entry_type":null,"hw_version":"1.0.0","id":"9073d4012433d251dc24d7b8b12b68e7","identifiers":[["matter","deviceid_E4FFD621BB0649DA-000000000000000B-MatterNodeDevice"],["matter","serial_3RM04-3455-00718"]],"labels":[],"manufacturer":"ThirdReality","model":"Smart Bridge MZ1","name_by_user":null,"name":"Bridge 4","serial_number":"3RM04-3455-00718","sw_version":"v1.00.68","via_device_id":null}

home-assistant[bot] commented 1 month ago

Hey there @home-assistant/matter, mind taking a look at this issue as it has been labeled with an integration (matter) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `matter` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign matter` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


matter documentation matter source (message by IssueLinks)

marcelveldt commented 1 week ago

This is an issue of the ThirdReality bridge, its reporting the same devices under the same serial - that results in a mess. They should fix that in their implementation and then this will resolve itself.