Skip to content

Commit

Permalink
fix: wrong value for second group valves
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-smirnov committed Apr 27, 2022
1 parent d8e1c3b commit 4bbf9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neptunSmart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ export class NeptunSmart {

const c = platform.Characteristic;

this.faucetServices[0].updateCharacteristic(c.Active, config.valveOpenFirstGroup);
this.faucetServices[0].updateCharacteristic(c.Active, config.valveOpenFirstGroup ? c.Active.ACTIVE : c.Active.INACTIVE);
if (this.isGroupsEnabled) {
this.faucetServices[1].updateCharacteristic(c.Active, config.valveOpenFirstGroup);
this.faucetServices[1].updateCharacteristic(c.Active, config.valveOpenSecondGroup ? c.Active.ACTIVE : c.Active.INACTIVE);
}

const wiredSensorsStatus = await this.neptunSmartModbus.fetchWiredSensorsStatus();
Expand Down

0 comments on commit 4bbf9a6

Please sign in to comment.