Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to understand cluster details from get_nodes #1069

Closed
mahadev-0007 opened this issue Feb 7, 2025 · 1 comment
Closed

How to understand cluster details from get_nodes #1069

mahadev-0007 opened this issue Feb 7, 2025 · 1 comment

Comments

@mahadev-0007
Copy link

This is the info i got when running get_nodes in python matter server

I need to understand what this device is (device_id, vendor_id etc) also what are the clusters in this what endpoint is this etc how to understand that from this because everything is in numbers

31: MatterNodeData(node_id=31, date_commissioned=datetime.datetime(2025, 2, 5, 8, 32, 49, 859929), last_interview=datetime.datetime(2025, 2, 5, 8, 32, 49, 859935), interview_version=6, available=True, is_bridge=False, attributes={'0/29/0': [{0: 22, 1: 1}], '0/29/1': [29, 31, 40, 42, 48, 49, 51, 60, 62, 63], '0/29/2': [41], '0/29/3': [1], '0/29/65532': 0, '0/29/65533': 1, '0/29/65528': [], '0/29/65529': [], '0/29/65531': [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533], '0/31/0': [{1: 5, 2: 2, 3: [112233], 4: None, 254: 1}], '0/31/1': [], '0/31/2': 4, '0/31/3': 3, '0/31/4': 4, '0/31/65532': 0, '0/31/65533': 1, '0/31/65528': [], '0/31/65529': [], '0/31/65531': [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533], '0/40/0': 1, '0/40/1': 'TP-Link', '0/40/2': 4488, '0/40/3': 'Mini Smart Wi-Fi Plug', '0/40/4': 257, '0/40/5': '', '0/40/6': 'XX', '0/40/7': 1, '0/40/8': '1.0', '0/40/9': 1, '0/40/10': '1.0.0 Build 220930 Rel.143947', '0/40/15': 'F0090DA92D70', '0/40/18': 'B8052147A7D63367', '0/40/19': {0: 3, 1: 3}, '0/40/65532': 0, '0/40/65533': 1, '0/40/65528': [], '0/40/65529': [], '0/40/65531': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 18, 19, 65528, 65529, 65531, 65532, 65533], '0/42/0': [], '0/42/1': True, '0/42/2': 0, '0/42/3': 0, '0/42/65532': 0, '0/42/65533': 1, '0/42/65528': [], '0/42/65529': [0], '0/42/65531': [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533], '0/48/0': 0, '0/48/1': {0: 60, 1: 900}, '0/48/2': 0, '0/48/3': 2, '0/48/4': True, '0/48/65532': 0, '0/48/65533': 1, '0/48/65528': [1, 3, 5], '0/48/65529': [0, 2, 4], '0/48/65531': [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533], '0/49/0': 1, '0/49/1': [{0: b"Talrop's Villagepark\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 1: False}], '0/49/2': 10, '0/49/3': 20, '0/49/4': True, '0/49/5': None, '0/49/6': None, '0/49/7': None, '0/49/65532': 1, '0/49/65533': 1, '0/49/65528': [1, 5, 7], '0/49/65529': [0, 2, 4, 6, 8], '0/49/65531': [0, 1, 2, 3, 4, 5, 6, 7, 65528, 65529, 65531, 65532, 65533], '0/51/0': [{0: 'r0', 1: True, 2: None, 3: None, 4: b'\xf0\t\r\xa9-p', 5: [b'\xc0\xa8\x1d8'], 6: [b'\xfe\x80\x00\x00\x00\x00\x00\x00\xf2\t\r\xff\xfe\xa9-p'], 7: 1}], '0/51/1': 3, '0/51/2': 3452, '0/51/4': 0, '0/51/8': False, '0/51/65532': 0, '0/51/65533': 1, '0/51/65528': [], '0/51/65529': [0], '0/51/65531': [0, 1, 2, 4, 8, 65528, 65529, 65531, 65532, 65533], '0/60/0': 0, '0/60/1': None, '0/60/2': None, '0/60/65532': 1, '0/60/65533': 1, '0/60/65528': [], '0/60/65529': [0, 1, 2], '0/60/65531': [0, 1, 2, 65528, 65529, 65531, 65532, 65533], '0/62/0': [{1: b'\x150\x01\x01\x01$\x02\x017\x03$\x13\x02\x18&\x04\x80"\x81\'&\x05\x80%M:7\x06$\x15\x01$\x11\x1f\x18$\x07\x01$\x08\x010\tA\x04\xe2\x1ap\x1cPNl\xb0\xebf:P\x18\xfcz\xb0jWm;\x90^%\xe6\x81\x96Z\xf8\xc8kVy=\x11\xb9,\xfb\x07\xff\xb5\xeb\x047\xd4\x87U\xf5\xc2\xae\x8f\xff\xa01<l\xf6!\xe8?5\x1f\xc6\xc77\n5\x01(\x01\x18$\x02\x016\x03\x04\x02\x04\x01\x180\x04\x14\\x1b\xf2\xfc\xed\x8b\x93\xe9\xd5\xb5I\x8fs\x8a\xec\x83,\x89\xca\xea0\x05\x14\x0b\xee\xd5\xa6X\xb6)t\x19\x86\xd43\x11\xef"c\xd2\xb0R\\x180\x0b@0et\x8f\x9a4\xbb\xf6@e\xdc\x8f\x1a\x98w\xa7\x81,gz\xd4Te\xf5\x8f\xc9p\r2\x8e\xf3,W\xbc\x83\xc8\xfa\x99\x04\x15\xed/\x003\xd0\xd46$$z"C\xa5\xbd\x9d\xb1\x96J\xd0\x803W\x8d\x18', 2: b'\x150\x01\x01\x01$\x02\x017\x03$\x14\x01\x18&\x04\x80"\x81'&\x05\x80%M:7\x06$\x13\x02\x18$\x07\x01$\x08\x010\tA\x04\tQ\x93\x04\xcc\xe3FI\xe66%b\xf9\x9a\x1a\xd0\xac\x88,j#\x1f\n\xbe\xf4\xa4\xf3d\xe7\xe1l\x10\xac\xc5\xb7\x05\x87E\x9e\x9bu\xd1e\xb0\x85\xc7\xa1\xbf\x7f\xed->\x91\x8el\xf4\xc9\xe3\xde,\x0c\x7fg\x977\n5\x01)\x01\x18$\x020\x04\x14\x0b\xee\xd5\xa6X\xb6)t\x19\x86\xd43\x11\xef"c\xd2\xb0R\\0\x05\x14?M\x00\x86\x17\xa2\x9b\xbd\xac\xb6\xcb\xac\xc0\xc9\x1e7&"\xb9\x180\x0b@\x93\xe4\rr\n7|Xk\x9a\xae\x82)\xcd<o\xef\xe6\xb7\xd95P\xee\xb3"\x0f\x9fYX\xe9\x8cVb8BL"(!YgK\xd8\x0eb\xdc;\xa7\xda_\x11j/\xf3X\x1e\xa9\xa7M\x87\xb6s\x04\x18', 254: 1}], '0/62/1': [{1: b'\x04\x06\xc1\xd6]xrW\xe2j^\x87\xc9\xc4\x98%\xa0\xaf\xdf\xa6\xab\xde\xae\x19\x98\x96%\x1b?\x86\x05\x9a\x7f?\xc5\x0c\xe1\x0cN\xbe\xc1\xe8\xc9\xf0\x9f\x11hs[\xa33j\x9e\x8d\x7f\x9d\xb5lR\xd0R\xa1\x84\xcb\xa5', 2: 65521, 3: 1, 4: 31, 5: '', 254: 1}], '0/62/2': 7, '0/62/3': 1, '0/62/4': [b'\x150\x01\x01\x01$\x02\x017\x03$\x14\x01\x18&\x04\x80"\x81'&\x05\x80%M:7\x06$\x14\x01\x18$\x07\x01$\x08\x010\tA\x04\x06\xc1\xd6]xrW\xe2j^\x87\xc9\xc4\x98%\xa0\xaf\xdf\xa6\xab\xde\xae\x19\x98\x96%\x1b?\x86\x05\x9a\x7f?\xc5\x0c\xe1\x0cN\xbe\xc1\xe8\xc9\xf0\x9f\x11hs[\xa33j\x9e\x8d\x7f\x9d\xb5lR\xd0R\xa1\x84\xcb\xa57\n5\x01)\x01\x18$\x020\x04\x14?M\x00\x86\x17\xa2\x9b\xbd\xac\xb6\xcb\xac\xc0\xc9\x1e7&"\xb90\x05\x14?M\x00\x86\x17\xa2\x9b\xbd\xac\xb6\xcb\xac\xc0\xc9\x1e7&"\xb9\x180\x0b@=\x1a\xda\xe5\xf1\xf1\xbf\xf6\xc7:\x01\x97n\xda\x97\x98\x10\xff(!\xe7jXs\x11\n6\n\r\x87N\x9fM\xe1Fc_\xe2?\x87\xd6\xcb\x81\xdc\x0b\xa2\xf7\x18\xf3&i\x00\x18\xf1\n\\\xf8\x10\x82\x0f\x97\xe3Cs\x18'], '0/62/5': 1, '0/62/65532': 0, '0/62/65533': 1, '0/62/65528': [1, 3, 5, 8], '0/62/65529': [0, 2, 4, 6, 7, 9, 10, 11], '0/62/65531': [0, 1, 2, 3, 4, 5, 65528, 65529, 65531, 65532, 65533], '0/63/0': [], '0/63/1': [], '0/63/2': 8, '0/63/3': 3, '0/63/65532': 0, '0/63/65533': 1, '0/63/65528': [2, 5], '0/63/65529': [0, 1, 3, 4], '0/63/65531': [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533], '1/3/0': 0, '1/3/1': 0, '1/3/65532': 0, '1/3/65533': 4, '1/3/65528': [], '1/3/65529': [0], '1/3/65531': [0, 1, 65528, 65529, 65531, 65532, 65533], '1/4/0': 128, '1/4/65532': 1, '1/4/65533': 4, '1/4/65528': [0, 1, 2, 3], '1/4/65529': [0, 1, 2, 3, 4, 5], '1/4/65531': [0, 65528, 65529, 65531, 65532, 65533], '1/5/0': 0, '1/5/1': 0, '1/5/2': 0, '1/5/3': False, '1/5/4': 0, '1/5/65532': 0, '1/5/65533': 4, '1/5/65528': [0, 1, 2, 3, 4, 6], '1/5/65529': [0, 1, 2, 3, 4, 5, 6], '1/5/65531': [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533], '1/6/0': True, '1/6/65532': 0, '1/6/65533': 4, '1/6/65528': [], '1/6/65529': [0, 1, 2], '1/6/65531': [0, 65528, 65529, 65531, 65532, 65533], '1/29/0': [{0: 266, 1: 1}], '1/29/1': [3, 4, 5, 6, 29], '1/29/2': [], '1/29/3': [], '1/29/65532': 0, '1/29/65533': 1, '1/29/65528': [], '1/29/65529': [], '1/29/65531': [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]}, attribute_subscriptions=set()),

@Apollon77
Copy link

I think the numbers are endpointId/clusterId/attributeId ...

  • endpointIds are from the structure of the device
  • clusterIds and attributeIdsd are available in the Matter specs

I think if you really want to use the python-matter-server as a more or less "Low level approach" then you need to get the context from specs or anywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants