Skip to content

Commit

Permalink
IntelliChem virtual controller beginnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tagyoureit committed Sep 17, 2020
1 parent b60c35b commit 622ac75
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 318 deletions.
7 changes: 7 additions & 0 deletions controller/State.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,13 @@ export class ChemControllerStateAlarms extends EqState {
this.hasChanged = true;
}
}
public get comms(): number { return typeof this.data.comms === 'undefined' ? undefined : this.data.comms.val; }
public set comms(val: number) {
if (this.comms !== val) {
this.data.comms = sys.board.valueMaps.chemControllerStatus.transform(val);
this.hasChanged = true;
}
}

}
export class CommsState {
Expand Down
3 changes: 2 additions & 1 deletion controller/boards/EasyTouchBoard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export class EasyTouchBoard extends SystemBoard {
[10, { name: 'customNames', desc: 'Custom Names' }],
[11, { name: 'circuits', desc: 'Circuits' }],
[17, { name: 'schedules', desc: 'Schedules' }],
[18, { name: 'schedules', desc: 'Schedules' }],
[22, { name: 'spaSideRemote', desc: 'Spa Side Remotes' }],
[23, { name: 'pumpStatus', desc: 'Pump Status' }],
[24, { name: 'pumpConfig', desc: 'Pump Config' }],
Expand Down Expand Up @@ -209,7 +210,7 @@ export class EasyTouchBoard extends SystemBoard {
[158, { name: 'setHighSpeedCircuits', desc: 'Set High Speed Circuits for Valves' }],
[160, { name: 'setIs4Is10', desc: 'Set is4/is10 Spa Side Remote' }],
[161, { name: 'setQuickTouch', desc: 'Set QuickTouch Spa Side Remote' }],
[162, { name: 'setSolarHeatPump', desc: 'Set Solar/Heat Pump' }],
[162, { name: 'setSolarHeatPump', desc: 'Set Solar/Heat Pump' }],
[163, { name: 'setDelay', desc: 'Set Delay' }],
[167, { name: 'set', desc: 'Set Light Groups/Positions' }],
[168, { name: 'set', desc: 'Set Heat Mode' }],
Expand Down
Loading

0 comments on commit 622ac75

Please sign in to comment.