115 | | * Parameters not specified will default internally. (''Language=en'', ''Devices=""'', ''Volume=50'') |
| 119 | * Parameters not specified will default internally. (''Language=en'', ''!GroupDevices=""'', ''Volume=nil'') By default, the volume is not set. |
| 120 | |
| 121 | |
| 122 | === Making a Sonos play an alert message === |
| 123 | This functionality is exposed declaratively through the ''Alert'' action under Advanced Scenes. |
| 124 | The functionality is also exposed programmatically via Lua code: |
| 125 | {{{ |
| 126 | luup.call_action("urn:micasaverde-com:serviceId:Sonos1", "Alert", |
| 127 | {URI="x-file-cifs:...", Volume=50, Duration=15, GroupDevices="667,668"}, |
| 128 | 666) |
| 129 | }}} |
| 130 | |
| 131 | This action will pause the current playback, play the alert, and then the playback will be resumed. |
| 132 | |
| 133 | By using the !GroupDevices parameter, it is even possible to play the alert on several Sonos zones at the same time. This parameter represents a CSV list of deviceId's of other Sonos units that should be included during the save-play-restore model of the Alert command. |
| 134 | |
| 135 | Notes: |
| 136 | * Parameters not specified will default internally. (''Duration=10'', ''!GroupDevices=""'', ''Volume=nil'') By default, the volume is not set. |