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

[Tooling] Add method in python to run arbitrary commands. #37217

Open
jtrejoespinoza-grid opened this issue Jan 27, 2025 · 0 comments
Open

[Tooling] Add method in python to run arbitrary commands. #37217

jtrejoespinoza-grid opened this issue Jan 27, 2025 · 0 comments

Comments

@jtrejoespinoza-grid
Copy link

Reproduction steps / Feature

Need to add a method similar to SendCommand() but to run arbitrary commands, it could be like SendCommandByIds.

Objective

Obtain a Status of the executed command, for example a UNSUPPORTED_COMMAND 0x81 status of a disallowed command.

Example
Trying to run the Reset() command and ModifyEnabledAlarms() from Clusters.Objects.RefrigeratorAlarm but as they are disallowed and not implemented these cannot be used with the method SendCommand as it requires a ClusterCommand . In order to make them work we create some Fake implementations of the commands inside the test but this may not be the best approach when trying to scale.

It's best to create a method that allows us to run arbitrary commands from the cluster using the ids as parameters.

SendCommandByIds(self, endpointid, clusterId, commandId, * all remaining parameters as SendCommand* )

Platform

python

Platform Version(s)

No response

Type

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

No response

Anything else?

Needed for this PR.

#37108

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

No branches or pull requests

2 participants