Quick tutorial on running "loadFavoriteFull()" from Rule Machine, since it's got quite a few parameters.
I've added overloads for the method, allowing for the passing of only as many needed parameters as necessary. This means when you select "Run Custom Action" you don't have to specify ALL of the parameter available, just the ones you need. However, Rule Machine doesn't allow passing "named parameters", so you must specify them in the order they appear in the UI. This means if you want to specify "queueMode", you must first specify a "repeatMode".
First select "Run Custom Action":
Next you need to specify the parameters you want, in the order specified in the driver. You can view the order of the parameters by looking at the command button on the device driver:
So you can specify them like this in Rule Machine. First you specify the "favoriteId":
If you now specify no other parameters, it'll run this action with "repeat all", "replace", "off", "true", and "on" specified for all the other parameters (as show on the device driver UI, screenshot above).
As stated before, if you wanted to load favorite 14, and have it "append", you must first specify the "repeat mode" as that is the next parameter on the command. So to "load favorite 14 and have it append to queue", you'd need to specify 2 parameters, the repeatMode and the queueMode:
I've placed these parameters in what I think is the most logical order, based on what would likely be the most commonly desired parameters to control. I figure most people would want crossfade on, and would want to specify control over it least often, it's ordered last. Same for "autoPlay". It defaults to "autoPlay = true" since it avoids needing to tell the player to start playing. As such, it defaults to "on", and is placed second to last in the parameter list.
To specify all parameter available, add more parameters in Rule Machine like this:
Again, they must be in the order of "String favoriteId, String repeatMode, String queueMode, String shuffleMode, String autoPlay, String crossfadeMode". You can optionally omit them, but you may not skip any. So to specify "queueMode", you have to first specify "repeatMode", and you may omit anything following queueMode and it'll use the defaults.
When specifying parameters in Rule Machine, they are all "string" values, and the exact string needed can be viewed in any of the drop downs from the Device Driver UI: