Skip to content

feat: Set a sleep timer from the playback menu - #174

Merged
abusch merged 1 commit into
mainfrom
sleep-timer
Oct 16, 2026
Merged

abusch merged 1 commit into
mainfrom
sleep-timer

Conversation

@abusch

@abusch abusch commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Adds a sleep timer to the playback menu (.), using the sleepTimer namespace of sinuous-client 0.2.2.

  • The menu has a "Sleep timer" row, under crossfade, showing "off" or a live countdown of the time left on the selected group's timer.
  • SPACE/ENTER on it opens a picker: off, 15, 30 or 45 minutes, 1 hour, 90 minutes or 2 hours. ENTER sets the timer and goes back to the menu; ESC or q go back without changing it.
  • Each group's sleep timer is subscribed to, so timers set elsewhere, e.g. from the Sonos app, show up too. Speakers only report the time left when the timer changes, so the countdown is worked out locally, and redrawn while the menu is open.
  • The README and the help popup mention it.

Tried on a real speaker: setting a 15-minute timer showed it counting down, and cancelling it showed it off again, both as reported back by the speaker. Subscribing to the sleep timers of five speakers, including an older Play:1 and Play:5, raised no errors.

🤖 Generated with Claude Code

The menu shows the time left on the sleep timer of the selected group. Choosing
it opens a picker to turn it off, or set it to between 15 minutes and 2 hours.

Upgrades sinuous-client to 0.2.2, for its sleepTimer namespace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@abusch
abusch merged commit 1f36fe2 into main Oct 16, 2026
1 check passed
@abusch
abusch deleted the sleep-timer branch October 16, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant