homebridge-melcloud-control 4.3.3-beta.3 → 4.3.3-beta.5
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/melcloudata.js +9 -16
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.5",
|
|
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
|
@@ -368,24 +368,17 @@ class MelCloudAta extends EventEmitter {
|
|
|
368
368
|
path = ApiUrlsHome.PutAta.replace('deviceid', deviceData.DeviceID);
|
|
369
369
|
headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
|
|
370
370
|
updateState = false;
|
|
371
|
-
this.socket.send(JSON.stringify(
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
"id": deviceData.DeviceID,
|
|
379
|
-
"settings": [
|
|
380
|
-
{
|
|
381
|
-
"name": "Power",
|
|
382
|
-
"value": deviceData.Device.Power
|
|
383
|
-
}
|
|
384
|
-
]
|
|
371
|
+
this.socket.send(JSON.stringify({
|
|
372
|
+
"Data": {
|
|
373
|
+
"id": deviceData.DeviceID,
|
|
374
|
+
"settings": [
|
|
375
|
+
{
|
|
376
|
+
"name": "Power",
|
|
377
|
+
"value": deviceData.Device.Power
|
|
385
378
|
}
|
|
386
|
-
|
|
379
|
+
]
|
|
387
380
|
}
|
|
388
|
-
}
|
|
381
|
+
}));
|
|
389
382
|
return;
|
|
390
383
|
}
|
|
391
384
|
|