homebridge-denon-tv 5.8.2 → 5.8.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "5.8.2",
4
+ "version": "5.8.4",
5
5
  "description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/mainzone.js CHANGED
@@ -105,7 +105,7 @@ class MainZone extends EventEmitter {
105
105
  this.reference = '';
106
106
  this.volume = 0;
107
107
  this.volumeDisplay = false;
108
- this.mute = true;
108
+ this.mute = false;
109
109
  this.mediaState = false;
110
110
  this.supportPictureMode = false;
111
111
  this.pictureMode = 0;
@@ -225,8 +225,8 @@ class MainZone extends EventEmitter {
225
225
  this.mqtt1 = new Mqtt({
226
226
  host: this.mqtt.host,
227
227
  port: this.mqtt.port || 1883,
228
- clientId: this.mqtt.clientId || `denon_${Math.random().toString(16).slice(3)}`,
229
- prefix: `${this.mqtt.prefix}/${this.name}`,
228
+ clientId: this.mqtt.clientId || `${this.manufacturer}_${Math.random().toString(16).slice(3)}`,
229
+ prefix: this.mqtt.prefix || `${this.manufacturer}/${this.name}`,
230
230
  user: this.mqtt.user,
231
231
  passwd: this.mqtt.passwd,
232
232
  debug: this.mqtt.debug || false
@@ -828,7 +828,7 @@ class MainZone extends EventEmitter {
828
828
  this.sensorMuteService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Mute Sensor`);
829
829
  this.sensorMuteService.getCharacteristic(Characteristic.ContactSensorState)
830
830
  .onGet(async () => {
831
- const state = this.power ? this.mute : false;
831
+ const state = this.mute;
832
832
  return state;
833
833
  });
834
834
 
package/src/zone2.js CHANGED
@@ -106,7 +106,7 @@ class Zone2 extends EventEmitter {
106
106
  this.reference = '';
107
107
  this.volume = 0;
108
108
  this.volumeDisplay = false;
109
- this.mute = true;
109
+ this.mute = false;
110
110
  this.mediaState = false;
111
111
  this.sensorVolumeState = false;
112
112
  this.sensorInputState = false;
@@ -223,8 +223,8 @@ class Zone2 extends EventEmitter {
223
223
  this.mqtt1 = new Mqtt({
224
224
  host: this.mqtt.host,
225
225
  port: this.mqtt.port || 1883,
226
- clientId: this.mqtt.clientId || `denon_${Math.random().toString(16).slice(3)}`,
227
- prefix: `${this.mqtt.prefix}/${this.name}`,
226
+ clientId: this.mqtt.clientId || `${this.manufacturer}_${Math.random().toString(16).slice(3)}`,
227
+ prefix: this.mqtt.prefix || `${this.manufacturer}/${this.name}`,
228
228
  user: this.mqtt.user,
229
229
  passwd: this.mqtt.passwd,
230
230
  debug: this.mqtt.debug || false
@@ -744,7 +744,7 @@ class Zone2 extends EventEmitter {
744
744
  this.sensorMuteService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Mute Sensor`);
745
745
  this.sensorMuteService.getCharacteristic(Characteristic.ContactSensorState)
746
746
  .onGet(async () => {
747
- const state = this.power ? this.mute : false;
747
+ const state = this.mute;
748
748
  return state;
749
749
  });
750
750
 
package/src/zone3.js CHANGED
@@ -106,7 +106,7 @@ class Zone3 extends EventEmitter {
106
106
  this.reference = '';
107
107
  this.volume = 0;
108
108
  this.volumeDisplay = false;
109
- this.mute = true;
109
+ this.mute = false;
110
110
  this.mediaState = false;
111
111
  this.sensorVolumeState = false;
112
112
  this.sensorInputState = false;
@@ -223,8 +223,8 @@ class Zone3 extends EventEmitter {
223
223
  this.mqtt1 = new Mqtt({
224
224
  host: this.mqtt.host,
225
225
  port: this.mqtt.port || 1883,
226
- clientId: this.mqtt.clientId || `denon_${Math.random().toString(16).slice(3)}`,
227
- prefix: `${this.mqtt.prefix}/${this.name}`,
226
+ clientId: this.mqtt.clientId || `${this.manufacturer}_${Math.random().toString(16).slice(3)}`,
227
+ prefix: this.mqtt.prefix || `${this.manufacturer}/${this.name}`,
228
228
  user: this.mqtt.user,
229
229
  passwd: this.mqtt.passwd,
230
230
  debug: this.mqtt.debug || false
@@ -744,7 +744,7 @@ class Zone3 extends EventEmitter {
744
744
  this.sensorMuteService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Mute Sensor`);
745
745
  this.sensorMuteService.getCharacteristic(Characteristic.ContactSensorState)
746
746
  .onGet(async () => {
747
- const state = this.power ? this.mute : false;
747
+ const state = this.mute;
748
748
  return state;
749
749
  });
750
750