Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-lg-airco

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-lg-airco - npm Package Compare versions

Comparing version 0.0.8 to 0.0.91

2

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc