nodejs-poolcontroller 7.5.1 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/1-bug-report.yml +84 -0
- package/.github/ISSUE_TEMPLATE/2-docs.md +12 -0
- package/.github/ISSUE_TEMPLATE/3-proposal.md +28 -0
- package/.github/ISSUE_TEMPLATE/config.yml +8 -0
- package/Changelog +19 -0
- package/Dockerfile +3 -3
- package/README.md +13 -8
- package/app.ts +1 -1
- package/config/Config.ts +38 -2
- package/config/VersionCheck.ts +27 -12
- package/controller/Constants.ts +2 -1
- package/controller/Equipment.ts +193 -9
- package/controller/Errors.ts +10 -0
- package/controller/Lockouts.ts +503 -0
- package/controller/State.ts +269 -64
- package/controller/boards/AquaLinkBoard.ts +1000 -0
- package/controller/boards/BoardFactory.ts +4 -0
- package/controller/boards/EasyTouchBoard.ts +468 -144
- package/controller/boards/IntelliCenterBoard.ts +466 -307
- package/controller/boards/IntelliTouchBoard.ts +37 -5
- package/controller/boards/NixieBoard.ts +671 -141
- package/controller/boards/SystemBoard.ts +1397 -641
- package/controller/comms/Comms.ts +462 -362
- package/controller/comms/messages/Messages.ts +174 -30
- package/controller/comms/messages/config/ChlorinatorMessage.ts +6 -3
- package/controller/comms/messages/config/CircuitMessage.ts +1 -0
- package/controller/comms/messages/config/ExternalMessage.ts +10 -8
- package/controller/comms/messages/config/HeaterMessage.ts +141 -29
- package/controller/comms/messages/config/OptionsMessage.ts +9 -2
- package/controller/comms/messages/config/PumpMessage.ts +53 -35
- package/controller/comms/messages/config/ScheduleMessage.ts +33 -25
- package/controller/comms/messages/config/ValveMessage.ts +2 -2
- package/controller/comms/messages/status/ChlorinatorStateMessage.ts +38 -86
- package/controller/comms/messages/status/EquipmentStateMessage.ts +59 -23
- package/controller/comms/messages/status/HeaterStateMessage.ts +57 -3
- package/controller/comms/messages/status/IntelliChemStateMessage.ts +56 -8
- package/controller/comms/messages/status/PumpStateMessage.ts +23 -1
- package/controller/nixie/Nixie.ts +1 -1
- package/controller/nixie/bodies/Body.ts +3 -0
- package/controller/nixie/chemistry/ChemController.ts +164 -51
- package/controller/nixie/chemistry/Chlorinator.ts +137 -88
- package/controller/nixie/circuits/Circuit.ts +51 -19
- package/controller/nixie/heaters/Heater.ts +241 -31
- package/controller/nixie/pumps/Pump.ts +488 -206
- package/controller/nixie/schedules/Schedule.ts +91 -35
- package/controller/nixie/valves/Valve.ts +1 -1
- package/defaultConfig.json +20 -0
- package/package.json +21 -21
- package/web/Server.ts +94 -49
- package/web/bindings/aqualinkD.json +505 -0
- package/web/bindings/influxDB.json +71 -1
- package/web/bindings/mqtt.json +98 -39
- package/web/bindings/mqttAlt.json +59 -1
- package/web/interfaces/baseInterface.ts +1 -0
- package/web/interfaces/httpInterface.ts +23 -2
- package/web/interfaces/influxInterface.ts +45 -10
- package/web/interfaces/mqttInterface.ts +114 -54
- package/web/services/config/Config.ts +55 -132
- package/web/services/state/State.ts +81 -4
- package/web/services/state/StateSocket.ts +4 -4
- package/web/services/utilities/Utilities.ts +8 -6
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -52
- package/config copy.json +0 -300
- package/issue_template.md +0 -52
|
@@ -33,15 +33,20 @@ export class IntelliTouchBoard extends EasyTouchBoard {
|
|
|
33
33
|
[0, { name: 'IT5', part: 'i5+3', desc: 'IntelliTouch i5+3', circuits: 6, shared: true }],
|
|
34
34
|
[1, { name: 'IT7', part: 'i7+3', desc: 'IntelliTouch i7+3', circuits: 8, shared: true }],
|
|
35
35
|
[2, { name: 'IT9', part: 'i9+3', desc: 'IntelliTouch i9+3', circuits: 10, shared: true }],
|
|
36
|
-
[3, { name: 'IT5S', part: 'i5+3S', desc: 'IntelliTouch i5+3S', circuits: 5, shared: false, bodies:
|
|
37
|
-
[4, { name: 'IT9S', part: 'i9+3S', desc: 'IntelliTouch i9+3S', circuits: 9, shared: false, bodies:
|
|
36
|
+
[3, { name: 'IT5S', part: 'i5+3S', desc: 'IntelliTouch i5+3S', circuits: 5, shared: false, bodies: 2, intakeReturnValves: false }],
|
|
37
|
+
[4, { name: 'IT9S', part: 'i9+3S', desc: 'IntelliTouch i9+3S', circuits: 9, shared: false, bodies: 2, intakeReturnValves: false }],
|
|
38
38
|
[5, { name: 'IT10D', part: 'i10D', desc: 'IntelliTouch i10D', circuits: 10, shared: false, dual: true }],
|
|
39
39
|
[32, { name: 'IT5X', part: 'i5X', desc: 'IntelliTouch i5X', circuits: 5 }],
|
|
40
|
-
[33, { name: 'IT10X', part: 'i10X', desc: 'IntelliTouch i10X', circuits: 10 }]
|
|
40
|
+
[33, { name: 'IT10X', part: 'i10X', desc: 'IntelliTouch i10X', circuits: 10 }],
|
|
41
|
+
[64, { name: 'Valve Exp', part: '520285', desc: 'Valve Expansion Module', valves: 3 }]
|
|
41
42
|
]);
|
|
42
43
|
}
|
|
43
44
|
public initExpansionModules(byte1: number, byte2: number) {
|
|
44
45
|
console.log(`Pentair IntelliTouch System Detected!`);
|
|
46
|
+
// For i9+3S with valve expansion the bytes are 4, 32 the expectation is
|
|
47
|
+
// that the 32 contains the indicator that there is a valve expansion module.
|
|
48
|
+
|
|
49
|
+
|
|
45
50
|
// Initialize the installed personality board.
|
|
46
51
|
let mt = this.valueMaps.expansionBoards.transform(byte1);
|
|
47
52
|
let mod = sys.equipment.modules.getItemById(0, true);
|
|
@@ -50,7 +55,6 @@ export class IntelliTouchBoard extends EasyTouchBoard {
|
|
|
50
55
|
mod.type = byte1;
|
|
51
56
|
mod.part = mt.part;
|
|
52
57
|
let eq = sys.equipment;
|
|
53
|
-
let bd = sys.board;
|
|
54
58
|
let md = mod.get();
|
|
55
59
|
|
|
56
60
|
eq.maxBodies = md.bodies = typeof mt.bodies !== 'undefined' ? mt.bodies : mt.shared || mt.dual ? 2 : 1;
|
|
@@ -65,7 +69,11 @@ export class IntelliTouchBoard extends EasyTouchBoard {
|
|
|
65
69
|
eq.maxChemControllers = md.chemControllers = 1;
|
|
66
70
|
eq.maxCustomNames = 20;
|
|
67
71
|
eq.maxCircuitGroups = 10; // Not sure why this is 10 other than to allow for those that we are in control of.
|
|
68
|
-
|
|
72
|
+
if (!eq.shared && !eq.dual) {
|
|
73
|
+
// Replace the body types with Hi-Temp and Lo-Temp
|
|
74
|
+
sys.board.valueMaps.bodyTypes.merge([[0, { name: 'pool', desc: 'Lo-Temp' }],
|
|
75
|
+
[1, { name: 'spa', desc: 'Hi-Temp' }]]);
|
|
76
|
+
}
|
|
69
77
|
// Calculate out the invalid ids.
|
|
70
78
|
// sys.board.equipmentIds.invalidIds.set([]);
|
|
71
79
|
// Add in all the invalid ids from the base personality board.
|
|
@@ -112,6 +120,19 @@ export class IntelliTouchBoard extends EasyTouchBoard {
|
|
|
112
120
|
eq.maxCircuits += emt.circuits;
|
|
113
121
|
}
|
|
114
122
|
else sys.equipment.expansions.removeItemById(3);
|
|
123
|
+
// Detect the valve expansion module.
|
|
124
|
+
if ((byte2 & 0x20) === 20) {
|
|
125
|
+
// The valve expansion module is installed so this should add 3 valves.
|
|
126
|
+
eq.maxValves += 3;
|
|
127
|
+
let vexp = eq.modules.getItemById(1, true);
|
|
128
|
+
vexp.isActive = true;
|
|
129
|
+
let mt = this.valueMaps.expansionBoards.transform(64);
|
|
130
|
+
vexp.name = mt.name;
|
|
131
|
+
vexp.desc = mt.desc;
|
|
132
|
+
vexp.type = byte1;
|
|
133
|
+
vexp.part = mt.part;
|
|
134
|
+
}
|
|
135
|
+
else eq.modules.removeItemById(1);
|
|
115
136
|
if (byte1 !== 14) sys.board.equipmentIds.invalidIds.merge([10, 19]);
|
|
116
137
|
state.equipment.model = sys.equipment.model = mt.desc;
|
|
117
138
|
state.equipment.controllerType = 'intellitouch';
|
|
@@ -135,6 +156,17 @@ export class IntelliTouchBoard extends EasyTouchBoard {
|
|
|
135
156
|
let b = sys.bodies.getItemByIndex(i);
|
|
136
157
|
b.master = 0;
|
|
137
158
|
}
|
|
159
|
+
state.equipment.maxBodies = sys.equipment.maxBodies;
|
|
160
|
+
state.equipment.maxCircuitGroups = sys.equipment.maxCircuitGroups;
|
|
161
|
+
state.equipment.maxCircuits = sys.equipment.maxCircuits;
|
|
162
|
+
state.equipment.maxFeatures = sys.equipment.maxFeatures;
|
|
163
|
+
state.equipment.maxHeaters = sys.equipment.maxHeaters;
|
|
164
|
+
state.equipment.maxLightGroups = sys.equipment.maxLightGroups;
|
|
165
|
+
state.equipment.maxPumps = sys.equipment.maxPumps;
|
|
166
|
+
state.equipment.maxSchedules = sys.equipment.maxSchedules;
|
|
167
|
+
state.equipment.maxValves = sys.equipment.maxValves;
|
|
168
|
+
state.equipment.shared = sys.equipment.shared;
|
|
169
|
+
state.equipment.dual = sys.equipment.dual;
|
|
138
170
|
state.emitControllerChange();
|
|
139
171
|
}
|
|
140
172
|
public circuits: ITTouchCircuitCommands = new ITTouchCircuitCommands(this);
|