Skip to content

Commit 6fe9823

Browse files
committed
chore: release v1.10.6
we fixed some more types
1 parent a6332e4 commit 6fe9823

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ The adapter is tested with an DENON AVR-X1200W and a Marantz SR5009.
837837
### __WORK IN PROGRESS__
838838
-->
839839
840+
### 1.10.6 (2021-05-03)
841+
* (foxriver76) we fixed some more types
842+
840843
### 1.10.5 (2021-05-02)
841844
* (foxriver76) we fixed some datapoints having wrong types or wrong state values set (fixes #130)
842845

io-package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
{
22
"common": {
33
"name": "denon",
4-
"version": "1.10.5",
4+
"version": "1.10.6",
55
"news": {
6+
"1.10.6": {
7+
"en": "we fixed some more types",
8+
"de": "Wir haben einige weitere Typen behoben",
9+
"ru": "мы исправили еще несколько типов",
10+
"pt": "nós consertamos mais alguns tipos",
11+
"nl": "we hebben nog wat meer soorten gerepareerd",
12+
"fr": "nous avons corrigé d'autres types",
13+
"it": "abbiamo corretto altri tipi",
14+
"es": "arreglamos algunos tipos más",
15+
"pl": "naprawiliśmy kilka innych typów",
16+
"zh-cn": "我们修复了更多类型"
17+
},
618
"1.10.5": {
719
"en": "we fixed some datapoints having wrong types or wrong state values set (fixes #130)",
820
"de": "Wir haben einige Datenpunkte mit falschen Typen oder falschen Statuswerten behoben (Fixes # 130).",
@@ -230,18 +242,6 @@
230242
"es": "corregir para detectar DENON Ceol",
231243
"pl": "naprawić, aby wykryć DENON Ceol",
232244
"zh-cn": "修复以检测DENON Ceol"
233-
},
234-
"1.5.0": {
235-
"en": "support of DENON POA-3012CI and similar AVRs and create db volumes everytime and added channel volume for zone 2 and zone 3 and other optimizations",
236-
"de": "Unterstützung von DENON POA-3012CI und ähnlichen AVRs und erstelle jedes Mal dB-Volumes sowie zusätzliches Kanalvolumen für Zone 2 und Zone 3 und andere Optimierungen",
237-
"ru": "поддержка DENON POA-3012CI и аналогичных AVR и создание томов дБ каждый раз, добавление объема канала для зоны 2 и зоны 3 и другие оптимизации",
238-
"pt": "suporte de DENON POA-3012CI e AVRs semelhantes e criar volumes de db toda vez e adicionar volume de canal para zona 2 e zona 3 e outras otimizações",
239-
"nl": "ondersteuning van DENON POA-3012CI en vergelijkbare AVR's en creëer dagelijks db-volumes en voegde kanaalvolume toe voor zone 2 en zone 3 en andere optimalisaties",
240-
"fr": "prise en charge de DENON POA-3012CI et d’AVR similaires et création permanente de volumes de base de données et d’ajout de volume de canal pour les zones 2 et 3 et autres optimisations",
241-
"it": "supporto di DENON POA-3012CI e AVR simili e creazione di volumi db ogni volta e volume del canale aggiunto per zona 2 e zona 3 e altre ottimizzazioni",
242-
"es": "soporte de DENON POA-3012CI y AVR similares y crear volúmenes db cada vez y volumen de canal agregado para las zonas 2 y 3 y otras optimizaciones",
243-
"pl": "obsługa DENON POA-3012CI i podobnych AVR-ów oraz tworzenie woluminów bazowych za każdym razem i dodawanie woluminów kanału dla strefy 2 i strefy 3 oraz inne optymalizacje",
244-
"zh-cn": "支持DENON POA-3012CI和类似的AVR并每次创建数据库卷并为区域2和区域3以及其他优化添加通道卷"
245245
}
246246
},
247247
"title": "DENON AVR",
@@ -332,7 +332,7 @@
332332
"common": {
333333
"name": "Display brightness",
334334
"role": "state",
335-
"type": "number",
335+
"type": "string",
336336
"write": true,
337337
"read": true,
338338
"states": {

main.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,16 +1258,13 @@ async function handleResponse(data) {
12581258
}
12591259
return;
12601260
} else if (command.startsWith('VSVPM')) {
1261+
const processingMode = data.substring(4);
12611262

12621263
if (!multiMonitor) { // make sure that state exists
12631264
await createMonitorState();
12641265
}
12651266

1266-
const obj = await adapter.getObjectAsync('settings.videoProcessingMode');
1267-
1268-
const processingModeNumber = Object.values(obj.common.states).indexOf(data.substring(4));
1269-
1270-
adapter.setState('settings.videoProcessingMode', processingModeNumber, true);
1267+
adapter.setState('settings.videoProcessingMode', processingMode, true);
12711268
return;
12721269
} else if (command.startsWith('PV') && command.length > 2) {
12731270
const pictureMode = data.substring(1);
@@ -1661,12 +1658,12 @@ async function createZone(zone) {
16611658
native: {}
16621659
}));
16631660

1664-
promises.push(adapter.setObjectNotExistsAsync(`zone${zone}.selectInput`, {
1661+
promises.push(adapter.extendObjectAsync(`zone${zone}.selectInput`, {
16651662
type: 'state',
16661663
common: {
16671664
name: `Zone ${zone} Select input`,
16681665
role: 'media.input',
1669-
type: 'number',
1666+
type: 'string',
16701667
write: true,
16711668
read: true,
16721669
states: {
@@ -1697,7 +1694,7 @@ async function createZone(zone) {
16971694
}
16981695
},
16991696
native: {}
1700-
}));
1697+
}, {preserve: {common: ['name']}}));
17011698

17021699
promises.push(adapter.setObjectNotExistsAsync(`zone${zone}.muteIndicator`, {
17031700
type: 'state',
@@ -2024,12 +2021,12 @@ async function createMonitorState() {
20242021
native: {}
20252022
}));
20262023

2027-
promises.push(adapter.setObjectNotExistsAsync('settings.videoProcessingMode', {
2024+
promises.push(adapter.extendObjectAsync('settings.videoProcessingMode', {
20282025
type: 'state',
20292026
common: {
20302027
name: 'Video processing mode',
20312028
role: 'video.processingMode',
2032-
type: 'number',
2029+
type: 'string',
20332030
write: true,
20342031
read: true,
20352032
states: {
@@ -2039,7 +2036,7 @@ async function createMonitorState() {
20392036
}
20402037
},
20412038
native: {}
2042-
}));
2039+
}, {preserve: {common: ['name']}}));
20432040
try {
20442041
await Promise.all(promises);
20452042
if (!multiMonitor) {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iobroker.denon",
3-
"version": "1.10.5",
3+
"version": "1.10.6",
44
"engines": {
55
"node": ">=10.0.0"
66
},

0 commit comments

Comments
 (0)