From 168a16b4c5baadfcd3297e0c5977e1794f18e439 Mon Sep 17 00:00:00 2001 From: Erik Eng Date: Sun, 23 Dec 2018 23:56:13 +0100 Subject: [PATCH] Set supported temperature range See #43 --- lib/accessories/climatesensor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/accessories/climatesensor.js b/lib/accessories/climatesensor.js index dd338f4..617cfb6 100644 --- a/lib/accessories/climatesensor.js +++ b/lib/accessories/climatesensor.js @@ -47,6 +47,7 @@ class ClimateSensor extends VerisureAccessory { this.temperatureService = new Service.TemperatureSensor(this.name); this.temperatureService .getCharacteristic(Characteristic.CurrentTemperature) + .setProps({ minValue: -40.0, maxValue: 60.0 }) .on('get', this.getCurrentPropertyValue.bind(this, 'temperature')); services.push(this.temperatureService); }