Thanks @metablast.

I've been thinking about how I could allow other parameters. Would you want to create an HA automation that triggers the command, and do you want the properties of the device that triggered the automation to be selectable as command parameters? I think I could build a way to do that.