iobroker.denon 1.12.0 → 1.13.1
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/LICENSE +1 -1
- package/README.md +16 -2
- package/io-package.json +43 -38
- package/lib/utils.js +78 -77
- package/main.js +980 -699
- package/package.json +12 -9
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2018-
|
|
3
|
+
Copyright (c) 2018-2022 Moritz Heusinger <moritz.heusinger@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -797,7 +797,15 @@ Following states will be created by the adapter:
|
|
|
797
797
|
|
|
798
798
|
*Number value, which can be set to a value of info.onlinePresets. This will load the related channel.
|
|
799
799
|
This state will not get an acknowledge, no matter the command has been successful or not.*
|
|
800
|
-
|
|
800
|
+
|
|
801
|
+
* settings.speakerPreset
|
|
802
|
+
|
|
803
|
+
|Data type|Permission|
|
|
804
|
+
|:---:|:---:|
|
|
805
|
+
|number|R/W|
|
|
806
|
+
|
|
807
|
+
*Set the speaker preset if supported by the AVR. Speaker preset can be `1` or `2`.*
|
|
808
|
+
|
|
801
809
|
### Other States
|
|
802
810
|
Due to the fact that some AVRs like the DENON POA-3012CI use another logic there are some differences in the states.
|
|
803
811
|
The states which are equal to the ones listed above are: settings.powerSystem, settings.expertCommand, display.brightness
|
|
@@ -900,6 +908,12 @@ The adapter is tested with an DENON AVR-X1200W and a Marantz SR5009.
|
|
|
900
908
|
Placeholder for the next version (at the beginning of the line):
|
|
901
909
|
### __WORK IN PROGRESS__
|
|
902
910
|
-->
|
|
911
|
+
### 1.13.1 (2022-03-19)
|
|
912
|
+
* (foxriver76) added `settings.speakerPreset`
|
|
913
|
+
|
|
914
|
+
### 1.12.1 (2022-01-03)
|
|
915
|
+
* (foxriver76) fixed missing digits in `tuner.stationName`
|
|
916
|
+
|
|
903
917
|
### 1.12.0 (2022-01-02)
|
|
904
918
|
* (foxriver76) we introduce tuner states
|
|
905
919
|
* (foxriver76) performance optimizations
|
|
@@ -1165,7 +1179,7 @@ The adapter is tested with an DENON AVR-X1200W and a Marantz SR5009.
|
|
|
1165
1179
|
## License
|
|
1166
1180
|
The MIT License (MIT)
|
|
1167
1181
|
|
|
1168
|
-
Copyright (c) 2018-
|
|
1182
|
+
Copyright (c) 2018-2022 Moritz Heusinger <moritz.heusinger@gmail.com>
|
|
1169
1183
|
|
|
1170
1184
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1171
1185
|
of this software and associated documentation files (the "Software"), to deal
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "denon",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.13.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.13.1": {
|
|
7
|
+
"en": "added `settings.speakerPreset`",
|
|
8
|
+
"de": "`settings.speakerPreset` hinzugefügt",
|
|
9
|
+
"ru": "добавлен `settings.speakerPreset`",
|
|
10
|
+
"pt": "adicionado `settings.speakerPreset`",
|
|
11
|
+
"nl": "`settings.speakerPreset` toegevoegd",
|
|
12
|
+
"fr": "ajout de `settings.speakerPreset`",
|
|
13
|
+
"it": "aggiunto `settings.speakerPreset`",
|
|
14
|
+
"es": "añadido `settings.speakerPreset`",
|
|
15
|
+
"pl": "dodano `settings.speakerPreset`",
|
|
16
|
+
"zh-cn": "添加了`settings.speakerPreset`"
|
|
17
|
+
},
|
|
18
|
+
"1.13.0": {
|
|
19
|
+
"en": "added `settings.speakerPreset`",
|
|
20
|
+
"de": "`settings.speakerPreset` hinzugefügt",
|
|
21
|
+
"ru": "добавлен `settings.speakerPreset`",
|
|
22
|
+
"pt": "adicionado `settings.speakerPreset`",
|
|
23
|
+
"nl": "`settings.speakerPreset` toegevoegd",
|
|
24
|
+
"fr": "ajout de `settings.speakerPreset`",
|
|
25
|
+
"it": "aggiunto `settings.speakerPreset`",
|
|
26
|
+
"es": "añadido `settings.speakerPreset`",
|
|
27
|
+
"pl": "dodano `settings.speakerPreset`",
|
|
28
|
+
"zh-cn": "添加了`settings.speakerPreset`"
|
|
29
|
+
},
|
|
30
|
+
"1.12.1": {
|
|
31
|
+
"en": "fixed missing digits in `tuner.stationName`",
|
|
32
|
+
"de": "Fehlende Ziffern in `tuner.stationName` behoben",
|
|
33
|
+
"ru": "исправлены пропущенные цифры в `tuner.stationName`",
|
|
34
|
+
"pt": "corrigiu dígitos ausentes em `tuner.stationName`",
|
|
35
|
+
"nl": "opgeloste ontbrekende cijfers in `tuner.stationName`",
|
|
36
|
+
"fr": "correction des chiffres manquants dans `tuner.stationName`",
|
|
37
|
+
"it": "corrette cifre mancanti in `tuner.stationName`",
|
|
38
|
+
"es": "Se corrigieron los dígitos faltantes en `tuner.stationName`",
|
|
39
|
+
"pl": "naprawiono brakujące cyfry w `tuner.stationName`",
|
|
40
|
+
"zh-cn": "修复了“tuner.stationName”中丢失的数字"
|
|
41
|
+
},
|
|
6
42
|
"1.12.0": {
|
|
7
43
|
"en": "we introduce tuner states\nperformance optimizations",
|
|
8
44
|
"de": "Wir führen Tuner-Zustände ein\nLeistungsoptimierungen",
|
|
@@ -50,42 +86,6 @@
|
|
|
50
86
|
"es": "ajuste de nivel de diálogo implementado para contenido DTS (cierra # 143)\nlos nuevos puntos de datos son `settings.dialogLevelAdjust`,` settings.dialogLevel`, `settings.dialogControl`",
|
|
51
87
|
"pl": "zaimplementowana regulacja poziomu dialogów dla zawartości DTS (zamyka #143)\nnowe punkty danych to `settings.dialogLevelAdjust`, `settings.dialogLevel`, `settings.dialogControl`",
|
|
52
88
|
"zh-cn": "实现了 DTS 内容的对话级别调整(关闭 #143)\n新数据点是`settings.dialogLevelAdjust`、`settings.dialogLevel`、`settings.dialogControl`"
|
|
53
|
-
},
|
|
54
|
-
"1.10.7": {
|
|
55
|
-
"en": "fix missing conversion to db on equalizer states for additional zones (fixes #137)",
|
|
56
|
-
"de": "Behebung der fehlenden Konvertierung in db bei Equalizer-Zuständen für zusätzliche Zonen (Fixes # 137)",
|
|
57
|
-
"ru": "исправить отсутствующее преобразование в db в состояниях эквалайзера для дополнительных зон (исправления # 137)",
|
|
58
|
-
"pt": "corrigir a falta de conversão para db nos estados do equalizador para zonas adicionais (correções # 137)",
|
|
59
|
-
"nl": "ontbrekende conversie naar db op equalizer-statussen voor extra zones repareren (fix # 137)",
|
|
60
|
-
"fr": "correction de la conversion manquante en db sur les états de l'égaliseur pour des zones supplémentaires (corrections # 137)",
|
|
61
|
-
"it": "corretta la conversione mancante in db negli stati dell'equalizzatore per zone aggiuntive (correzioni # 137)",
|
|
62
|
-
"es": "corrige la conversión faltante a db en los estados del ecualizador para zonas adicionales (arreglos # 137)",
|
|
63
|
-
"pl": "napraw brakującą konwersję do db w stanach korektora dla dodatkowych stref (poprawki # 137)",
|
|
64
|
-
"zh-cn": "修复了其他区域的均衡器状态下缺少到db的转换(修复#137)"
|
|
65
|
-
},
|
|
66
|
-
"1.10.6": {
|
|
67
|
-
"en": "we fixed some more types",
|
|
68
|
-
"de": "Wir haben einige weitere Typen behoben",
|
|
69
|
-
"ru": "мы исправили еще несколько типов",
|
|
70
|
-
"pt": "nós consertamos mais alguns tipos",
|
|
71
|
-
"nl": "we hebben nog wat meer soorten gerepareerd",
|
|
72
|
-
"fr": "nous avons corrigé d'autres types",
|
|
73
|
-
"it": "abbiamo corretto altri tipi",
|
|
74
|
-
"es": "arreglamos algunos tipos más",
|
|
75
|
-
"pl": "naprawiliśmy kilka innych typów",
|
|
76
|
-
"zh-cn": "我们修复了更多类型"
|
|
77
|
-
},
|
|
78
|
-
"1.10.5": {
|
|
79
|
-
"en": "we fixed some datapoints having wrong types or wrong state values set (fixes #130)",
|
|
80
|
-
"de": "Wir haben einige Datenpunkte mit falschen Typen oder falschen Statuswerten behoben (Fixes # 130).",
|
|
81
|
-
"ru": "мы исправили некоторые точки данных, имеющие неправильные типы или неверные значения состояния (исправления # 130)",
|
|
82
|
-
"pt": "corrigimos alguns pontos de dados com tipos errados ou valores de estado incorretos definidos (correções # 130)",
|
|
83
|
-
"nl": "we hebben enkele datapunten gerepareerd met verkeerde typen of verkeerde statuswaarden ingesteld (fixes # 130)",
|
|
84
|
-
"fr": "nous avons corrigé certains points de données ayant des types incorrects ou des valeurs d'état incorrectes (correctifs # 130)",
|
|
85
|
-
"it": "abbiamo corretto alcuni datapoint con tipi errati o valori di stato errati impostati (correzioni # 130)",
|
|
86
|
-
"es": "arreglamos algunos puntos de datos que tenían tipos incorrectos o valores de estado incorrectos establecidos (arreglos # 130)",
|
|
87
|
-
"pl": "naprawiliśmy niektóre punkty danych z niewłaściwymi typami lub ustawionymi nieprawidłowymi wartościami stanu (poprawki # 130)",
|
|
88
|
-
"zh-cn": "我们修复了某些类型错误或状态值设置错误的数据点(修复#130)"
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"title": "DENON AVR",
|
|
@@ -132,7 +132,12 @@
|
|
|
132
132
|
"loglevel": "info",
|
|
133
133
|
"type": "multimedia",
|
|
134
134
|
"connectionType": "local",
|
|
135
|
-
"dataSource": "push"
|
|
135
|
+
"dataSource": "push",
|
|
136
|
+
"dependencies": [
|
|
137
|
+
{
|
|
138
|
+
"js-controller": ">=3.3.0"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
136
141
|
},
|
|
137
142
|
"native": {
|
|
138
143
|
"ip": "",
|
package/lib/utils.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* @param {Object} stateNames key value pair of states
|
|
6
6
|
* @param {string|number} state state key or value which will be matched
|
|
7
7
|
*/
|
|
8
|
-
function decodeState(stateNames, state) {
|
|
8
|
+
function decodeState(stateNames, state) {
|
|
9
|
+
// decoding for e. g. selectInput --> Input: Key (when ascending integer) or Value Output: Value
|
|
9
10
|
const stateArray = Object.keys(stateNames).map(key => stateNames[key]); // returns stateNames[key]
|
|
10
11
|
for (const i in stateArray) {
|
|
11
12
|
if (state.toString().toUpperCase() === stateArray[i].toUpperCase() || i.toString() === state.toString()) {
|
|
@@ -193,30 +194,30 @@ const commonCommands = [
|
|
|
193
194
|
write: true,
|
|
194
195
|
read: true,
|
|
195
196
|
states: {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
197
|
+
0: 'PHONO',
|
|
198
|
+
1: 'CD',
|
|
199
|
+
2: 'TUNER',
|
|
200
|
+
3: 'DVD',
|
|
201
|
+
4: 'BD',
|
|
202
|
+
5: 'TV',
|
|
203
|
+
6: 'SAT/CBL',
|
|
204
|
+
7: 'MPLAY',
|
|
205
|
+
8: 'GAME',
|
|
206
|
+
9: 'NET',
|
|
207
|
+
10: 'SPOTIFY',
|
|
208
|
+
11: 'LASTFM',
|
|
209
|
+
12: 'IRADIO',
|
|
210
|
+
13: 'SERVER',
|
|
211
|
+
14: 'FAVORITES',
|
|
212
|
+
15: 'AUX1',
|
|
213
|
+
16: 'AUX2',
|
|
214
|
+
17: 'AUX3',
|
|
215
|
+
18: 'AUX4',
|
|
216
|
+
19: 'AUX5',
|
|
217
|
+
20: 'AUX6',
|
|
218
|
+
21: 'AUX7',
|
|
219
|
+
22: 'BT',
|
|
220
|
+
23: 'USB'
|
|
220
221
|
}
|
|
221
222
|
},
|
|
222
223
|
native: {}
|
|
@@ -705,27 +706,27 @@ const commonCommands = [
|
|
|
705
706
|
write: true,
|
|
706
707
|
read: true,
|
|
707
708
|
states: {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
709
|
+
0: 'STEREO',
|
|
710
|
+
1: 'VIRTUAL',
|
|
711
|
+
2: 'VIDEO GAME',
|
|
712
|
+
3: 'MCH STEREO',
|
|
713
|
+
4: 'DTS SURROUND',
|
|
714
|
+
5: 'DOLBY DIGITAL',
|
|
715
|
+
6: 'MOVIE',
|
|
716
|
+
7: 'MUSIC',
|
|
717
|
+
8: 'DIRECT',
|
|
718
|
+
9: 'PURE DIRECT',
|
|
719
|
+
10: 'AUTO',
|
|
720
|
+
11: 'GAME',
|
|
721
|
+
12: 'AURO3D',
|
|
722
|
+
13: 'AURO2DSURR',
|
|
723
|
+
14: 'WIDE SCREEN',
|
|
724
|
+
15: 'SUPER STADIUM',
|
|
725
|
+
16: 'ROCK ARENA',
|
|
726
|
+
17: 'JAZZ CLUB',
|
|
727
|
+
18: 'CLASSIC CONCERT',
|
|
728
|
+
19: 'MONO MOVIE',
|
|
729
|
+
20: 'MATRIX'
|
|
729
730
|
}
|
|
730
731
|
},
|
|
731
732
|
native: {}
|
|
@@ -747,7 +748,7 @@ const commonCommands = [
|
|
|
747
748
|
type: 'state',
|
|
748
749
|
common: {
|
|
749
750
|
name: 'Subwoofer Level State',
|
|
750
|
-
|
|
751
|
+
desc: 'Subwoofer Level State',
|
|
751
752
|
role: 'switch',
|
|
752
753
|
type: 'boolean',
|
|
753
754
|
write: true,
|
|
@@ -804,11 +805,11 @@ const commonCommands = [
|
|
|
804
805
|
write: true,
|
|
805
806
|
read: true,
|
|
806
807
|
states: {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
808
|
+
0: 'OFF',
|
|
809
|
+
1: 'AUDYSSEY',
|
|
810
|
+
2: 'BYP.LR',
|
|
811
|
+
3: 'FLAT',
|
|
812
|
+
4: 'MANUAL'
|
|
812
813
|
}
|
|
813
814
|
},
|
|
814
815
|
native: {}
|
|
@@ -823,10 +824,10 @@ const commonCommands = [
|
|
|
823
824
|
write: true,
|
|
824
825
|
read: true,
|
|
825
826
|
states: {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
0: 'OFF',
|
|
828
|
+
1: 'LIT',
|
|
829
|
+
2: 'MED',
|
|
830
|
+
3: 'HEV'
|
|
830
831
|
}
|
|
831
832
|
},
|
|
832
833
|
native: {}
|
|
@@ -842,10 +843,10 @@ const commonCommands = [
|
|
|
842
843
|
read: true,
|
|
843
844
|
unit: 'dB',
|
|
844
845
|
states: {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
846
|
+
0: '0',
|
|
847
|
+
5: '5',
|
|
848
|
+
10: '10',
|
|
849
|
+
15: '15'
|
|
849
850
|
}
|
|
850
851
|
},
|
|
851
852
|
native: {}
|
|
@@ -1117,10 +1118,10 @@ const usCommandsZone = [
|
|
|
1117
1118
|
write: true,
|
|
1118
1119
|
read: true,
|
|
1119
1120
|
states: {
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1121
|
+
0: 'BUS L',
|
|
1122
|
+
1: 'BUS R',
|
|
1123
|
+
2: 'BUS M',
|
|
1124
|
+
3: 'AUX'
|
|
1124
1125
|
}
|
|
1125
1126
|
},
|
|
1126
1127
|
native: {}
|
|
@@ -1135,10 +1136,10 @@ const usCommandsZone = [
|
|
|
1135
1136
|
write: true,
|
|
1136
1137
|
read: true,
|
|
1137
1138
|
states: {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1139
|
+
0: 'BUS L',
|
|
1140
|
+
1: 'BUS R',
|
|
1141
|
+
2: 'BUS M',
|
|
1142
|
+
3: 'AUX'
|
|
1142
1143
|
}
|
|
1143
1144
|
},
|
|
1144
1145
|
native: {}
|
|
@@ -1153,8 +1154,8 @@ const usCommandsZone = [
|
|
|
1153
1154
|
write: true,
|
|
1154
1155
|
read: true,
|
|
1155
1156
|
states: {
|
|
1156
|
-
|
|
1157
|
-
|
|
1157
|
+
0: 'NORMAL',
|
|
1158
|
+
1: 'BRIDGED'
|
|
1158
1159
|
}
|
|
1159
1160
|
},
|
|
1160
1161
|
native: {}
|
|
@@ -1193,10 +1194,10 @@ const usCommandsZone = [
|
|
|
1193
1194
|
write: true,
|
|
1194
1195
|
read: true,
|
|
1195
1196
|
states: {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1197
|
+
0: 'Constant',
|
|
1198
|
+
1: 'Trigger in',
|
|
1199
|
+
2: 'Audio signal',
|
|
1200
|
+
3: 'Off'
|
|
1200
1201
|
}
|
|
1201
1202
|
},
|
|
1202
1203
|
native: {}
|
|
@@ -1238,9 +1239,9 @@ const usCommands = [
|
|
|
1238
1239
|
write: true,
|
|
1239
1240
|
read: true,
|
|
1240
1241
|
states: {
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1242
|
+
0: 'Power Button',
|
|
1243
|
+
1: 'Master Trigger',
|
|
1244
|
+
2: 'On Line'
|
|
1244
1245
|
}
|
|
1245
1246
|
},
|
|
1246
1247
|
native: {}
|