homebridge-denon-tv 4.4.2 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/denon.js +7 -1
- package/src/denondevice.js +1 -1
package/package.json
CHANGED
package/src/denon.js
CHANGED
|
@@ -224,6 +224,12 @@ class DENON extends EventEmitter {
|
|
|
224
224
|
//select reference
|
|
225
225
|
const reference = zoneControl <= 2 ? input : soundMode;
|
|
226
226
|
|
|
227
|
+
//update only if value change
|
|
228
|
+
if (power === this.power && reference === this.reference && volume === this.volume && volumeDisplay === this.volumeDisplay && mute === this.mute && pictureMode === this.pictureMode && soundMode === this.soundMode) {
|
|
229
|
+
this.checkState();
|
|
230
|
+
return;
|
|
231
|
+
};
|
|
232
|
+
|
|
227
233
|
this.power = power;
|
|
228
234
|
this.reference = reference;
|
|
229
235
|
this.volume = volume;
|
|
@@ -232,7 +238,7 @@ class DENON extends EventEmitter {
|
|
|
232
238
|
this.pictureMode = pictureMode;
|
|
233
239
|
this.soundMode = soundMode;
|
|
234
240
|
|
|
235
|
-
//emit state
|
|
241
|
+
//emit state changes
|
|
236
242
|
const emitConnected = !this.connected ? this.emit('message', `Connected.`) : false;
|
|
237
243
|
this.connected = true;
|
|
238
244
|
this.emit('stateChanged', power, reference, volume, volumeDisplay, mute, pictureMode);
|
package/src/denondevice.js
CHANGED
|
@@ -83,7 +83,7 @@ class DenonDevice extends EventEmitter {
|
|
|
83
83
|
this.volumeControlType = ';';
|
|
84
84
|
this.mute = true;
|
|
85
85
|
this.mediaState = false;
|
|
86
|
-
this.inputIdentifier =
|
|
86
|
+
this.inputIdentifier = 1;
|
|
87
87
|
this.supportPictureMode = false;
|
|
88
88
|
this.pictureMode = 0;
|
|
89
89
|
this.brightness = 0;
|