I put these three luup codes below in my scene and they are not working.
Step 1.Trigger is: When I disarm my Elk Alarm System.
Step 2.Device Actions: Turn on 2 lights and unlock 2 doors
Step 3. Also, execute the following Luup code:
luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “Say”,
{Text=“Welcome home. I hope you had a good time and a safe journey.”, Language=“en-CA”, GroupZones=“ALL”,
Volume=65, SameVolumeForAll=“true”},
48)
luup.call_action(“urn:upnp-org:serviceId:AVTransport”, “Stop”, {}, 48)
return luup.is_night() == true
The Say command works as usual but the Sonos Stop command does not…
The return luup.is_night() == true did not work.
Seems likely only one luup code is working…
What I want the Scene to do (via luup or with addition device commands perhaps run in the Advanced Editor?)
is when I Disarm my Elk Alarm system play the Welcome Say command and turn off the Sonos radio station I had playing from when I left the house.
Also only turn on the light when it is night time plus unlock my 2 entry doors.
Seems like I can do it without Pleg…
All the codes work individually in other Scenes I have created except the luup.call_action(“urn:upnp-org:serviceId:AVTransport”, “Stop”, {}, 48)
which seems like the perfect code posted in a thread by Z-Waver.
Also
When programming the Arm House Seen:
I am trying to use the advanced editor with a 30" delay after the Say Command to play a radio station.
Step 1.Trigger is: When I Arm my Elk Alarm System.
Step 2.Device Actions: Turn on 2 lights and unlock 5 doors
Step 3. Also, execute the following Luup code:
luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “Say”,
{Text=“Good Bye I will protect your house. I hope you hacve a safe journey.”, Language=“en-CA”, GroupZones=“ALL”,
Volume=65, SameVolumeForAll=“true”},
48)
How do I get Sonos from the say.mp3 to a radio station by itself?
Seems like it would work in advanced editir but I can’t find the right Play URI for the station.
I have tried many ways…
This one works in Sonos Player PAge URI Dropdown…but the x-sonosapi-stream is not a drop down option in the advanced editor under Sonos.
x-sonosapi-stream:s22368?sid=254&flags=8224&sn=0
Hope you can help!