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

Bridged devices add/remove issues #853

Open
TomCazBdx opened this issue Aug 12, 2024 · 0 comments
Open

Bridged devices add/remove issues #853

TomCazBdx opened this issue Aug 12, 2024 · 0 comments

Comments

@TomCazBdx
Copy link

Hello,

I am using python-matter-server v6.4.0 to control Matter bridged devices.
I have a strange behaviour when adding and removing bridged devices.

Here is the workflow I am doing using Postman (see json files attached):
1-connect to the websocket server
2-send a start_listening command
3-pair my bridge with one bridged device using the commission with code command
4-the pairing operation succeed and I receive a node_added event with the json. This json contains the description of the node, when I have a look to the partList of the descriptor cluster on endpoint 0 I have this and I see the endpoint for the aggregator and the endpoint for my bridged device so it is ok:

"0/29/3":[
 1,
 3
]

When I have a look to the partlist of the aggregator cluster on the endpoint 1 I have my bridged device so it is ok:

"1/29/3":[
 3
]

5- I remove my bridged device of my Matter device, I receive an endpoint_removed event with the endpoint id 3
6- I send a get_node command to retreived the updated node
7- I receive the result with the json containing the node definition, when I look to the descriptor cluster on endpoint 0 I have and I still have the endpoint id 3 which I think is a mistake:

"0/29/3": [
1,
3
]

When I have a look to the partlist of the aggregator cluster on the endpoint 1 I no longer have the endpoint id 3 which is ok

"1/29/3": [],

I think the partlist of the descriptor cluster on endpoint 0 should not contains the endpoint 3 which has been removed. What do you think about this?

image (5)

I have also noticed that if after removing the bridged device (endpoint id 3), if I add it again on my bridge with the same endpoint id I do not receive events such as node_updated or endpoint_added which I think should be sent, as I have them when I add the bridge device with another endpoint id.

When removing several endpoints (bridged devices) in a row, I receive endpoint_removed events for all the old removed endpoint not only the last one, for example if I have 3 bridged devices with endpoint id 3,4,5.

When I remove the endpoint 3 I receive:

endpoint_removed event with endpoint_id 3

Then when I remove the endpoint 4 I receive:

endpoint_removed event with endpoint_id 3
endpoint_removed event with endpoint_id 4

Then when I remove the endpoint 5 I receive:

endpoint_removed event with endpoint_id 3
endpoint_removed event with endpoint_id 4
endpoint_removed event with endpoint_id 5

Capture d #39;écran 2024-07-31 114021

afterPairing.json

afterRemoved.json

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

1 participant