homebridge-lg-airco
Advanced tools
Comparing version 0.0.8 to 0.0.91
{ | ||
"name": "homebridge-lg-airco", | ||
"version": "0.0.8", | ||
"version": "0.0.91", | ||
"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", |
@@ -43,9 +43,5 @@ const Wideq = require("./lg/wideq").Wideq; | ||
if (status) { | ||
console.log(JSON.stringify(status, null, 4)); | ||
console.log(JSON.stringify(status.Operation, null, 4)); | ||
if (status.Operation) { | ||
this.state.isOn = this.wideq.paramConversion.isOn(status.Operation.value); | ||
} | ||
console.log(JSON.stringify(status.OpMode, null, 4)); | ||
if (status.OpMode) { | ||
@@ -55,11 +51,8 @@ this.state.isCooling = this.wideq.paramConversion.isCooling(status.OpMode.value); | ||
} | ||
console.log(JSON.stringify(status.WindStrength, null, 4)); | ||
if (status.WindStrength) { | ||
this.state.speed = this.wideq.paramConversion.getSpeedAsNumber(status.WindStrength.value); | ||
} | ||
console.log(JSON.stringify(status.TempCur, null, 4)); | ||
if (status.TempCur) { | ||
this.state.currentTemp = status.TempCur.value; | ||
} | ||
console.log(JSON.stringify(status.TempCfg, null, 4)); | ||
if (status.TempCfg) { | ||
@@ -180,2 +173,4 @@ this.state.targetTemp = status.TempCfg.value; | ||
console.log('Setting rotation speed: ' + targetRotationSpeed); | ||
me.wideq.setSpeed(me.deviceId, targetRotationSpeed) | ||
@@ -189,2 +184,3 @@ .then((done) => { | ||
//Error | ||
console.log(error); | ||
}); | ||
@@ -191,0 +187,0 @@ |
@@ -53,3 +53,3 @@ const {spawn} = require('child_process'); | ||
if(targetSpeed < 37.5 || targetSpeed > 87.5) { | ||
return Promise.reject('Fan speed should be between 12.5 and 100 %'); | ||
return Promise.reject('Fan speed should be between 37.5 and 87.5 %'); | ||
} else { | ||
@@ -56,0 +56,0 @@ return python('set_speed', deviceId, targetSpeed) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103925
368