Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
format: Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [1, 2],
perms: [Perms.PAIRED_READ, Perms.PAIRED_WRITE, Perms.NOTIFY]
})
.on(CharacteristicEventTypes.GET, this.handleTargetHeaterCoolerStateGet.bind(this))
.on(CharacteristicEventTypes.SET, this.handleTargetHeaterCoolerStateSet.bind(this));
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.CurrentTemperature)
.on(CharacteristicEventTypes.GET, this.handleCurrentTemperatureGet.bind(this));
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.CoolingThresholdTemperature)
.setProps({
format: Formats.FLOAT,
unit: Units.CELSIUS,
maxValue: this.config.maxCoolingTemp,
minValue: this.config.minCoolingTemp,
minStep: 1,
perms: [Perms.PAIRED_READ, Perms.PAIRED_WRITE, Perms.NOTIFY]
})
.on(CharacteristicEventTypes.GET, this.handleCoolingThresholdTemperatureGet.bind(this))
.on(CharacteristicEventTypes.SET, this.handleCoolingThresholdTemperatureSet.bind(this));
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.HeatingThresholdTemperature)
.setProps({
format: Formats.FLOAT,
unit: Units.CELSIUS,
maxValue: this.config.maxHeatingTemp,
minValue: this.config.minHeatingTemp,
minStep: 1,
perms: [Perms.PAIRED_READ, Perms.PAIRED_WRITE, Perms.NOTIFY]
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.CoolingThresholdTemperature)
.setProps({
format: Formats.FLOAT,
unit: Units.CELSIUS,
maxValue: this.config.maxCoolingTemp,
minValue: this.config.minCoolingTemp,
minStep: 1,
perms: [Perms.PAIRED_READ, Perms.PAIRED_WRITE, Perms.NOTIFY]
})
.on(CharacteristicEventTypes.GET, this.handleCoolingThresholdTemperatureGet.bind(this))
.on(CharacteristicEventTypes.SET, this.handleCoolingThresholdTemperatureSet.bind(this));
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.HeatingThresholdTemperature)
.setProps({
format: Formats.FLOAT,
unit: Units.CELSIUS,
maxValue: this.config.maxHeatingTemp,
minValue: this.config.minHeatingTemp,
minStep: 1,
perms: [Perms.PAIRED_READ, Perms.PAIRED_WRITE, Perms.NOTIFY]
})
.on(CharacteristicEventTypes.GET, this.handleHeatingThresholdTemperatureGet.bind(this))
.on(CharacteristicEventTypes.SET, this.handleHeatingThresholdTemperatureSet.bind(this));
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.RotationSpeed)
.on(CharacteristicEventTypes.GET, this.handleRotationSpeedGet.bind(this))
.on(CharacteristicEventTypes.SET, this.handleRotationSpeedSet.bind(this));
this.heaterCoolerService.getCharacteristic(this.hap.Characteristic.SwingMode)
.on(CharacteristicEventTypes.GET, this.handleSwingModeGet.bind(this))
.on(CharacteristicEventTypes.SET, this.handleSwingModeSet.bind(this));
});