homebridge-melcloud-control 3.1.4-beta.10 → 3.1.4-beta.11

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": "3.1.4-beta.10",
4
+ "version": "3.1.4-beta.11",
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
@@ -746,7 +746,7 @@ class DeviceAta extends EventEmitter {
746
746
  })
747
747
  .onSet(async (state) => {
748
748
  try {
749
- deviceState.Power = state;
749
+ deviceState.Power = [false, true][state];
750
750
  deviceState.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
751
751
  await this.melCloudAta.send(deviceState);
752
752
  const info = this.disableLogInfo ? false : this.emit('message', `Set power: ${state ? 'ON' : 'OFF'}`);
package/src/deviceatw.js CHANGED
@@ -875,7 +875,7 @@ class DeviceAtw extends EventEmitter {
875
875
  try {
876
876
  switch (i) {
877
877
  case 0: //Heat Pump
878
- deviceState.Power = state;
878
+ deviceState.Power = [false, true][state];
879
879
  deviceState.EffectiveFlags = CONSTANTS.HeatPump.EffectiveFlags.Power;
880
880
  await this.melCloudAtw.send(deviceState);
881
881
  const info = this.disableLogInfo ? false : this.emit('message', `${zoneName}, Set power: ${state ? 'ON' : 'OFF'}`);
package/src/deviceerv.js CHANGED
@@ -685,7 +685,7 @@ class DeviceErv extends EventEmitter {
685
685
  })
686
686
  .onSet(async (state) => {
687
687
  try {
688
- deviceState.Power = state;
688
+ deviceState.Power = [false, true][state];
689
689
  deviceState.EffectiveFlags = CONSTANTS.Ventilation.EffectiveFlags.Power;
690
690
  await this.melCloudErv.send(deviceState);
691
691
  const info = this.disableLogInfo ? false : this.emit('message', `Set power: ${state ? 'ON' : 'OFF'}`);
package/src/melcloud.js CHANGED
@@ -146,7 +146,6 @@ class MelCloud extends EventEmitter {
146
146
  ];
147
147
 
148
148
  //add all devices to the devices array
149
- devices.useFahrenheit = this.useFahrenheit;
150
149
  devices.push(...allDevices);
151
150
  }
152
151