homebridge-midea-platform 1.1.2-beta.3 → 1.1.2-beta.4

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.
Files changed (69) hide show
  1. package/.husky/pre-commit +0 -0
  2. package/dist/accessory/AccessoryFactory.d.ts +12 -12
  3. package/dist/accessory/AccessoryFactory.js +31 -31
  4. package/dist/accessory/AirConditionerAccessory.d.ts +86 -86
  5. package/dist/accessory/AirConditionerAccessory.js +560 -560
  6. package/dist/accessory/AirConditionerAccessory.js.map +1 -1
  7. package/dist/accessory/BaseAccessory.d.ts +11 -11
  8. package/dist/accessory/BaseAccessory.js +21 -21
  9. package/dist/accessory/DehumidifierAccessory.d.ts +45 -45
  10. package/dist/accessory/DehumidifierAccessory.js +344 -344
  11. package/dist/accessory/ElectricWaterHeaterAccessory.d.ts +44 -44
  12. package/dist/accessory/ElectricWaterHeaterAccessory.js +176 -176
  13. package/dist/accessory/FanAccessory.d.ts +39 -39
  14. package/dist/accessory/FanAccessory.js +123 -123
  15. package/dist/accessory/FrontLoadWasherAccessory.d.ts +30 -30
  16. package/dist/accessory/FrontLoadWasherAccessory.js +60 -60
  17. package/dist/accessory/GasWaterHeaterAccessory.d.ts +51 -51
  18. package/dist/accessory/GasWaterHeaterAccessory.js +216 -216
  19. package/dist/core/MideaCloud.d.ts +35 -35
  20. package/dist/core/MideaCloud.js +350 -350
  21. package/dist/core/MideaConstants.d.ts +49 -49
  22. package/dist/core/MideaConstants.js +57 -57
  23. package/dist/core/MideaDevice.d.ts +76 -76
  24. package/dist/core/MideaDevice.js +409 -409
  25. package/dist/core/MideaDiscover.d.ts +35 -35
  26. package/dist/core/MideaDiscover.js +212 -212
  27. package/dist/core/MideaMessage.d.ts +75 -75
  28. package/dist/core/MideaMessage.js +184 -184
  29. package/dist/core/MideaPacketBuilder.d.ts +10 -10
  30. package/dist/core/MideaPacketBuilder.js +60 -60
  31. package/dist/core/MideaSecurity.d.ts +63 -63
  32. package/dist/core/MideaSecurity.js +242 -242
  33. package/dist/core/MideaUtils.d.ts +32 -32
  34. package/dist/core/MideaUtils.js +181 -181
  35. package/dist/devices/DeviceFactory.d.ts +12 -12
  36. package/dist/devices/DeviceFactory.js +33 -33
  37. package/dist/devices/a1/MideaA1Device.d.ts +76 -76
  38. package/dist/devices/a1/MideaA1Device.js +136 -136
  39. package/dist/devices/a1/MideaA1Message.d.ts +40 -40
  40. package/dist/devices/a1/MideaA1Message.js +198 -198
  41. package/dist/devices/ac/MideaACDevice.d.ts +100 -100
  42. package/dist/devices/ac/MideaACDevice.js +370 -370
  43. package/dist/devices/ac/MideaACMessage.d.ts +92 -92
  44. package/dist/devices/ac/MideaACMessage.js +589 -589
  45. package/dist/devices/db/MideaDBDevice.d.ts +29 -29
  46. package/dist/devices/db/MideaDBDevice.js +88 -88
  47. package/dist/devices/db/MideaDBMessage.d.ts +32 -32
  48. package/dist/devices/db/MideaDBMessage.js +101 -101
  49. package/dist/devices/e2/MideaE2Device.d.ts +44 -44
  50. package/dist/devices/e2/MideaE2Device.js +119 -119
  51. package/dist/devices/e2/MideaE2Message.d.ts +33 -33
  52. package/dist/devices/e2/MideaE2Message.js +132 -132
  53. package/dist/devices/e3/MideaE3Device.d.ts +43 -43
  54. package/dist/devices/e3/MideaE3Device.js +125 -125
  55. package/dist/devices/e3/MideaE3Message.d.ts +51 -51
  56. package/dist/devices/e3/MideaE3Message.js +136 -136
  57. package/dist/devices/fa/MideaFADevice.d.ts +36 -36
  58. package/dist/devices/fa/MideaFADevice.js +92 -92
  59. package/dist/devices/fa/MideaFAMessage.d.ts +38 -38
  60. package/dist/devices/fa/MideaFAMessage.js +98 -98
  61. package/dist/index.d.ts +6 -6
  62. package/dist/index.js +6 -6
  63. package/dist/platform.d.ts +60 -60
  64. package/dist/platform.js +213 -213
  65. package/dist/platformUtils.d.ts +98 -98
  66. package/dist/platformUtils.js +96 -96
  67. package/dist/settings.d.ts +8 -8
  68. package/dist/settings.js +11 -11
  69. package/package.json +1 -1
@@ -1,99 +1,99 @@
1
- export type Config = {
2
- refreshInterval: number;
3
- heartbeatInterval: number;
4
- verbose: boolean;
5
- logRecoverableErrors: boolean;
6
- uiDebug: boolean;
7
- devices: DeviceConfig[];
8
- };
9
- export declare const defaultConfig: Config;
10
- export type DeviceConfig = {
11
- name?: string;
12
- id: number;
13
- type: string;
14
- advanced_options: {
15
- ip: string;
16
- token: string;
17
- key: string;
18
- verbose: boolean;
19
- logRecoverableErrors: boolean;
20
- registerIfOffline: boolean;
21
- };
22
- AC_options: ACOptions;
23
- A1_options: A1Options;
24
- E2_options: E2Options;
25
- E3_options: E3Options;
26
- };
27
- export declare enum SwingMode {
28
- NONE = "None",
29
- VERTICAL = "Vertical",
30
- HORIZONTAL = "Horizontal",
31
- BOTH = "Both"
32
- }
33
- export declare enum SwingAngle {
34
- VERTICAL = "Vertical",
35
- HORIZONTAL = "Horizontal"
36
- }
37
- export declare enum WaterTankSensor {
38
- NONE = "None",
39
- LEAK_SENSOR = "Leak Sensor",
40
- CONTACT_SENSOR = "Contact Sensor"
41
- }
42
- type ACOptions = {
43
- swing: {
44
- mode: SwingMode;
45
- angleAccessory: boolean;
46
- angleMainControl: SwingAngle;
47
- };
48
- heatingCapable: boolean;
49
- ecoSwitch: boolean;
50
- displaySwitch: {
51
- flag: boolean;
52
- command: boolean;
53
- };
54
- minTemp: number;
55
- maxTemp: number;
56
- tempStep: number;
57
- fahrenheit: boolean;
58
- fanOnlyModeSwitch: boolean;
59
- fanAccessory: boolean;
60
- breezeAwaySwitch: boolean;
61
- dryModeSwitch: boolean;
62
- auxHeatingSwitches: boolean;
63
- outDoorTemp: boolean;
64
- audioFeedback: boolean;
65
- screenOff: boolean;
66
- };
67
- type A1Options = {
68
- temperatureSensor: boolean;
69
- fanAccessory: boolean;
70
- humiditySensor: boolean;
71
- pumpSwitch: boolean;
72
- waterTankSensor: WaterTankSensor;
73
- minHumidity: number;
74
- maxHumidity: number;
75
- humidityStep: number;
76
- humidityOffset: number;
77
- };
78
- type E2Options = {
79
- protocol: string;
80
- minTemp: number;
81
- maxTemp: number;
82
- tempStep: number;
83
- variableHeatingSwitch: boolean;
84
- wholeTankHeatingSwitch: boolean;
85
- };
86
- type E3Options = {
87
- precisionHalves: boolean;
88
- minTemp: number;
89
- maxTemp: number;
90
- tempStep: number;
91
- burningStateSensor: boolean;
92
- protectionSensor: boolean;
93
- zeroColdWaterSwitch: boolean;
94
- zeroColdPulseSwitch: boolean;
95
- smartVolumeSwitch: boolean;
96
- };
97
- export declare const defaultDeviceConfig: DeviceConfig;
98
- export {};
1
+ export type Config = {
2
+ refreshInterval: number;
3
+ heartbeatInterval: number;
4
+ verbose: boolean;
5
+ logRecoverableErrors: boolean;
6
+ uiDebug: boolean;
7
+ devices: DeviceConfig[];
8
+ };
9
+ export declare const defaultConfig: Config;
10
+ export type DeviceConfig = {
11
+ name?: string;
12
+ id: number;
13
+ type: string;
14
+ advanced_options: {
15
+ ip: string;
16
+ token: string;
17
+ key: string;
18
+ verbose: boolean;
19
+ logRecoverableErrors: boolean;
20
+ registerIfOffline: boolean;
21
+ };
22
+ AC_options: ACOptions;
23
+ A1_options: A1Options;
24
+ E2_options: E2Options;
25
+ E3_options: E3Options;
26
+ };
27
+ export declare enum SwingMode {
28
+ NONE = "None",
29
+ VERTICAL = "Vertical",
30
+ HORIZONTAL = "Horizontal",
31
+ BOTH = "Both"
32
+ }
33
+ export declare enum SwingAngle {
34
+ VERTICAL = "Vertical",
35
+ HORIZONTAL = "Horizontal"
36
+ }
37
+ export declare enum WaterTankSensor {
38
+ NONE = "None",
39
+ LEAK_SENSOR = "Leak Sensor",
40
+ CONTACT_SENSOR = "Contact Sensor"
41
+ }
42
+ type ACOptions = {
43
+ swing: {
44
+ mode: SwingMode;
45
+ angleAccessory: boolean;
46
+ angleMainControl: SwingAngle;
47
+ };
48
+ heatingCapable: boolean;
49
+ ecoSwitch: boolean;
50
+ displaySwitch: {
51
+ flag: boolean;
52
+ command: boolean;
53
+ };
54
+ minTemp: number;
55
+ maxTemp: number;
56
+ tempStep: number;
57
+ fahrenheit: boolean;
58
+ fanOnlyModeSwitch: boolean;
59
+ fanAccessory: boolean;
60
+ breezeAwaySwitch: boolean;
61
+ dryModeSwitch: boolean;
62
+ auxHeatingSwitches: boolean;
63
+ outDoorTemp: boolean;
64
+ audioFeedback: boolean;
65
+ screenOff: boolean;
66
+ };
67
+ type A1Options = {
68
+ temperatureSensor: boolean;
69
+ fanAccessory: boolean;
70
+ humiditySensor: boolean;
71
+ pumpSwitch: boolean;
72
+ waterTankSensor: WaterTankSensor;
73
+ minHumidity: number;
74
+ maxHumidity: number;
75
+ humidityStep: number;
76
+ humidityOffset: number;
77
+ };
78
+ type E2Options = {
79
+ protocol: string;
80
+ minTemp: number;
81
+ maxTemp: number;
82
+ tempStep: number;
83
+ variableHeatingSwitch: boolean;
84
+ wholeTankHeatingSwitch: boolean;
85
+ };
86
+ type E3Options = {
87
+ precisionHalves: boolean;
88
+ minTemp: number;
89
+ maxTemp: number;
90
+ tempStep: number;
91
+ burningStateSensor: boolean;
92
+ protectionSensor: boolean;
93
+ zeroColdWaterSwitch: boolean;
94
+ zeroColdPulseSwitch: boolean;
95
+ smartVolumeSwitch: boolean;
96
+ };
97
+ export declare const defaultDeviceConfig: DeviceConfig;
98
+ export {};
99
99
  //# sourceMappingURL=platformUtils.d.ts.map
@@ -1,97 +1,97 @@
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
- humidityOffset: 0,
76
- },
77
- E2_options: {
78
- protocol: 'auto',
79
- minTemp: 30,
80
- maxTemp: 75,
81
- tempStep: 1,
82
- variableHeatingSwitch: false,
83
- wholeTankHeatingSwitch: false,
84
- },
85
- E3_options: {
86
- precisionHalves: false,
87
- minTemp: 35,
88
- maxTemp: 65,
89
- tempStep: 1,
90
- burningStateSensor: false,
91
- protectionSensor: false,
92
- zeroColdWaterSwitch: false,
93
- zeroColdPulseSwitch: false,
94
- smartVolumeSwitch: false,
95
- },
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
+ humidityOffset: 0,
76
+ },
77
+ E2_options: {
78
+ protocol: 'auto',
79
+ minTemp: 30,
80
+ maxTemp: 75,
81
+ tempStep: 1,
82
+ variableHeatingSwitch: false,
83
+ wholeTankHeatingSwitch: false,
84
+ },
85
+ E3_options: {
86
+ precisionHalves: false,
87
+ minTemp: 35,
88
+ maxTemp: 65,
89
+ tempStep: 1,
90
+ burningStateSensor: false,
91
+ protectionSensor: false,
92
+ zeroColdWaterSwitch: false,
93
+ zeroColdPulseSwitch: false,
94
+ smartVolumeSwitch: false,
95
+ },
96
+ };
97
97
  //# sourceMappingURL=platformUtils.js.map
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Homebridge Midea Platform",
3
3
  "name": "homebridge-midea-platform",
4
- "version": "1.1.2-beta.3",
4
+ "version": "1.1.2-beta.4",
5
5
  "description": "Homebridge plugin for Midea devices",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {