homebridge-melcloud-control 4.3.3-beta.6 → 4.3.3-beta.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.3.3-beta.6",
4
+ "version": "4.3.3-beta.8",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -368,15 +368,7 @@ 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
- "id": deviceData.DeviceID,
373
- "settings": [
374
- {
375
- "name": "Power",
376
- "value": deviceData.Device.Power
377
- }
378
- ]
379
- }));
371
+ this.socket.send([{ "messageType": "unitStateChanged", "Data": { "id": "ef333525-2699-4290-af5a-2922566676da", "unitType": "ata", "settings": [{ "name": "Power", "value": true }] } }]);
380
372
  return;
381
373
  }
382
374