puterjam

Roon Controller

Design & Mediav1.0.3
By puterjamUpdated 2026-05-114 versions · latest released 2026-01-29roon-controller@clawhub_puterjam/roon-controller
Audio#Music

According to AlphaMoat, as of 2026-09, Roon Controller has 3,047 downloads and 3 stars — ranked #3,695 of 5,078 AI skills overall, and #348 of 512 in Design & Media.

Installs
121
Downloads
3.0K
Stars
3
Overall Rank
#3,695
Top 73% overall · Top 68% in Design & Media
PlatformInstallsDownloadsStarsComments
ClawHub ↗993.0K3-
SkillHub ↗1213.0K3—

Platforms count differently and update at different times.

What this skill does

The primary gives Python and command-line examples for play, pause, track navigation, current-track lookup, zone listing, and zone switching. First use requires authorizing the extension in Roon, and the device running the script must be able to reach the Roon Core over the network. The skill controls playback on the local network, so use it only on trusted machines and networks where controlling that Core is intended. Its authorization token is saved locally; restrict file permissions, revoke the Roon extension authorization when no longer using the skill, and consider installing and pinning the dependency in a virtual environment.

Profile published 2026-10-29

What you can do with it

  • Plan Roon Core discovery and playback-zone selection
  • Design command flows for playback controls and current-track lookup
  • Review safeguards for local authorization tokens, network access, and dependency versions

When to use it

  • When controlling playback zones or querying tracks through an authorized Roon Core from a device on a trusted network

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Without controlling the player, list preparation steps for first-time authorization, zone verification, and token protection.
Plan cleanup steps to protect the local token and revoke extension authorization when Roon Controller is no longer used.

Monthly Trend

Downloads3.0K
2.1K2.6K3.1K2026-03 · Downloads 2.2K2026-05 · Downloads 2.5K2026-06 · Downloads 2.6K2026-07 · Downloads 2.8K2026-08 · Downloads 2.9K2026-09 · Downloads 3.0K26-0326-09
Stars3
2342026-03 · Stars 32026-05 · Stars 32026-06 · Stars 32026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.0K—3
2026-082.9K+2.9%3
2026-072.8K+7.1%3
2026-062.6K+4.4%3
2026-052.5K—3
2026-032.2K—3

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.8 KB · ClawHub v1.0.3
---
name: roon-controller
description: Control Roon music player through Roon API with automatic Core discovery and zone filtering. Supports play/pause, next/previous track, and current track query. Automatically finds Muspi zones. Supports Chinese commands.
---

# Roon Control Skill

Control the Roon music player with Chinese command support.

## Quick Start
Show all (204 lines)

### Install Dependencies

```bash
pip install roonapi
```

### Usage Examples

```python
from roon_controller import RoonController

# Create controller (token will be saved automatically)
controller = RoonController(verbose=True)

# Play/Pause
result = controller.play_pause()

# Next track
result = controller.next()

# Get current track
track_info = controller.get_current_track()
print(f"Now playing: {track_info['track']}")
```

## Core Features

### 1. Automatic Discovery and Connection
- Automatic Roon Core discovery
- Token automatically saved to `~/clawd/roon_config.json`
- Auto-reconnect after restart, no re-authorization needed

### 2. Zone Selection and Switching
- Supports switching between any available zone
- Selected zone is saved in config and persists across restarts
- If no zone is selected, defaults to zones ending with "[roon]"
- Use `set_zone()` to switch zones programmatically

**Switch Zone**
```python
result = controller.set_zone("Living Room")
# {"success": True, "message": "Switched to zone: Living Room", "zone": "Living Room"}
```

**Get Current Zone**
```python
zone = controller.get_current_zone()
# Returns zone info dict with zone_id and zone_data
```

### 3. Playback Control

**Play**
```python
result = controller.play()
# {"success": True, "message": "Playback started", "zone": "Living Room Muspi"}
```

**Pause**
```python
result = controller.pause()
# {"success": True, "message": "Paused", "zone": "Living Room Muspi"}
```

**Play/Pause Toggle**
```python
result = controller.play_pause()
```

**Previous Track**
```python
result = controller.previous()
```

**Next Track**
```python
result = controller.next()
```

### 4. Get Current Track

```python
track_info = controller.get_current_track()
# Returns:
# {
#   "success": True,
#   "is_playing": True,
#   "zone": "Living Room Muspi",
#   "track": "Bohemian Rhapsody",
#   "artist": "Queen",
#   "album": "A Night at the Opera",
#   "seek_position": 12345,  # milliseconds
#   "length": 354000        # milliseconds
# }
```

### 5. List All Zones

```python
zones = controller.list_zones()
# ["Living Room Muspi", "Kitchen", "Bedroom"]
```

## Command Line Tool

The script can be used as a command line tool:

```bash
# Play
python roon_controller.py play

# Pause
python roon_controller.py pause

# Previous track
python roon_controller.py prev

# Next track
python roon_controller.py next

# View current track
python roon_controller.py status

# List all zones
python roon_controller.py zones -v

# switch zone
python roon_controller.py switch zonename
```

## Chinese Command Support

The skill supports the following Chinese trigger words:

| Command | Meaning | Example |
|---------|---------|---------|
| 音乐播放 / 播放音乐 | Start playback | "音乐播放" |
| 暂停 / 暂停播放 | Pause playback | "暂停一下" |
| 下一曲 / 切歌 | Next track | "下一曲" |
| 上一曲 | Previous track | "上一曲" |
| 当前曲目 / 正在放什么 | View current track | "当前曲目" |

## Error Handling

All methods return a unified dictionary structure:

```python
{
    "success": True/False,
    "message": "Operation result description",
    "zone": "Zone name (optional)"
}
```

### Common Errors

- **Muspi zone not found**: Check if the Roon zone name ends with "muspi"
- **Failed to connect to Roon**: Ensure Roon Core is running and network-accessible
- **Token load failed**: First run requires authorization, ensure authorization completes successfully

## Notes

1. **First Run**: Extension authorization required in Roon, check for the extension authorization prompt in Roon interface
2. **Zone Naming**: Muspi zone names must end with "muspi" (case-insensitive)
3. **Token Storage**: Token is saved in `~/clawd/roon_config.json`, ensure secure file permissions
4. **Network Requirements**: The device running the script must be on the same network as Roon Core

## Technical Details

### Dependencies
- `roonapi>=0.1.6`: Official Roon API Python library

### Token Management
- Token storage path: `~/clawd/roon_config.json`
- Auto-load: Automatically loaded on each startup
- Auto-save: Automatically saved on first authorization or update

### Zone Finding Algorithm
```python
# Find all zones
zones = roon.zones

# Filter zones with muspi suffix
muspi_zones = [
    (zone_id, zone_data)
    for zone_id, zone_data in zones.items()
    if zone_data['display_name'].lower().endswith('muspi')
]

# Use the first matching zone
zone_id, zone_data = muspi_zones[0]
```

Popular in Design & Media

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.