homebridge-cool-automation
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -73,4 +73,4 @@ function fanSpeedToHK(value, fanSpeeds) { | ||
C: { | ||
min: device.tunit === 'F' && platform.minTemp !== 30 ? toCelsius(platform.minTemp) : this.minTemp, | ||
max: device.tunit === 'F' && platform.maxTemp !== 30 ? toCelsius(platform.maxTemp) : this.maxTemp | ||
min: device.tunit === 'F' && platform.minTemp !== 30 ? toCelsius(platform.minTemp) : platform.minTemp, | ||
max: device.tunit === 'F' && platform.maxTemp !== 30 ? toCelsius(platform.maxTemp) : platform.maxTemp | ||
} | ||
@@ -77,0 +77,0 @@ }, |
@@ -37,5 +37,2 @@ const unified = require('../CoolAutomation/unified') | ||
this.state = this.cachedState.devices[this.id] = unified.acState(this, device) | ||
if (!this.state.mode) | ||
this.state.mode = 'COOL' | ||
@@ -91,2 +88,3 @@ const StateHandler = require('../coolAutomation/StateHandler')(this, platform) | ||
addHeaterCoolerService() { | ||
this.log.easyDebug(`Adding HeaterCooler Service in the ${this.roomName}`) | ||
@@ -100,5 +98,7 @@ this.HeaterCoolerService = this.accessory.getService(Service.HeaterCooler) | ||
.on('set', this.stateManager.set.ACActive) | ||
.updateValue(0) | ||
this.HeaterCoolerService.getCharacteristic(Characteristic.CurrentHeaterCoolerState) | ||
.on('get', this.stateManager.get.CurrentHeaterCoolerState) | ||
.updateValue(0) | ||
@@ -116,2 +116,3 @@ | ||
.on('set', this.stateManager.set.TargetHeaterCoolerState) | ||
.updateValue(props[0]) | ||
@@ -126,2 +127,3 @@ | ||
.on('get', this.stateManager.get.CurrentTemperature) | ||
.updateValue(this.state.currentTemperature) | ||
@@ -137,2 +139,3 @@ if (this.capabilities.COOL) { | ||
.on('set', this.stateManager.set.CoolingThresholdTemperature) | ||
.updateValue(this.state.targetTemperature) | ||
} | ||
@@ -149,2 +152,3 @@ | ||
.on('set', this.stateManager.set.HeatingThresholdTemperature) | ||
.updateValue(this.state.targetTemperature) | ||
} | ||
@@ -161,2 +165,3 @@ | ||
.on('set', this.stateManager.set.CoolingThresholdTemperature) | ||
.updateValue(this.state.targetTemperature) | ||
@@ -174,2 +179,3 @@ } | ||
.on('set', this.stateManager.set.HeatingThresholdTemperature) | ||
.updateValue(this.state.targetTemperature) | ||
} | ||
@@ -188,2 +194,3 @@ | ||
.on('set', this.stateManager.set.ACSwing) | ||
.updateValue(0) | ||
} | ||
@@ -195,2 +202,3 @@ | ||
.on('set', this.stateManager.set.ACRotationSpeed) | ||
.updateValue(0) | ||
} | ||
@@ -221,2 +229,3 @@ | ||
.on('set', this.stateManager.set.FanActive) | ||
.updateValue(0) | ||
@@ -227,2 +236,3 @@ if (this.capabilities.FAN.swing) { | ||
.on('set', this.stateManager.set.FanSwing) | ||
.updateValue(0) | ||
} | ||
@@ -234,2 +244,3 @@ | ||
.on('set', this.stateManager.set.FanRotationSpeed) | ||
.updateValue(0) | ||
} | ||
@@ -258,9 +269,11 @@ | ||
.on('set', this.stateManager.set.DryActive) | ||
.updateValue(0) | ||
this.DryService.getCharacteristic(Characteristic.CurrentRelativeHumidity) | ||
.on('get', this.stateManager.get.CurrentRelativeHumidity) | ||
.updateValue(0) | ||
this.DryService.getCharacteristic(Characteristic.CurrentHumidifierDehumidifierState) | ||
.on('get', this.stateManager.get.CurrentHumidifierDehumidifierState) | ||
.updateValue(0) | ||
@@ -275,2 +288,3 @@ this.DryService.getCharacteristic(Characteristic.TargetHumidifierDehumidifierState) | ||
.on('set', this.stateManager.set.TargetHumidifierDehumidifierState) | ||
.updateValue(2) | ||
@@ -281,2 +295,3 @@ if (this.capabilities.DRY.swing) { | ||
.on('set', this.stateManager.set.DrySwing) | ||
.updateValue(0) | ||
} | ||
@@ -288,2 +303,3 @@ | ||
.on('set', this.stateManager.set.DryRotationSpeed) | ||
.updateValue(0) | ||
} | ||
@@ -303,3 +319,2 @@ | ||
updateHomeKit() { | ||
// update measurements | ||
@@ -306,0 +321,0 @@ this.updateValue('HeaterCoolerService', 'CurrentTemperature', this.state.currentTemperature) |
@@ -111,3 +111,3 @@ let Characteristic | ||
log.easyDebug(device.name, '(GET) - Current Relative Humidity is:', device.state.relativeHumidity, '%') | ||
callback(null, device.state.relativeHumidity) | ||
callback(null, 0) | ||
}, | ||
@@ -114,0 +114,0 @@ |
{ | ||
"name": "homebridge-cool-automation", | ||
"description": "Homebridge plugin for Cool Automation - HVAC Systems Controller", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
265869
1272