The requirement to flip between mono and stereo probably means you have to create 2 zones (one for mono, one for stereo) and then write something (e.g. in python) which makes the following MCWS calls in response to the relevant gpio pin state change
- get the current playlist (MCWS/v1/Playback/Playlist)
- stop playback (MCWS/v1/Playback/Stop)
- change active zone (MCWS/v1/Playback/SetZone)
- set the playlist (MCWS/v1/Playback/SetPlaylist)
- start playback (MCWS/v1/Playback/Play)