Hi
I’m developing fan control matter integration, but this cluster don’t have any commands to set speed. I would like to set speed attribute but python-matter-server don’t support any API to do it.
Similarly, I think we should have APICommand.WRITE_ATTRIBUTE
@api_command(APICommand.WRITE_ATTRIBUTE)
async def write_attribute(self, node_id: int, endpoint: int, attribute: ClusterAttributeDescriptor, timedRequestTimeoutMs: int = None, interactionTimeoutMs: int = None):
"""Write a attribute on a target node."""
LOGGER.info("Write Attributes node_id: %s", node_id)
attributes = [(endpoint, attribute)]
return await self.chip_controller.WriteAttribute(
nodeid=node_id,
attributes=attributes,
timedRequestTimeoutMs=timedRequestTimeoutMs,
interactionTimeoutMs=interactionTimeoutMs,
)