Mark,
Sorry, I didn’t read the error message carefully enough. It looks like the Meross uses a different capability than switch to control the garage door (GD). So there are a few options to get these shortcuts to control the Meross
Option 1: Create two Manual Run Routines (Scenes). One to open the GD and one to close the GD. Then duplicate the ‘test scene’ shortcut twice and rename them as appropriate (i.e. GD Open, GD Close). Edit each shortcut and change the sceneid in the dictionary with the corresponding scene id. Then edit the ST_Scene_API shortcut and change the locid with the your location id and the pat with your Personal Access Token. You can get the scene and location ids using Todd Austin’s excellent SmartThings® API Browser+
Option 2: Create an Automatic Routine that controls your GD in order to fine out what the capability and commands are for the Meross. You can use anything in the If part of the routine (I usually use time since it the 1st option). In the Then part select your Meross device and then select either open or close. Then use SmartThings® API Browser+ to examine the json created for the routine (select the Automations drop down, select the routine you just created and then select Details. The json will be shown on the right). After the If part of the json you see something like this
“commands”: [
{
“component”: “main”,
“capability”: "Merosscapability ",
“command”: "open”
}
],
With this information you should be able to change the cmdJSON in the ‘test device off’ shortcut with the Meross capability and command to something like this:
{“commands”: [{“component”: “main”,“capability”:”Merosscapability",“command”:“open”}]}
Then change the deviceid in the shortcut with the Meross device id and update the ST_Device_API with your pat
Note, I don’t have a Meross so I’m just guessing at the capability and commands
Option 3: Create of virtual Garage Door device (vGD). Create two Automatic Routines (one to open the GD, one to close the GD). Use your vGD device in the If part (If vGD turns on) and control your Meross in the Then part (Then Open GD) of each routine.
Then you can use the ‘device test off’ shortcut to control the vGD device (using either off or on in the cmdJSON), changing the deviceid to the id of the vGD
With all these options you will need two shortcuts, one to open the GD and one to close the GD
I know it’s a little convoluted to get these shortcuts to work with the Meross. It seems like option 1 would be the simplest to implement. But you’ll gain additional insight into haw ST works behind the scene the using option 2 method
If you use the option 2 method, please post the capability and command that the Meross uses for control so other users can benefit from the information
Please let me how it works out and if you have further questions