Socket
Socket
Sign inDemoInstall

homebridge-lg-airco

Package Overview
Dependencies
0
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0-beta3 to 0.1.0-beta4

.vscode/launch.json

2

package.json
{
"name": "homebridge-lg-airco",
"version": "0.1.0-beta3",
"version": "0.1.0-beta4",
"description": "Homebridge plugin to control a Smart Thinq enabled LG airco unit. Makes use of WideQ => https://github.com/sampsyo/wideq",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -23,10 +23,12 @@ import {AirCooler, FanSpeed, HSwingMode, Mode, VSwingMode, WideqAdapter} from "./wideq-adapter";

const status = await this.adapter.getStatus(this.airCooler.deviceId);
this.powerDraw = await this.adapter.getCurrentPowerUsage(this.airCooler.deviceId);
this.isOn = status.isOn;
this.mode = status.mode;
this.currentTemperatureInCelsius = status.currentTempInCelsius;
this.targetTemperatureInCelsius = status.targetTempInCelsius;
this.targetCoolingTemperatureInCelsius = status.targetTempInCelsius;
this.targetHeatingTemperatureInCelsius = status.targetTempInCelsius;
this.fanSpeed = status.fanSpeed;
if (status) {
this.powerDraw = await this.adapter.getCurrentPowerUsage(this.airCooler.deviceId);
this.isOn = status.isOn;
this.mode = status.mode;
this.currentTemperatureInCelsius = status.currentTempInCelsius;
this.targetTemperatureInCelsius = status.targetTempInCelsius;
this.targetCoolingTemperatureInCelsius = status.targetTempInCelsius;
this.targetHeatingTemperatureInCelsius = status.targetTempInCelsius;
this.fanSpeed = status.fanSpeed;
}
}

@@ -163,2 +165,2 @@

}
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc