homebridge-tasmota-control 1.6.15-beta.7 → 1.6.15-beta.9
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/config.schema.json +17 -5
- package/package.json +1 -1
- package/src/constants.js +3 -1
- package/src/mielhvac.js +20 -10
package/config.schema.json
CHANGED
|
@@ -562,11 +562,17 @@
|
|
|
562
562
|
{
|
|
563
563
|
"title": "VANE H LEFT",
|
|
564
564
|
"enum": [
|
|
565
|
-
|
|
565
|
+
10
|
|
566
566
|
]
|
|
567
567
|
},
|
|
568
568
|
{
|
|
569
569
|
"title": "VANE H LEFT MIDDLE",
|
|
570
|
+
"enum": [
|
|
571
|
+
11
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"title": "VANE H LEFT CENTER",
|
|
570
576
|
"enum": [
|
|
571
577
|
12
|
|
572
578
|
]
|
|
@@ -578,29 +584,35 @@
|
|
|
578
584
|
]
|
|
579
585
|
},
|
|
580
586
|
{
|
|
581
|
-
"title": "VANE H RIGHT
|
|
587
|
+
"title": "VANE H RIGHT",
|
|
582
588
|
"enum": [
|
|
583
589
|
14
|
|
584
590
|
]
|
|
585
591
|
},
|
|
586
592
|
{
|
|
587
|
-
"title": "VANE H RIGHT",
|
|
593
|
+
"title": "VANE H RIGHT MIDDLE",
|
|
588
594
|
"enum": [
|
|
589
595
|
15
|
|
590
596
|
]
|
|
591
597
|
},
|
|
592
598
|
{
|
|
593
|
-
"title": "VANE H
|
|
599
|
+
"title": "VANE H RIGHT CENTER",
|
|
594
600
|
"enum": [
|
|
595
601
|
16
|
|
596
602
|
]
|
|
597
603
|
},
|
|
598
604
|
{
|
|
599
|
-
"title": "VANE H
|
|
605
|
+
"title": "VANE H SPLIT",
|
|
600
606
|
"enum": [
|
|
601
607
|
17
|
|
602
608
|
]
|
|
603
609
|
},
|
|
610
|
+
{
|
|
611
|
+
"title": "VANE H SWING",
|
|
612
|
+
"enum": [
|
|
613
|
+
18
|
|
614
|
+
]
|
|
615
|
+
},
|
|
604
616
|
{
|
|
605
617
|
"title": "VANE V AUTO",
|
|
606
618
|
"enum": [
|
package/package.json
CHANGED
package/src/constants.js
CHANGED
|
@@ -56,9 +56,11 @@ export const MiElHVAC = {
|
|
|
56
56
|
"SetSwingH": {
|
|
57
57
|
"left": "HVACSetSwingH%20left",
|
|
58
58
|
"left_middle": "HVACSetSwingH%20left_middle",
|
|
59
|
+
"left_center": "HVACSetSwingH%20left_center",
|
|
59
60
|
"center": "HVACSetSwingH%20center",
|
|
60
|
-
"right_middle": "HVACSetSwingH%20right_middle",
|
|
61
61
|
"right": "HVACSetSwingH%20right",
|
|
62
|
+
"right_middle": "HVACSetSwingH%20right_middle",
|
|
63
|
+
"right_center": "HVACSetSwingH%20right_center",
|
|
62
64
|
"split": "HVACSetSwingH%20split",
|
|
63
65
|
"swing": "HVACSetSwingH%20swing",
|
|
64
66
|
},
|
package/src/mielhvac.js
CHANGED
|
@@ -206,6 +206,12 @@ class MiElHvac extends EventEmitter {
|
|
|
206
206
|
|
|
207
207
|
//mielhvac
|
|
208
208
|
const miElHvac = statusSns.MiElHVAC ?? {};
|
|
209
|
+
|
|
210
|
+
if (!miElHvac) {
|
|
211
|
+
this.emit('warn', "Empty data received");
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
209
215
|
const power = miElHvac.Power === 'on' ? 1 : 0;
|
|
210
216
|
const roomTemperature = miElHvac.Temperature ?? null;
|
|
211
217
|
const outdoorTemperature = miElHvac.OutdoorTemperature ?? null;
|
|
@@ -470,13 +476,15 @@ class MiElHvac extends EventEmitter {
|
|
|
470
476
|
};
|
|
471
477
|
|
|
472
478
|
const vaneHMap = {
|
|
473
|
-
|
|
474
|
-
|
|
479
|
+
10: 'left',
|
|
480
|
+
11: 'left_middle',
|
|
481
|
+
12: 'left_center',
|
|
475
482
|
13: 'center',
|
|
476
|
-
14: '
|
|
477
|
-
15: '
|
|
478
|
-
16: '
|
|
479
|
-
17: '
|
|
483
|
+
14: 'right',
|
|
484
|
+
15: 'right_middle',
|
|
485
|
+
16: 'right_center',
|
|
486
|
+
17: 'split',
|
|
487
|
+
18: 'swing',
|
|
480
488
|
};
|
|
481
489
|
|
|
482
490
|
const vaneVMap = {
|
|
@@ -1055,13 +1063,15 @@ class MiElHvac extends EventEmitter {
|
|
|
1055
1063
|
5: () => getCommand('SetMode', 'auto'),
|
|
1056
1064
|
|
|
1057
1065
|
// Horizontal Swing
|
|
1058
|
-
|
|
1059
|
-
|
|
1066
|
+
10: () => getCommand('SetSwingH', 'left'),
|
|
1067
|
+
11: () => getCommand('SetSwingH', 'left_middle'),
|
|
1068
|
+
12: () => getCommand('SetSwingH', 'left_center'),
|
|
1060
1069
|
13: () => getCommand('SetSwingH', 'center'),
|
|
1061
1070
|
14: () => getCommand('SetSwingH', 'right_middle'),
|
|
1062
1071
|
15: () => getCommand('SetSwingH', 'right'),
|
|
1063
|
-
16: () => getCommand('SetSwingH', '
|
|
1064
|
-
17: () => getCommand('SetSwingH', '
|
|
1072
|
+
16: () => getCommand('SetSwingH', 'right_center'),
|
|
1073
|
+
17: () => getCommand('SetSwingH', 'split'),
|
|
1074
|
+
18: () => getCommand('SetSwingH', 'swing'),
|
|
1065
1075
|
|
|
1066
1076
|
// Vertical Swing
|
|
1067
1077
|
20: () => getCommand('SetSwingV', 'auto'),
|