# Sonos Speaker Control Framework

> Sonos Speaker Control Workflow

- Skill: `leocarsons/sonos-speaker-control-framework` (Agent Skill)
- Install (CLI): `npx skillmds@latest add leocarsons/sonos-speaker-control-framework`
- Raw SKILL.md: https://api.skillmd.com/api/skills/leocarsons/sonos-speaker-control-framework/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: leocarsons (https://skillmd.com/u/leocarsons)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/leocarsons/sonos-speaker-control-framework

---

# Sonos Speaker Control Workflow

## Purpose

A conceptual framework for controlling Sonos multi-room audio systems programmatically. This workflow outlines how to discover, control, and manage Sonos speakers for home automation scenarios.

## When to Use

- Building home automation around Sonos speakers
- Integrating Sonos control into broader smart home systems
- Creating routines for multi-room audio management
- Developing voice or text-based audio control interfaces

## Prerequisites

- Sonos speakers connected to your network
- Access to Sonos control APIs or CLI tools (sonoscli)
- Basic understanding of your network topology

## Conceptual Framework

### 1. Discovery Phase

Understand what speakers exist on your network:

- Identifying speaker names and their network locations
- Mapping speaker groups and relationships
- Understanding coordinator vs. member speaker roles

### 2. Control Interfaces

CLI tools, APIs, scripted routines, or voice/text interfaces.

### 3. Common Control Patterns

**Playback**: start/resume, pause, stop, track navigation, queue management

**Volume**: absolute levels, relative adjustments, mute/unmute

**Groups**: join, separate, party mode, solo mode

**Content**: favorites, playlists, service integration

### 4. Automation Patterns

**Time-based**: morning music, scheduled playback

**Event-triggered**: context-aware playback, room transitions

## Example Scenarios

### Morning Routine
1. Identify available speakers
2. Group kitchen and living room
3. Set appropriate volume
4. Activate favorite playlist

### Party Mode
1. Discover all speakers
2. Activate coordinator party mode
3. Verify all joined
4. Start desired content

## Tips

- Consistent speaker naming
- Document IPs for unreliable discovery
- Test during low-activity periods

## Security Considerations

- Limit network access
- Use authenticated APIs
- Review integration points
