/home-audio:sleep-and-alarmsfrom home-audio
Sleep timers, bedtime fade-outs and wake-up music. Use on "stop in 30 minutes", "fade out the bedroom", "wake me with X at 7", "cancel the sleep timer".
Ships in home-audio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Overlay DIR via bash ${CLAUDE_PLUGIN_ROOT}/scripts/overlay-paths.sh dir; read
profile.env and installation.json (rooms -> player names). Run calls through the user's
secrets route if profile.env names one. A="python3 ${CLAUDE_PLUGIN_ROOT}/scripts/audioctl.py".
Resolve rooms to players by name; $A ma-players lists them. Never guess IDs.
$A sleep <minutes> -p "<room>"; 0 clears. Output gives ends_at and minutes_left.
Commands: players/sleep_timer/set {"player_id","seconds"}, /get (epoch end or null),
/clear (confirmed live, 2.10.11).
Step the volume down, then pause, then put the volume back so the next play is not silent:
read volume_level (players/get), loop players/cmd/volume_set down by ~5 every
10-20 s, players/cmd/pause, then volume_set to the saved level.
MA has no alarm command. Create an automation through the home-assistant skill
(POST /api/config/automation/config/<id>, then automation.reload):
alias: Wake-up music (<room>)
triggers: [{trigger: time, at: "07:00:00"}]
conditions: [{condition: time, weekday: [sun, mon, tue, wed, thu]}]
actions:
- action: media_player.volume_set
target: {entity_id: media_player.<room>}
data: {volume_level: 0.1}
- action: music_assistant.play_media
target: {entity_id: media_player.<room>}
data: {media_id: "<playlist or uri>", media_type: playlist, enqueue: replace}
- repeat:
count: 10
sequence:
- delay: "00:00:30"
- action: media_player.volume_up
target: {entity_id: media_player.<room>}
Show the YAML and get a yes before saving; note the automation id in the overlay
changelog.md. Weekdays follow the user's week (check the profile).
changelog.md line for each automation created.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
17 skills in this plugin
/announceSpeak a message or play a sound on one speaker, several or a group, through Music Assistant TTS or Home Assistant. Use on "announce dinner is ready", "say X in the kitchen", "tell everyone"./complementary-pluginsList and install plugins that complement home-audio: pipewire-audio. Use on "what goes with this plugin", "related plugins"./connect-serverPoint speaker clients at an audio server and wire the server into Music Assistant/HA. Use on "connect to the server", migrating backends./debugDebug home audio: silent speaker, player missing/offline, dropouts, out of sync, wrong server. Plays a 10/30/60/90 s test of known music to one speaker, several or a group. Squeezelite, Snapcast, MA, LMS./groupsGroup, sync or ungroup speakers for multi-room playback in Music Assistant, Snapcast, LMS or HA. Use on "play in two rooms"./home-assistantIntegrate home audio with Home Assistant: MA/Snapcast/Squeezebox integrations, media_player calls, TTS, automations via HA API.home-audio@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin home-audio