phonos
Phono audio on your Sonos (among other input sources). This small script uses the node-sonos
library to make your Sonos box switch to its line-in source. It's an adapted, standalone version of the script referred in this comment. You'll need a recent Node.js runtime. Usage:
SONOS_HOST=<ip> node index.js