homebridge-tasmota-control 1.6.14-beta.1 → 1.6.15-beta.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.
@@ -709,6 +709,12 @@
709
709
  42
710
710
  ]
711
711
  },
712
+ {
713
+ "title": "AIR DIRECTION OFF (only as sensor now)",
714
+ "enum": [
715
+ 43
716
+ ]
717
+ },
712
718
  {
713
719
  "title": "LOCK CONTROL All (only as sensor now)",
714
720
  "enum": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.6.14-beta.1",
4
+ "version": "1.6.15-beta.0",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/constants.js CHANGED
@@ -62,12 +62,13 @@ export const MiElHVAC = {
62
62
  "right_middle": "HVACSetSwingH%20right_middle",
63
63
  "right": "HVACSetSwingH%20right",
64
64
  "split": "HVACSetSwingH%20split",
65
- "swing": "HVACSetSwingH%20swing"
65
+ "swing": "HVACSetSwingH%20swing",
66
66
  },
67
67
  "SetAirDirection": {
68
- "even": "HVACSetAirDirection%20even",
69
- "indirect": "HVACSetAirDirection%20indirect",
70
- "direct": "HVACSetAirDirection%20direct"
68
+ "even": "HVACSetSwingH%20even",
69
+ "indirect": "HVACSetSwingH%20indirect",
70
+ "direct": "HVACSetSwingH%20direct",
71
+ "off": "HVACSetSwingH%20off"
71
72
  },
72
73
  "SetProhibit": {
73
74
  "off": "HVACSetProhibit%20off",
package/src/mielhvac.js CHANGED
@@ -527,6 +527,9 @@ class MiElHvac extends EventEmitter {
527
527
  case 42: //AIR DIRECTION DIRECT
528
528
  button.state = power ? (airDirection === 'direct') : false;
529
529
  break;
530
+ case 43: //AIR DIRECTION OFF
531
+ button.state = power ? (airDirection === 'off') : false;
532
+ break;
530
533
  case 50: //PHYSICAL LOCK CONTROLS ALL
531
534
  button.state = prohibit === 'all';
532
535
  break;
@@ -1275,6 +1278,10 @@ class MiElHvac extends EventEmitter {
1275
1278
  button.previousValue = state ? MiElHVAC.SetAirDirection[this.mielHvac.airDirection] : button.previousValue;
1276
1279
  data = state ? MiElHVAC.SetAirDirection.direct : button.previousValue;
1277
1280
  break;
1281
+ case 43: //AIR DIRECTION OFF
1282
+ button.previousValue = state ? MiElHVAC.SetAirDirection[this.mielHvac.airDirection] : button.previousValue;
1283
+ data = state ? MiElHVAC.SetAirDirection.off : button.previousValue;
1284
+ break;
1278
1285
  case 50: //PHYSICAL LOCK CONTROLS
1279
1286
  button.previousValue = state ? MiElHVAC.SetProhibit[this.mielHvac.prohibit] : button.previousValue;
1280
1287
  data = state ? MiElHVAC.SetProhibit.all : button.previousValue;