mode
Control or retrieve the play mode of a Sonos device, such as 'NORMAL', 'SHUFFLE_NOREPEAT', 'SHUFFLE', or 'REPEAT_ALL', by specifying the mode and device name.
Instructions
Get or set the play mode of a Sonos device.
Args: mode: The play mode to set (e.g., "NORMAL", "SHUFFLE_NOREPEAT", "SHUFFLE", "REPEAT_ALL"). If None, returns the current mode. name: The name of the device to set the mode for. If None, uses the current device.
Returns: str: The current play mode after the operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
mode | No | ||
name | No |
Input Schema (JSON Schema)
{
"properties": {
"mode": {
"anyOf": [
{
"enum": [
"NORMAL",
"SHUFFLE_NOREPEAT",
"SHUFFLE",
"REPEAT_ALL"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mode"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"title": "modeArguments",
"type": "object"
}