Hello,
I’ve noticed that it’s currently difficult to distinguish the buttons on multi-button Matter switches like this:
In the Matter standard, there’s a solution to this problem with an attribute called TagList
. It contains a list of tags that indicate specific details.
A Matter client like HA should use these tags to convey such information to the user (e.g. showing it in a user interface), to help the user identify which endpoint maps to a certain orientation or labeling.
This allow the controller to rename entities using the location of the buttons on a multi-button switch device.
Some device like Aqara Climate Sensor W100 has TagList attribute in Descriptor
Cluster.
This allow the controller to rename entities using the location of the buttons on a multi-button switch device.
Button 1: [{"0":null,"1":7,"2":1},{"0":null,"1":8,"2":2}] = 1, Top
Button 2: [{"0":null,"1":7,"2":2},{"0":null,"1":8,"2":4}] = 2, Middle
Button 3: [{"0":null,"1":7,"2":3},{"0":null,"1":8,"2":3}] = 3, Bottom
From the specs: 24-31936-004_Matter-1.4.1-Standard-Namespace-Specification.pdf
Common Number Semantic Tag (7)
Namespace
This section contains the Common Number semantic tag namespace as part of the semantic tag feature.
The tags contained in this namespace MAY be used in any domain or context, to indicate an association with a certain numeric feature of a device (e.g. a numeric input button).
Common Position Semantic Tag (8)
Namespace
This section contains the Common Position semantic tag namespace as part of the semantic tag feature.
The tags contained in this namespace MAY be used in any domain or context, to indicate an association with a position relative to the device (e.g. the temperature sensor in the top drawer of a refrigerator, or location of the buttons on a multi-button switch device).
Is it possible to implement this in Home Assistant when endpoints are discovered?
Current
Using Number Semantic Tag and Position Semantic Tag
We can combine Number Semantic Tag and Position Semantic Tag:
Regards