Changes between Version 25 and Version 26 of WikiStart


Ignore:
Timestamp:
2013-03-06 14:57:36 (12 years ago)
Author:
lolodomo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v25 v26  
    107107{{{ 
    108108luup.call_action("urn:micasaverde-com:serviceId:Sonos1", "Say", 
    109                  {Text="Welcome Home", Language="en", Volume=50, Devices="667,668"}, 
     109                 {Text="Welcome Home", Language="en", Volume=50, GroupDevices="667,668"}, 
    110110                 666) 
    111111}}} 
    112112 
     113This action will pause the current playback, say the text, and then the playback will be resumed. 
     114 
     115By using the !GroupDevices parameter, it is even possible to activate the Text To Speech 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-say-restore model of the Say command. 
     116 
    113117Notes: 
    114118 * This service may be removed at any time, as can happen with Google services. 
    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 === 
     123This functionality is exposed declaratively through the ''Alert'' action under Advanced Scenes. 
     124The functionality is also exposed programmatically via Lua code: 
     125{{{ 
     126luup.call_action("urn:micasaverde-com:serviceId:Sonos1", "Alert", 
     127                 {URI="x-file-cifs:...", Volume=50, Duration=15, GroupDevices="667,668"}, 
     128                 666) 
     129}}} 
     130 
     131This action will pause the current playback, play the alert, and then the playback will be resumed. 
     132 
     133By 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 
     135Notes: 
     136 * Parameters not specified will default internally. (''Duration=10'', ''!GroupDevices=""'', ''Volume=nil'') By default, the volume is not set. 
    116137 
    117138