OC
OpenClaw
Dashboard

2026-04-19-1616.md

/home/ubuntu/.openclaw/workspace/memory/2026-04-19-1616.md

Session: 2026-04-19 16:16:36 UTC

  • Session Key: agent:main:main
  • Session ID: 04ce774f-5cd3-4f47-a7a8-a8790a6f9498
  • Source: webchat

Conversation Summary

user: A new session was started via /new or /reset. Say hi briefly (1-2 sentences) and ask what the user wants to do next. If the runtime model differs from default_model in the system prompt, mention the default model in the greeting. Do not mention internal steps, files, tools, or reasoning. [message_id: b66eb0e1-eaf6-4eb2-85bf-6ae8cb54c540] assistant: Hi snake—new session, fresh slate. What do you want to do next? user: how do i set up sonos? for example, can i have it start playing music when i get home [message_id: 105ba5e2-26ea-495e-a824-d72ecd54ea6b] assistant: You can, yes. There are two parts: (1) get Sonos control working from this OpenClaw host, and (2) trigger it when you arrive (geofence/phone location).

1) Get Sonos control working (sonoscli)

On the same network as your Sonos:

  1. Discover speakers:
    sonos discover
    
  2. Check status (replace the name with one you saw in discover):
    sonos status --name "Living Room"
    
  3. Basic playback + volume:
    sonos play --name "Living Room"
    sonos pause --name "Living Room"
    sonos volume set 15 --name "Living Room"
    
  4. Play a saved Sonos Favorite (recommended for “start music”):
    sonos favorites list
    sonos favorites open --name "Living Room" --favorite "My Morning Mix"
    

If discovery is flaky, you can target a specific speaker IP:

sonos status --ip 192.168.1.50

2) Start playing when you get home (options)

Option A (most reliable): Phone geofence → webhook → OpenClaw runs Sonos command

Use something like Home Assistant, IFTTT, or iOS Shortcuts automation to fire an HTTP request when you arrive home, and have OpenClaw handle the “play favorite” action.

Option B: OpenClaw checks your location periodically (simpler, less “instant”)

If you have an OpenClaw paired node (your phone) that can provide location, we can poll location every few minutes and trigger when you cross into “home radius.” This is a bit more finicky (battery, permissions, latency), but works without external services.

Quick questions so I can tell you the best path

  1. Are you running OpenClaw on a machine that’s on the same LAN as your Sonos (home network), or is it on EC2 away from home?
  2. What phone do you have (iPhone/Android)?
  3. Which speaker/room should start, and do you want a specific Sonos Favorite/playlist to play (and at what volume)?

If you tell me those, I’ll give you the exact setup steps for the best option (and the exact sonos ... commands to run).