homebridge-melcloud-control 4.0.0-beta.531 → 4.0.0-beta.533

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.0.0-beta.531",
4
+ "version": "4.0.0-beta.533",
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/deviceata.js CHANGED
@@ -281,7 +281,7 @@ class DeviceAta extends EventEmitter {
281
281
  return state;
282
282
  })
283
283
  .onSet(async (state) => {
284
- if (!!state === deviceData.Device.Power) return;
284
+ if (!!state === this.accessory.power) return;
285
285
 
286
286
  try {
287
287
  deviceData.Device.Power = state ? true : false;
@@ -1001,7 +1001,7 @@ class DeviceAta extends EventEmitter {
1001
1001
  const prohibitPower = deviceData.Device.ProhibitPower ?? false;
1002
1002
  const temperatureStep = deviceData.Device[tempStepKey] ? 0.5 : 1;
1003
1003
  const outdoorTemperature = deviceData.Device.OutdoorTemperature;
1004
- const isInError = !deviceData.Device.IsInError ?? true;
1004
+ const isInError = deviceData.Device.IsInError ?? false;
1005
1005
 
1006
1006
  //accessory
1007
1007
  const obj = {
package/src/deviceatw.js CHANGED
@@ -306,7 +306,7 @@ class DeviceAtw extends EventEmitter {
306
306
  return state;
307
307
  })
308
308
  .onSet(async (state) => {
309
- if (!!state === deviceData.Device.Power) return;
309
+ if (!!state === this.accessory.power) return;
310
310
 
311
311
  try {
312
312
  switch (i) {
@@ -1367,7 +1367,7 @@ class DeviceAtw extends EventEmitter {
1367
1367
  const holidayMode = deviceData.Device.HolidayMode ?? false;
1368
1368
  const flowTemperatureHeatPump = deviceData.Device.FlowTemperature;
1369
1369
  const returnTemperatureHeatPump = deviceData.Device.ReturnTemperature;
1370
- const isInError = !deviceData.Device.IsInError ?? true;
1370
+ const isInError = deviceData.Device.IsInError ?? false;
1371
1371
 
1372
1372
  //zone 1
1373
1373
  const zone1Name = deviceData.Zone1Name ?? 'Zone 1';
package/src/deviceerv.js CHANGED
@@ -270,7 +270,7 @@ class DeviceErv extends EventEmitter {
270
270
  return state;
271
271
  })
272
272
  .onSet(async (state) => {
273
- if (!!state === deviceData.Device.Power) return;
273
+ if (!!state === this.accessory.power) return;
274
274
 
275
275
  try {
276
276
  deviceData.Device.Power = state ? true : false;
@@ -918,7 +918,7 @@ class DeviceErv extends EventEmitter {
918
918
  const setFanSpeed = deviceData.Device.SetFanSpeed;
919
919
  const operationMode = deviceData.Device.OperationMode;
920
920
  const ventilationMode = deviceData.Device.VentilationMode;
921
- const isInError = !deviceData.Device.IsInError ?? true;
921
+ const isInError = deviceData.Device.IsInError ?? false;
922
922
 
923
923
  //accessory
924
924
  const obj = {