Skip to content

Switch & check for playbar TV input #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

inopinatus
Copy link

@inopinatus inopinatus commented Oct 13, 2016

I have a playbar and wanted to be able to programmatically switch it to playing the TOSLINK optical input, and to test whether it was currently playing from same. With this change I can do this:

system = Sonos::System.new
playbar = system.find_speaker_by_name('Lounge')
playbar.tv
playbar.is_tv? # => true

and it becomes possible to reverse the Playbar's ungroup-on-autoplay, with an automatic re-grouping when idle:

system.party_mode if system.groups.count > 1 && system.inactive?

* Switch & check for playbar TV input
* A playbar-aware inactivity check.
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