From 79cc8d48a814463842d0cfc83213436bf72cbae3 Mon Sep 17 00:00:00 2001 From: Henrik Juhlin Date: Tue, 25 Apr 2023 09:37:57 +0200 Subject: [PATCH] 2.5.0 Fixed a bug with CurrentHeatingCoolingState --- README.md | 7 ++++++- package-lock.json | 2 +- package.json | 2 +- src/platform.ts | 6 +++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bccead8..8341eac 100644 --- a/README.md +++ b/README.md @@ -87,10 +87,15 @@ This is a plugin for Aqua Temp pool heater. - Fixed null problem when heater is offline - 2.4.2 + 2.4.0, 2.4.1, 2.4.2 - Fixed that target temp cant be lower then 10 (that is not allowed in Homekit) + 2.5.0 + +- Fixed a bug with CurrentHeatingCoolingState + + # Default config ```json diff --git a/package-lock.json b/package-lock.json index d4fc60c..e454765 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-aqua-temp", - "version": "2.4.2", + "version": "2.5.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 9ddfcde..5f8b2a2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": false, "displayName": "Aqua Temp Plugin", "name": "homebridge-aqua-temp", - "version": "2.4.2", + "version": "2.5.0", "description": "This is a plugin for Aqua Temp pool heater.", "license": "Apache-2.0", "repository": { diff --git a/src/platform.ts b/src/platform.ts index 5d741be..b44aa71 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -204,6 +204,9 @@ export class AquaTempHomebridgePlatform implements DynamicPlatformPlugin { this.log.info('Update heating status for ' + device.device_nick_name + ': '+isHeating); } + thermostatService.updateCharacteristic(this.Characteristic.CurrentHeatingCoolingState, + isHeating?this.Characteristic.CurrentHeatingCoolingState.HEAT: this.Characteristic.CurrentHeatingCoolingState.OFF); + if (this.config['EveLoging'] as boolean) { if (this.update10min) { @@ -214,9 +217,6 @@ export class AquaTempHomebridgePlatform implements DynamicPlatformPlugin { thermostatObject.accessory.context.fakeGatoService.addEntry({time: Math.round(new Date().valueOf() / 1000), currentTemp: currentTemp, setTemp: targetTemp, valvePosition: 1, power: currentPowerUsage}); - - thermostatService.updateCharacteristic(this.Characteristic.CurrentHeatingCoolingState, - isHeating?this.Characteristic.CurrentHeatingCoolingState.HEAT: this.Characteristic.CurrentHeatingCoolingState.OFF); } if (this.update1min) {