1) Give a description of the problem
I’m trying to figure out how to properly continue playing music on my speakers (Google Home) after a TTS notification has been sent to it. I have my Google Home devices showing up at SmartThing devices (including the audio groups I’ve set up). I can properly send notifications to my speakers (using node.js logic) but, if there is music playing on the speakers, it never resumes even if I have “Speak Text and Resume” selected. I’ve also tried with “Speak Text and Restore” (without the attribute trick noted in the next paragraph).
I found https://community.smartthings.com/t/capture-and-restore-music-player/73555/30 which suggested to save attributes to a local variable, speak text, restore attributes. However, I’m not sure how to properly set this up in webCoRE. The screenshot below is my first stab at it. I’m hoping the experts here can correct my mistakes.
2) What is the expected behavior?
If playing music on the speaker defined and the event fires to send a TTS notification, I would like the music playing to resume where it left off.
3) What is happening/not happening?
Event fires, TTS happens as expected, but music does not continue. Logs indicate a command cannot be found.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
12/23/2017, 5:33:10 PM +652ms
+1ms ╔Received event [Contact Sensor 2t].contact = closed with a delay of 142ms
+160ms ╚Event processed successfully (160ms)
12/23/2017, 5:32:55 PM +97ms
+0ms ╔Received event [Home].time = 1514079176174 with a delay of -1078ms
+280ms ║Could not find a command to set attribute 'status' to value 'Ready to cast'
+296ms ║Could not find a command to set attribute 'trackData' to value '{}'
+306ms ║Could not find a command to set attribute 'trackDescription' to value 'Ready to cast
+306ms ║--'
+349ms ╚Event processed successfully (349ms)
12/23/2017, 5:32:43 PM +803ms
+0ms ╔Received event [Contact Sensor 2].contact = open with a delay of 61ms
+2375ms ║Setting up scheduled job for Sat, Dec 23 2017 @ 5:32:56 PM PST (in 9.997s)
+2383ms ╚Event processed successfully (2383ms)
12/23/2017, 5:32:29 PM +69ms
+1ms ╔Starting piston... (v0.2.100.20171211)
+319ms ║Subscribing to Contact Sensor 2.contact...
+447ms ╚Piston successfully started (446ms)