Sonos Controller Stopped Working


#1

Evening Chaps,
I’m looking for the best solution for a toggle play / pause for Sonos from a button.

I’m happy with the piston just not how to check if it’s already playing and when t should pause or play

Any ideas?
Nick


#2

Some variation of the following will work:

If
{deviceName}'s status is not 'playing’
then
with {deviceName}
play
else
with {deviceName}
pause
endif


#3

Put this in but still no cake…


#4

Not sure if it helps but sonos showing as unavailable in smartthings, tired resetting a few times but nothing!


#5

Subtle but critical difference: Change the comparison to “is not” and the value to “playing”

Wrong: ‘Music Player 1’ status is 'not playing’
Right: ‘Music Player 1’ status is not ‘playing’

As for the unit being unavailable in SmartThings, there’s not enough information there to offer any suggestions but I would think you would need to address that first.