I have a script I would like to check if a sonos player is playing and I've tried this:
But it seems to return -1 no matter what.
What is the correct way to determine if a sonos player is playing from within a script?
Code:
hs.writelog("BathroomMusic",hs.DeviceValueByName("RINCON_000E5870EB2201400"))
What is the correct way to determine if a sonos player is playing from within a script?
Comment