Music Service Playback
Control Sonos locally through one CLI across linked services such as Spotify, Apple Music, NetEase Cloud Music, and other ready playback paths on your runtime.
LOCAL-FIRST SONOS CONTROL
Run music, TTS, queue recovery, and service diagnostics from a local bot, CLI, or automation node on the same LAN as your speakers.
What It Does
Control Sonos locally through one CLI across linked services such as Spotify, Apple Music, NetEase Cloud Music, and other ready playback paths on your runtime.
Insert TTS announcements or short news briefs, then return to music using the stable queue-insert path and recovery tooling.
Use setup, doctor, status, queue, and service probes to understand auth readiness, transport state, metadata accuracy, and queue health before acting.
Quick Start
ZoneFoundry works best on a Mac, Windows PC, NAS, mini PC, Raspberry Pi, or Docker host that stays on the same network as Sonos.
go install github.com/kisssam6886/zonefoundry/cmd/zf@latest
zf setup --format json
zf config set defaultRoom "Living Room"
zf play music "Adele" --service "Apple Music" --format json
Core Paths
zf status --name "Living Room" --format jsonzf queue list --format jsonzf queue prune --format jsonzf group rebuild --name "Living Room" --via "Bedroom"zf service list --format jsonzf doctor service --service "Apple Music" --query "Adele" --format jsonzf play music "Sammi Cheng" --service "QQ音乐" --enqueue --format jsonzf say "One-minute news brief" --name "Living Room" --mode queue-insert --format json