homebridge-denon-tv 6.2.3 → 6.2.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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/zone.js +14 -9
package/CHANGELOG.md
CHANGED
|
@@ -21,6 +21,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
21
|
- For plugin < v6.1.0 use Homebridge UI <= v5.5.0
|
|
22
22
|
- For plugin >= v6.1.0 use Homebridge UI >= v5.13.0
|
|
23
23
|
|
|
24
|
+
## [6.2.4] - (24.09.2026)
|
|
25
|
+
|
|
26
|
+
### Changes
|
|
27
|
+
|
|
28
|
+
- fix: with more than one zone configured for the same receiver, every zone overwrote the shared receiver capabilities. The Main Zone lost sound mode and picture mode support (sound mode was no longer read, so Home Assistant did not show the current sound mode) and could report the name of another zone. Each zone now works on its own copy of the receiver capabilities
|
|
29
|
+
|
|
24
30
|
## [6.2.3] - (24.09.2026)
|
|
25
31
|
|
|
26
32
|
### Changes
|
package/package.json
CHANGED
package/src/zone.js
CHANGED
|
@@ -261,10 +261,15 @@ class Zone extends EventEmitter {
|
|
|
261
261
|
|
|
262
262
|
async checkInfo(denonInfo) {
|
|
263
263
|
try {
|
|
264
|
+
// All zones of one receiver share the same denonInfo object. Keep the receiver capabilities
|
|
265
|
+
// untouched and work on a copy per zone, otherwise every zone overwrites the flags of the others
|
|
266
|
+
const deviceInfo = denonInfo.deviceInfo ??= { ...denonInfo.info };
|
|
267
|
+
const info = { ...deviceInfo };
|
|
268
|
+
|
|
264
269
|
// Capabilities
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
info.supportPictureMode = this.zoneControl === 0 && deviceInfo.supportPictureMode;
|
|
271
|
+
info.supportSoundMode = (this.zoneControl === 0 || this.zoneControl === 3) && deviceInfo.supportSoundMode;
|
|
272
|
+
info.supportFavorites = this.zoneControl < 3 && deviceInfo.supportFavorites;
|
|
268
273
|
|
|
269
274
|
// Zone capabilities
|
|
270
275
|
const keys = Object.keys(denonInfo);
|
|
@@ -274,14 +279,14 @@ class Zone extends EventEmitter {
|
|
|
274
279
|
const zone = this.zoneControl === 4 ? 0 : this.zoneControl;
|
|
275
280
|
zoneCaps = zones[zone] || {};
|
|
276
281
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
this.info =
|
|
282
|
+
info.supportShortcuts = zoneCaps.ShortcutControl?.Control === 1;
|
|
283
|
+
info.supportQuickSelect = zoneCaps.Operation?.QuickSelect?.Control === 1;
|
|
284
|
+
info.controlZone = ZoneName[this.zoneControl];
|
|
285
|
+
this.info = info;
|
|
281
286
|
|
|
282
287
|
// Success event
|
|
283
288
|
if (this.firstRun) {
|
|
284
|
-
this.emit('deviceInfo',
|
|
289
|
+
this.emit('deviceInfo', info);
|
|
285
290
|
this.firstRun = false;
|
|
286
291
|
}
|
|
287
292
|
|
|
@@ -295,7 +300,7 @@ class Zone extends EventEmitter {
|
|
|
295
300
|
2: inputsNewDevice
|
|
296
301
|
};
|
|
297
302
|
const inputs = this.getInputsFromDevice ? inputsMap[this.generation] : this.inputs;
|
|
298
|
-
const allInputs = await this.prepareInputs(denonInfo, this.generation, this.zoneControl, inputs, zoneCaps, this.getInputsFromDevice, this.getFavoritesFromDevice, this.getQuickSmartSelectFromDevice,
|
|
303
|
+
const allInputs = await this.prepareInputs(denonInfo, this.generation, this.zoneControl, inputs, zoneCaps, this.getInputsFromDevice, this.getFavoritesFromDevice, this.getQuickSmartSelectFromDevice, info.supportFavorites, info.supportShortcuts, info.supportQuickSelect);
|
|
299
304
|
|
|
300
305
|
// Emit inputs
|
|
301
306
|
this.emit('addRemoveOrUpdateInput', allInputs, false);
|