Sonos + Core Piston

At my office location, I am trying to do my first Piston.

I want it to check if Sonos as a music player is playing, and if not, turn it on between 2 time periods. Sonos tends to stop after 3 hours of streaming and I would like it to restart.

I am doing a comparison of IS “playing” or “stopped” or “on” and it never evaluates properly. How does one do an evaluation of something in music player?

So I have Sonos linked in to a prescence rule…

So in the living room if motion present or TV is on or sonos is playing then someone is present… Means the room lights don’t go off on us when we are splogged on the sofa…

I found the best way to monitor the sonos was to look at the sonos being stopped or paused

This works or at least works a lot of the time…

However not always…

Looking at the Sonos logs I do sometimes see that status isn’t the last log item… I.e. status, what was playing and Status are all logged in the same minute but Status isn’t the final one of the three…

Wondering if that throws SmartThings out.

Right now the Sonos hasnt been on since Sunday, SmartThings shows it as stopped but Core has kept prescence live since then.

What keyword are you using in comparison in the piston ?

Anyone ever solver this? Trying to figure out the keywords for status.