Why am I finding this so incredibly difficult? I’ve got a very simple DO piston just for testing this, and I can’t quite get it to work the way I expect it to.
Basically, I’d like my Music Player to capture the state it’s in, speak some text, then restore the player to the state it was in before the piston ever began. But what ends up happening is nothing. My Music Player doesn’t even stop, it just plays what it was playing as if the piston I created didn’t even exist.
Here’s my piston:
Using SONOS PLAYBAR…
► Capture state of attributes [level, mute, status, switch, ⌂ trackUri, ⌂ model, ⌂ trackData, ⌂ trackDescription, ⌂ trackNumber, ⌂ transportUri] to local store
► Speak text “test” at volume 50 and restore
Using SONOS PLAYBAR…
► Restore state of attributes [level, mute, status, switch, ⌂ model, ⌂ trackData, ⌂ trackDescription, ⌂ trackNumber, ⌂ trackUri, ⌂ transportUri] from local store
If I remove that last Restore action, my music player will stop and speak the text I wrote in, and that’s it. But if the restore command is there, when the piston runs nothing happens.
I’ve tried various different permutations of this piston, such as creating separate “Capture” and “Restore” pistons that execute in a test piston. I’ve tried having these commands run as a single action in a single piston, I’ve tried keeping all the actions separate, still nothing.
ANY help is appreciated!
Edit: I’ve also tried using “Speak Text and Resume” in place of Restore, results are the same.