Skip to content

Commit

Permalink
Update ZpAccessory.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Mar 15, 2019
1 parent 87eac10 commit 5614cb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ZpAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ function ZpAccessory (platform, zp) {
return callback()
}
})
this.groupService.getCharacteristic(Characteristic.PowerModeSelection)
.on('set', (value, callback) => {
this.log.info('%s: power mode selection changed to %j', this.name, value)
return callback()
})
this.services.push(this.groupService)

this.televisionSpeakerService = new Service.TelevisionSpeaker(this.zp.zone + ' Speakers', 'zone')
Expand Down

0 comments on commit 5614cb7

Please sign in to comment.