🎵 Sonos コントロールハブ
ハードウェアIoT · スマートホーム · スマートスピーカー
Let AI's hands reach into the physical world! Grant your agent the ability to directly control Sonos multi-room audio systems via local network — ditch the complicated app interfaces and official controllers entirely.
OpenClaw チーム
🚀 クイックインストール
ターミナルで以下のコマンドを実行してインストール:
npx clawhub install sonoscli
📊 統計概要
| ⭐ スター | ☁️ 総呼出 | 👥 アクティブユーザー | 🎯 安定バージョン |
|---|---|---|---|
| 204 | 15.6k | 450 | v0.9.1 |
🎛️ 仕組み
This skill is the first bridge connecting AI to physical hardware (Smart Home). No expensive third-party gateways needed — it runs entirely with Node.js local privileges:
- 📡 UDP Auto Device Discovery: As long as it runs on the same LAN or Wi-Fi network, the underlying driver automatically initiates multicast handshakes, scanning all online Sonos speakers and system groups in the network, and mapping a virtual topology.
- 🎚️ Sub-second Command Delivery: All commands (play/pause, volume control, track skipping) go directly to the device's internal firmware without routing through WAN or Sonos cloud. This means AI responds to human audio intents in just 50-100 milliseconds.
- 🌐 Room-level Matrix Orchestration: The toolset includes built-in zone selection. The Agent can not only control global Party Mode, but also precisely target specific bedrooms or living rooms for specialized audio control.
- 📚 Media Library Deep Integration: Supports direct browsing of LAN NAS services, streaming services like Spotify, and cross-pool resource playback queue management.
🧭 典型的なユースケース
🔔 シナリオ 1: Smart Security Alert & Broadcast Relay
Combined with other smart tool chains, when AI detects "back door opened unusually late at night" or "heavy rain approaching" via cameras (using vision capabilities) or scheduled sensors — the model immediately invokes this skill: force-removes Sonos's silent sleep mode, sets all rooms to 60% volume, and loudly announces the emergency situation.
🎭 シナリオ 2: Immersive Context-aware Music Switching
For WFH tech enthusiasts: leverage the language model to craft your ultimate workflow. Tell the Agent: "We're about to deep-focus on a long coding session." Besides enabling your editor's focus mode, the model simultaneously mounts sonoscli, sets all rooms to low volume, and auto-plays the Lo-Fi Coding white noise playlist — maximizing work ritual vibes.
💻 コマンドリファレンス
インストール後、会話を通じてAIに自律的に呼び出させるか、CLIから手動で操作をトリガーできます:
Auto-discover and list all available Sonos hardware and room groups in your home:
clawhub execute sonoscli action="discover"
Set a specific working volume for the Master Bedroom:
clawhub execute sonoscli action="volume" room="Master Bedroom" level=25
Take over the current music queue and skip to next track:
clawhub execute sonoscli action="next" room="Living Room"
clawhub execute sonoscli action="play" room="Dining Room" url="spotify:track:xxxx"
🛡️ 要件とネットワーク制限
- 🌐 Same-subnet Requirement: The tool's underlying mechanism uses UPnP and SOAP protocol encapsulation. Ensure the Agent's host (e.g., your Raspberry Pi or laptop) and all Sonos speakers are on the same virtual subnet/VLAN (cannot cross network NAT firewalls).
- ✅ Fully Offline Experience: Good news — this capability completely eliminates the nightmare of registering with Sonos's official App and requesting tokens. This means it works perfectly on a pure internal network even without internet access.
© 2026 OpenClaw. All rights reserved.
