Commit c2189d39 authored by Samuel Elliott's avatar Samuel Elliott

Add opening the settings menu

parent 455f778f
......@@ -616,6 +616,11 @@ class TVAccessory {
this.constructor.hap.Characteristic.SleepDiscoveryMode.ALWAYS_DISCOVERABLE :
this.constructor.hap.Characteristic.SleepDiscoveryMode.NOT_DISCOVERABLE);
tv_service.getCharacteristic(this.constructor.hap.Characteristic.PowerModeSelection)
.on('set', (select, callback) => select === this.constructor.hap.Characteristic.PowerModeSelection.SHOW ?
this.remote.send('Q_MENU').then(data => callback(null, data)).catch(callback) :
callback());
tv_service.getCharacteristic(this.constructor.hap.Characteristic.RemoteKey)
.on('set', (key, callback) => this.sendRemoteKey(key).then(data => callback(undefined, data)).catch(callback));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment