homebridge-melcloud-control 4.1.3-beta.21 → 4.1.3-beta.23
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/README.md +4 -0
- package/package.json +1 -1
- package/src/melcloudata.js +6 -10
package/README.md
CHANGED
|
@@ -65,6 +65,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
65
65
|
* Vane V mode `AUTO/1/2/3/4/5/SWING`.
|
|
66
66
|
* Fan speed mode `AUTO/1/2/3/4/5`.
|
|
67
67
|
* Presets `SET/UNSET`.
|
|
68
|
+
* Frost protection `ON/OFF`.
|
|
69
|
+
* Overheat protection `ON/OFF`.
|
|
68
70
|
* Holiday mode `ON/OFF`.
|
|
69
71
|
* Schedule `ON/OFF`.
|
|
70
72
|
* Sensors:
|
|
@@ -80,6 +82,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
80
82
|
* Outdoor temperature.
|
|
81
83
|
* Frost protection.
|
|
82
84
|
* Overheat protection.
|
|
85
|
+
* Frost protection.
|
|
86
|
+
* Overheat protection.
|
|
83
87
|
* Holiday mode.
|
|
84
88
|
* Shedule control.
|
|
85
89
|
* Shedule active
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.3-beta.
|
|
4
|
+
"version": "4.1.3-beta.23",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/melcloudata.js
CHANGED
|
@@ -201,30 +201,26 @@ class MelCloudAta extends EventEmitter {
|
|
|
201
201
|
switch (effectiveFlags) {
|
|
202
202
|
case 'frostprotection':
|
|
203
203
|
settings = {
|
|
204
|
-
data: {
|
|
205
|
-
enabled: deviceData.FrostProtection.Enabled
|
|
206
|
-
}
|
|
204
|
+
data: { enabled: deviceData.FrostProtection.Enabled, "min": deviceData.FrostProtection.Min, "max": deviceData.FrostProtection.Max, units: { "ATA": [deviceData.DeviceID] } }
|
|
207
205
|
};
|
|
208
206
|
method = 'POST';
|
|
209
|
-
path = ApiUrlsHome.PostProtectionFrost
|
|
207
|
+
path = ApiUrlsHome.PostProtectionFrost;
|
|
210
208
|
break;
|
|
211
209
|
case 'overheatprotection':
|
|
212
210
|
settings = {
|
|
213
211
|
data: {
|
|
214
|
-
enabled: deviceData.OverheatProtection.Enabled
|
|
212
|
+
data: { enabled: deviceData.OverheatProtection.Enabled, "min": deviceData.OverheatProtection.Min, "max": deviceData.OverheatProtection.Max, units: { "ATA": [deviceData.DeviceID] } }
|
|
215
213
|
}
|
|
216
214
|
};
|
|
217
215
|
method = 'POST';
|
|
218
|
-
path = ApiUrlsHome.PostProtectionOverheat
|
|
216
|
+
path = ApiUrlsHome.PostProtectionOverheat;
|
|
219
217
|
break;
|
|
220
218
|
case 'holidaymode':
|
|
221
219
|
settings = {
|
|
222
|
-
data: {
|
|
223
|
-
enabled: deviceData.HolidayMode.Enabled
|
|
224
|
-
}
|
|
220
|
+
data: { enabled: deviceData.HolidayMode.Enabled, startDate: deviceData.HolidayMode.StartDate, endDate: deviceData.HolidayMode.EndDate, units: { "ATA": [deviceData.DeviceID] } }
|
|
225
221
|
};
|
|
226
222
|
method = 'POST';
|
|
227
|
-
path = ApiUrlsHome.PostHolidayMode
|
|
223
|
+
path = ApiUrlsHome.PostHolidayMode;
|
|
228
224
|
break;
|
|
229
225
|
case 'schedule':
|
|
230
226
|
settings = {
|