Skip to content

Switch & check for playbar TV input#56

Open
inopinatus wants to merge 1 commit into
gotwalt:masterfrom
inopinatus:playbar_tv
Open

Switch & check for playbar TV input#56
inopinatus wants to merge 1 commit into
gotwalt:masterfrom
inopinatus:playbar_tv

Conversation

@inopinatus

@inopinatus inopinatus commented Oct 13, 2016

Copy link
Copy Markdown

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