Skip to content

Commit

Permalink
2.5.0 Fixed a bug with CurrentHeatingCoolingState
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuhlin committed Apr 25, 2023
1 parent 03c9d54 commit 79cc8d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 79cc8d4

Please sign in to comment.