Sonos announcement and start music


#1

1) Give a description of the problem
trying to set sonos announcement during certain time and start playing music from sonos queue

2) What is the expected behavior?

can’t get sonos to start music after announement
3) What is happening/not happening?

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)
(2/2/2018, 6:07:48 PM +418ms
+1ms ╔Received event [Home].time = 1517612869949 with a delay of -1531ms
+383ms ║RunTime Analysis CS > 28ms > PS > 273ms > PE > 81ms > CE
+385ms ║Runtime (38908 bytes) successfully initialized in 273ms (v0.2.102.20180116) (383ms)
+387ms ║╔Execution stage started
+448ms ║║Executed physical command [Kitchen Sonos].setLevel([38]) (43ms)
+449ms ║║Executed [Kitchen Sonos].setLevel (45ms)
+475ms ║║Executed physical command [Kitchen Sonos].play() (23ms)
+476ms ║║Executed [Kitchen Sonos].play (26ms)
+528ms ║║Executed physical command [Kitchen Sonos].nextTrack() (50ms)
+529ms ║║Executed [Kitchen Sonos].nextTrack (52ms)
+531ms ║║Condition #2 evaluated true (136ms)
+532ms ║║Condition group #1 evaluated true (state did not change) (137ms)
+535ms ║╚Execution stage complete. (148ms)
+536ms ╚Event processed successfully (536ms)Preformatted text)


#2

Unless music is already playing when the switch is turned on, I don’t believe the ‘speak and resume’ command will do anything more than speak the designated text and stop. Even then, ‘speak and resume’ on Sonos is known to unreliable as discussed here and here.

You may want to consider using ‘play track’ to play a specific track or adopt some of the strategies discussed here with regard to Spotify playlists.

I’m hopeful some of these issues will be resolved with the release on the new Sonos APK in 2018.