You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Reproduction steps / Feature
Need to add a method similar to
SendCommand()
but to run arbitrary commands, it could be likeSendCommandByIds
.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
The text was updated successfully, but these errors were encountered: