I created a Sonos controller for Scriptable. In addition to Scriptable (and a Sonos speaker), the Sonos HTTP API server must be running on a computer that’s on the same network as your Sonos system. See the GitHub repository for instructions, documentation and example scripts.