iobroker.denon 1.12.1 → 1.13.0
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 +13 -2
- package/io-package.json +19 -14
- package/lib/utils.js +78 -77
- package/main.js +976 -698
- 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,9 @@ 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.0 (2022-03-19)
|
|
912
|
+
* (foxriver76) added `settings.speakerPreset`
|
|
913
|
+
|
|
903
914
|
### 1.12.1 (2022-01-03)
|
|
904
915
|
* (foxriver76) fixed missing digits in `tuner.stationName`
|
|
905
916
|
|
|
@@ -1168,7 +1179,7 @@ The adapter is tested with an DENON AVR-X1200W and a Marantz SR5009.
|
|
|
1168
1179
|
## License
|
|
1169
1180
|
The MIT License (MIT)
|
|
1170
1181
|
|
|
1171
|
-
Copyright (c) 2018-
|
|
1182
|
+
Copyright (c) 2018-2022 Moritz Heusinger <moritz.heusinger@gmail.com>
|
|
1172
1183
|
|
|
1173
1184
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1174
1185
|
of this software and associated documentation files (the "Software"), to deal
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "denon",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.13.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.13.0": {
|
|
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
|
+
},
|
|
6
18
|
"1.12.1": {
|
|
7
19
|
"en": "fixed missing digits in `tuner.stationName`",
|
|
8
20
|
"de": "Fehlende Ziffern in `tuner.stationName` behoben",
|
|
@@ -74,18 +86,6 @@
|
|
|
74
86
|
"es": "corrige la conversión faltante a db en los estados del ecualizador para zonas adicionales (arreglos # 137)",
|
|
75
87
|
"pl": "napraw brakującą konwersję do db w stanach korektora dla dodatkowych stref (poprawki # 137)",
|
|
76
88
|
"zh-cn": "修复了其他区域的均衡器状态下缺少到db的转换(修复#137)"
|
|
77
|
-
},
|
|
78
|
-
"1.10.6": {
|
|
79
|
-
"en": "we fixed some more types",
|
|
80
|
-
"de": "Wir haben einige weitere Typen behoben",
|
|
81
|
-
"ru": "мы исправили еще несколько типов",
|
|
82
|
-
"pt": "nós consertamos mais alguns tipos",
|
|
83
|
-
"nl": "we hebben nog wat meer soorten gerepareerd",
|
|
84
|
-
"fr": "nous avons corrigé d'autres types",
|
|
85
|
-
"it": "abbiamo corretto altri tipi",
|
|
86
|
-
"es": "arreglamos algunos tipos más",
|
|
87
|
-
"pl": "naprawiliśmy kilka innych typów",
|
|
88
|
-
"zh-cn": "我们修复了更多类型"
|
|
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: {}
|