homebridge-midea-platform 1.1.0 → 1.1.1-beta.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/.husky/pre-commit +0 -0
- package/CHANGELOG.md +1 -1
- package/README.md +1 -0
- package/dist/accessory/AccessoryFactory.d.ts +11 -11
- package/dist/accessory/AccessoryFactory.js +28 -28
- package/dist/accessory/AirConditionerAccessory.d.ts +86 -86
- package/dist/accessory/AirConditionerAccessory.js +560 -560
- package/dist/accessory/BaseAccessory.d.ts +11 -11
- package/dist/accessory/BaseAccessory.js +21 -21
- package/dist/accessory/DehumidifierAccessory.d.ts +45 -45
- package/dist/accessory/DehumidifierAccessory.js +343 -343
- package/dist/accessory/ElectricWaterHeaterAccessory.d.ts +44 -44
- package/dist/accessory/ElectricWaterHeaterAccessory.js +176 -176
- package/dist/accessory/FanAccessory.d.ts +39 -39
- package/dist/accessory/FanAccessory.js +123 -123
- package/dist/accessory/GasWaterHeaterAccessory.d.ts +51 -51
- package/dist/accessory/GasWaterHeaterAccessory.js +216 -216
- package/dist/core/MideaCloud.d.ts +35 -35
- package/dist/core/MideaCloud.js +350 -350
- package/dist/core/MideaConstants.d.ts +48 -48
- package/dist/core/MideaConstants.js +56 -56
- package/dist/core/MideaDevice.d.ts +76 -76
- package/dist/core/MideaDevice.js +409 -409
- package/dist/core/MideaDiscover.d.ts +35 -35
- package/dist/core/MideaDiscover.js +212 -212
- package/dist/core/MideaMessage.d.ts +75 -75
- package/dist/core/MideaMessage.d.ts.map +1 -1
- package/dist/core/MideaMessage.js +191 -184
- package/dist/core/MideaMessage.js.map +1 -1
- package/dist/core/MideaPacketBuilder.d.ts +10 -10
- package/dist/core/MideaPacketBuilder.js +60 -60
- package/dist/core/MideaSecurity.d.ts +63 -63
- package/dist/core/MideaSecurity.js +242 -242
- package/dist/core/MideaUtils.d.ts +32 -32
- package/dist/core/MideaUtils.js +181 -181
- package/dist/devices/DeviceFactory.d.ts +11 -11
- package/dist/devices/DeviceFactory.js +30 -30
- package/dist/devices/a1/MideaA1Device.d.ts +76 -76
- package/dist/devices/a1/MideaA1Device.js +136 -136
- package/dist/devices/a1/MideaA1Message.d.ts +40 -40
- package/dist/devices/a1/MideaA1Message.js +198 -198
- package/dist/devices/ac/MideaACDevice.d.ts +100 -100
- package/dist/devices/ac/MideaACDevice.js +370 -370
- package/dist/devices/ac/MideaACMessage.d.ts +92 -92
- package/dist/devices/ac/MideaACMessage.d.ts.map +1 -1
- package/dist/devices/ac/MideaACMessage.js +591 -589
- package/dist/devices/ac/MideaACMessage.js.map +1 -1
- package/dist/devices/e2/MideaE2Device.d.ts +44 -44
- package/dist/devices/e2/MideaE2Device.js +119 -119
- package/dist/devices/e2/MideaE2Message.d.ts +33 -33
- package/dist/devices/e2/MideaE2Message.js +132 -132
- package/dist/devices/e3/MideaE3Device.d.ts +43 -43
- package/dist/devices/e3/MideaE3Device.js +125 -125
- package/dist/devices/e3/MideaE3Message.d.ts +51 -51
- package/dist/devices/e3/MideaE3Message.js +136 -136
- package/dist/devices/fa/MideaFADevice.d.ts +36 -36
- package/dist/devices/fa/MideaFADevice.js +92 -92
- package/dist/devices/fa/MideaFAMessage.d.ts +38 -38
- package/dist/devices/fa/MideaFAMessage.js +98 -98
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/platform.d.ts +60 -60
- package/dist/platform.js +213 -213
- package/dist/platformUtils.d.ts +97 -97
- package/dist/platformUtils.js +95 -95
- package/dist/settings.d.ts +8 -8
- package/dist/settings.js +11 -11
- package/package.json +1 -1
package/dist/platformUtils.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultDeviceConfig = exports.WaterTankSensor = exports.SwingAngle = exports.SwingMode = exports.defaultConfig = void 0;
|
|
4
|
-
exports.defaultConfig = {
|
|
5
|
-
refreshInterval: 30,
|
|
6
|
-
heartbeatInterval: 10,
|
|
7
|
-
verbose: false,
|
|
8
|
-
logRecoverableErrors: true,
|
|
9
|
-
uiDebug: false,
|
|
10
|
-
devices: [],
|
|
11
|
-
};
|
|
12
|
-
var SwingMode;
|
|
13
|
-
(function (SwingMode) {
|
|
14
|
-
SwingMode["NONE"] = "None";
|
|
15
|
-
SwingMode["VERTICAL"] = "Vertical";
|
|
16
|
-
SwingMode["HORIZONTAL"] = "Horizontal";
|
|
17
|
-
SwingMode["BOTH"] = "Both";
|
|
18
|
-
})(SwingMode = exports.SwingMode || (exports.SwingMode = {}));
|
|
19
|
-
var SwingAngle;
|
|
20
|
-
(function (SwingAngle) {
|
|
21
|
-
SwingAngle["VERTICAL"] = "Vertical";
|
|
22
|
-
SwingAngle["HORIZONTAL"] = "Horizontal";
|
|
23
|
-
})(SwingAngle = exports.SwingAngle || (exports.SwingAngle = {}));
|
|
24
|
-
var WaterTankSensor;
|
|
25
|
-
(function (WaterTankSensor) {
|
|
26
|
-
WaterTankSensor["NONE"] = "None";
|
|
27
|
-
WaterTankSensor["LEAK_SENSOR"] = "Leak Sensor";
|
|
28
|
-
WaterTankSensor["CONTACT_SENSOR"] = "Contact Sensor";
|
|
29
|
-
})(WaterTankSensor = exports.WaterTankSensor || (exports.WaterTankSensor = {}));
|
|
30
|
-
exports.defaultDeviceConfig = {
|
|
31
|
-
id: 0,
|
|
32
|
-
type: '',
|
|
33
|
-
advanced_options: {
|
|
34
|
-
ip: '',
|
|
35
|
-
token: '',
|
|
36
|
-
key: '',
|
|
37
|
-
verbose: false,
|
|
38
|
-
logRecoverableErrors: true,
|
|
39
|
-
registerIfOffline: false,
|
|
40
|
-
},
|
|
41
|
-
AC_options: {
|
|
42
|
-
swing: {
|
|
43
|
-
mode: SwingMode.NONE,
|
|
44
|
-
angleAccessory: false,
|
|
45
|
-
angleMainControl: SwingAngle.VERTICAL,
|
|
46
|
-
},
|
|
47
|
-
heatingCapable: true,
|
|
48
|
-
outDoorTemp: false,
|
|
49
|
-
audioFeedback: false,
|
|
50
|
-
screenOff: false,
|
|
51
|
-
ecoSwitch: false,
|
|
52
|
-
dryModeSwitch: false,
|
|
53
|
-
breezeAwaySwitch: false,
|
|
54
|
-
displaySwitch: {
|
|
55
|
-
flag: true,
|
|
56
|
-
command: false,
|
|
57
|
-
},
|
|
58
|
-
auxHeatingSwitches: false,
|
|
59
|
-
minTemp: 16,
|
|
60
|
-
maxTemp: 30,
|
|
61
|
-
tempStep: 1,
|
|
62
|
-
fahrenheit: false,
|
|
63
|
-
fanOnlyModeSwitch: false,
|
|
64
|
-
fanAccessory: false,
|
|
65
|
-
},
|
|
66
|
-
A1_options: {
|
|
67
|
-
temperatureSensor: false,
|
|
68
|
-
fanAccessory: false,
|
|
69
|
-
humiditySensor: false,
|
|
70
|
-
pumpSwitch: false,
|
|
71
|
-
waterTankSensor: WaterTankSensor.NONE,
|
|
72
|
-
minHumidity: 35,
|
|
73
|
-
maxHumidity: 85,
|
|
74
|
-
humidityStep: 5,
|
|
75
|
-
},
|
|
76
|
-
E2_options: {
|
|
77
|
-
protocol: 'auto',
|
|
78
|
-
minTemp: 30,
|
|
79
|
-
maxTemp: 75,
|
|
80
|
-
tempStep: 1,
|
|
81
|
-
variableHeatingSwitch: false,
|
|
82
|
-
wholeTankHeatingSwitch: false,
|
|
83
|
-
},
|
|
84
|
-
E3_options: {
|
|
85
|
-
precisionHalves: false,
|
|
86
|
-
minTemp: 35,
|
|
87
|
-
maxTemp: 65,
|
|
88
|
-
tempStep: 1,
|
|
89
|
-
burningStateSensor: false,
|
|
90
|
-
protectionSensor: false,
|
|
91
|
-
zeroColdWaterSwitch: false,
|
|
92
|
-
zeroColdPulseSwitch: false,
|
|
93
|
-
smartVolumeSwitch: false,
|
|
94
|
-
},
|
|
95
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultDeviceConfig = exports.WaterTankSensor = exports.SwingAngle = exports.SwingMode = exports.defaultConfig = void 0;
|
|
4
|
+
exports.defaultConfig = {
|
|
5
|
+
refreshInterval: 30,
|
|
6
|
+
heartbeatInterval: 10,
|
|
7
|
+
verbose: false,
|
|
8
|
+
logRecoverableErrors: true,
|
|
9
|
+
uiDebug: false,
|
|
10
|
+
devices: [],
|
|
11
|
+
};
|
|
12
|
+
var SwingMode;
|
|
13
|
+
(function (SwingMode) {
|
|
14
|
+
SwingMode["NONE"] = "None";
|
|
15
|
+
SwingMode["VERTICAL"] = "Vertical";
|
|
16
|
+
SwingMode["HORIZONTAL"] = "Horizontal";
|
|
17
|
+
SwingMode["BOTH"] = "Both";
|
|
18
|
+
})(SwingMode = exports.SwingMode || (exports.SwingMode = {}));
|
|
19
|
+
var SwingAngle;
|
|
20
|
+
(function (SwingAngle) {
|
|
21
|
+
SwingAngle["VERTICAL"] = "Vertical";
|
|
22
|
+
SwingAngle["HORIZONTAL"] = "Horizontal";
|
|
23
|
+
})(SwingAngle = exports.SwingAngle || (exports.SwingAngle = {}));
|
|
24
|
+
var WaterTankSensor;
|
|
25
|
+
(function (WaterTankSensor) {
|
|
26
|
+
WaterTankSensor["NONE"] = "None";
|
|
27
|
+
WaterTankSensor["LEAK_SENSOR"] = "Leak Sensor";
|
|
28
|
+
WaterTankSensor["CONTACT_SENSOR"] = "Contact Sensor";
|
|
29
|
+
})(WaterTankSensor = exports.WaterTankSensor || (exports.WaterTankSensor = {}));
|
|
30
|
+
exports.defaultDeviceConfig = {
|
|
31
|
+
id: 0,
|
|
32
|
+
type: '',
|
|
33
|
+
advanced_options: {
|
|
34
|
+
ip: '',
|
|
35
|
+
token: '',
|
|
36
|
+
key: '',
|
|
37
|
+
verbose: false,
|
|
38
|
+
logRecoverableErrors: true,
|
|
39
|
+
registerIfOffline: false,
|
|
40
|
+
},
|
|
41
|
+
AC_options: {
|
|
42
|
+
swing: {
|
|
43
|
+
mode: SwingMode.NONE,
|
|
44
|
+
angleAccessory: false,
|
|
45
|
+
angleMainControl: SwingAngle.VERTICAL,
|
|
46
|
+
},
|
|
47
|
+
heatingCapable: true,
|
|
48
|
+
outDoorTemp: false,
|
|
49
|
+
audioFeedback: false,
|
|
50
|
+
screenOff: false,
|
|
51
|
+
ecoSwitch: false,
|
|
52
|
+
dryModeSwitch: false,
|
|
53
|
+
breezeAwaySwitch: false,
|
|
54
|
+
displaySwitch: {
|
|
55
|
+
flag: true,
|
|
56
|
+
command: false,
|
|
57
|
+
},
|
|
58
|
+
auxHeatingSwitches: false,
|
|
59
|
+
minTemp: 16,
|
|
60
|
+
maxTemp: 30,
|
|
61
|
+
tempStep: 1,
|
|
62
|
+
fahrenheit: false,
|
|
63
|
+
fanOnlyModeSwitch: false,
|
|
64
|
+
fanAccessory: false,
|
|
65
|
+
},
|
|
66
|
+
A1_options: {
|
|
67
|
+
temperatureSensor: false,
|
|
68
|
+
fanAccessory: false,
|
|
69
|
+
humiditySensor: false,
|
|
70
|
+
pumpSwitch: false,
|
|
71
|
+
waterTankSensor: WaterTankSensor.NONE,
|
|
72
|
+
minHumidity: 35,
|
|
73
|
+
maxHumidity: 85,
|
|
74
|
+
humidityStep: 5,
|
|
75
|
+
},
|
|
76
|
+
E2_options: {
|
|
77
|
+
protocol: 'auto',
|
|
78
|
+
minTemp: 30,
|
|
79
|
+
maxTemp: 75,
|
|
80
|
+
tempStep: 1,
|
|
81
|
+
variableHeatingSwitch: false,
|
|
82
|
+
wholeTankHeatingSwitch: false,
|
|
83
|
+
},
|
|
84
|
+
E3_options: {
|
|
85
|
+
precisionHalves: false,
|
|
86
|
+
minTemp: 35,
|
|
87
|
+
maxTemp: 65,
|
|
88
|
+
tempStep: 1,
|
|
89
|
+
burningStateSensor: false,
|
|
90
|
+
protectionSensor: false,
|
|
91
|
+
zeroColdWaterSwitch: false,
|
|
92
|
+
zeroColdPulseSwitch: false,
|
|
93
|
+
smartVolumeSwitch: false,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
96
|
//# sourceMappingURL=platformUtils.js.map
|
package/dist/settings.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
|
|
3
|
-
*/
|
|
4
|
-
export declare const PLATFORM_NAME = "midea-platform";
|
|
5
|
-
/**
|
|
6
|
-
* This must match the name of your plugin as defined the package.json
|
|
7
|
-
*/
|
|
8
|
-
export declare const PLUGIN_NAME = "homebridge-midea-platform";
|
|
1
|
+
/**
|
|
2
|
+
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
|
|
3
|
+
*/
|
|
4
|
+
export declare const PLATFORM_NAME = "midea-platform";
|
|
5
|
+
/**
|
|
6
|
+
* This must match the name of your plugin as defined the package.json
|
|
7
|
+
*/
|
|
8
|
+
export declare const PLUGIN_NAME = "homebridge-midea-platform";
|
|
9
9
|
//# sourceMappingURL=settings.d.ts.map
|
package/dist/settings.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
|
|
6
|
-
*/
|
|
7
|
-
exports.PLATFORM_NAME = 'midea-platform';
|
|
8
|
-
/**
|
|
9
|
-
* This must match the name of your plugin as defined the package.json
|
|
10
|
-
*/
|
|
11
|
-
exports.PLUGIN_NAME = 'homebridge-midea-platform';
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
|
|
6
|
+
*/
|
|
7
|
+
exports.PLATFORM_NAME = 'midea-platform';
|
|
8
|
+
/**
|
|
9
|
+
* This must match the name of your plugin as defined the package.json
|
|
10
|
+
*/
|
|
11
|
+
exports.PLUGIN_NAME = 'homebridge-midea-platform';
|
|
12
12
|
//# sourceMappingURL=settings.js.map
|
package/package.json
CHANGED