Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrandlehner committed Mar 20, 2024
1 parent ee7fc5a commit e018f83
Show file tree
Hide file tree
Showing 3 changed files with 2,907 additions and 2,702 deletions.
28 changes: 18 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1038,17 +1038,21 @@ getFanSpeed: function (callback) {

this.heaterCoolerService
.getCharacteristic(Characteristic.CoolingThresholdTemperature)
.setProps({minValue: Number.parseFloat('18'),
maxValue: Number.parseFloat('32'),
minStep: Number.parseFloat('0.5')})
.setProps({
minValue: Number.parseFloat('18'),
maxValue: Number.parseFloat('32'),
minStep: Number.parseFloat('0.5'),
})
.on('get', this.getCoolingTemperatureFV.bind(this))
.on('set', this.setCoolingTemperature.bind(this));

this.heaterCoolerService
.getCharacteristic(Characteristic.HeatingThresholdTemperature)
.setProps({minValue: Number.parseFloat('10'),
maxValue: Number.parseFloat('30'),
minStep: Number.parseFloat('0.5')})
.setProps({
minValue: Number.parseFloat('10'),
maxValue: Number.parseFloat('30'),
minStep: Number.parseFloat('0.5'),
})
.on('get', this.getHeatingTemperatureFV.bind(this))
.on('set', this.setHeatingTemperature.bind(this));

Expand All @@ -1065,16 +1069,20 @@ getFanSpeed: function (callback) {
if (this.enableTemperatureSensor) {
this.temperatureService
.getCharacteristic(Characteristic.CurrentTemperature)
.setProps({minValue: Number.parseFloat('-50'),
maxValue: Number.parseFloat('100')})
.setProps({
minValue: Number.parseFloat('-50'),
maxValue: Number.parseFloat('100'),
})
.on('get', this.getCurrentTemperatureFV.bind(this));
}

if (this.enableHumiditySensor) {
this.humidityService
.getCharacteristic(Characteristic.CurrentRelativeHumidity)
.setProps({minValue: Number.parseFloat('0'),
maxValue: Number.parseFloat('100')})
.setProps({
minValue: Number.parseFloat('0'),
maxValue: Number.parseFloat('100'),
})
.on('get', this.getCurrentHumidityFV.bind(this));
}

Expand Down
Loading

0 comments on commit e018f83

Please sign in to comment.