So this is a bit of a hack, but it does work, and I appreciate the guidance. I was not aware that simulated switches even existed.
So the hack for my minimote is: I create 8 virtual switches, VS01-VS08 for button press 1-4 and button hold 1-4. Using button controller, I set those button press/hold events to toggle a virtual switch.
I can now use the Mood Music app on my Sonos to select a specific station or playlist, and have it be controlled by either turning the switch on or turning the switch off. (Since the minimote is toggling the switch, this kludge is needed.)
This is all holding up okay. I’m still a little unclear on why the discovery of Sonos playlists and stations is so random. If I play a station long enough, it will show up in the mood music track list sooner or later, but I don’t know how to force it.
Anyone who wants to create simulated switch can find the docs here:
I observe server errors on about 50% of times I create the switch, but it does always seem to actually get created and work properly, regardless of error message.
Thanks again for the pointer, this is much better than maintaining my own app to do this.
- Mark