homebridge-lg-airco
Advanced tools
Comparing version 0.1.0-beta3 to 0.1.0-beta4
{ | ||
"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
226645
46
2011