Skip to content

Commit

Permalink
Update ZpPlatform.js
Browse files Browse the repository at this point in the history
- Support Sonos Bridge (similar to Sonos Boost), see #90.
  • Loading branch information
ebaauw committed Jul 25, 2019
1 parent 1cef0cd commit a93d1fc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/ZpPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,16 @@ class ZpPlatform extends homebridgeLib.Platform {
this.log('found %d zones', Object.keys(this.zones).length)
for (const zoneName of Object.keys(this.zones).sort()) {
const zone = this.zones[zoneName]
const master = zone.zonePlayers[zone.master]
this.log(
' %s:%s zone', zone.name,
master.homeTheatre ? ' home theatre'
let caps
if (zone.master == null) {
caps = ' invisible'
} else {
const master = zone.zonePlayers[zone.master]
caps = master.homeTheatre
? ' home theatre'
: master.stereoPair ? ' stereo pair' : ''
)
}
this.log(' %s:%s zone', zone.name, caps)
}
this.log('found %d zone players', Object.keys(this.zonePlayers).length)
for (const zonePlayerName of Object.keys(this.zonePlayersByName).sort()) {
Expand Down

0 comments on commit a93d1fc

Please sign in to comment.