homebridge-melcloud-control 4.3.3-beta.18 → 4.3.3-beta.19
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/package.json +1 -1
- package/src/functions.js +2 -0
- package/src/melcloudata.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.3.3-beta.
|
|
4
|
+
"version": "4.3.3-beta.19",
|
|
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/functions.js
CHANGED
package/src/melcloudata.js
CHANGED
|
@@ -200,12 +200,12 @@ class MelCloudAta extends EventEmitter {
|
|
|
200
200
|
switch (unitId) {
|
|
201
201
|
case this.deviceId:
|
|
202
202
|
const messageType = parsedMessage[0].messageType;
|
|
203
|
-
const settings =
|
|
203
|
+
const settings = this.functions.parseArrayNameValue(messageData.settings);
|
|
204
204
|
switch (messageType) {
|
|
205
205
|
case 'unitStateChanged':
|
|
206
206
|
|
|
207
207
|
//update values
|
|
208
|
-
for (const
|
|
208
|
+
for (const [key, value] of Object.entries(settings)) {
|
|
209
209
|
if (!this.functions.isValidValue(value)) continue;
|
|
210
210
|
|
|
211
211
|
if (key === 'HolidayMode') {
|