iobroker.poolcontrol 1.3.10 → 1.3.12

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/main.js CHANGED
@@ -28,6 +28,8 @@ const photovoltaicInsightsHelper = require('./lib/helpers/photovoltaicInsightsHe
28
28
  const aiHelper = require('./lib/helpers/aiHelper');
29
29
  const aiForecastHelper = require('./lib/helpers/aiForecastHelper');
30
30
  const aiChemistryHelpHelper = require('./lib/helpers/aiChemistryHelpHelper');
31
+ const chemistryPhHelper = require('./lib/helpers/chemistryPhHelper');
32
+ const chemistryTdsHelper = require('./lib/helpers/chemistryTdsHelper');
31
33
  const controlHelper = require('./lib/helpers/controlHelper');
32
34
  const controlHelper2 = require('./lib/helpers/controlHelper2');
33
35
  const debugLogHelper = require('./lib/helpers/debugLogHelper');
@@ -59,6 +61,8 @@ const { createDebugLogStates } = require('./lib/stateDefinitions/debugLogStates'
59
61
  const { createInfoStates } = require('./lib/stateDefinitions/infoStates');
60
62
  const { createAiStates } = require('./lib/stateDefinitions/aiStates'); // NEU: KI-States
61
63
  const { createAiChemistryHelpStates } = require('./lib/stateDefinitions/aiChemistryHelpStates'); // NEU: KI-Chemie-Hilfe
64
+ const { createChemistryPhStates } = require('./lib/stateDefinitions/chemistryPhStates');
65
+ const { createChemistryTdsStates } = require('./lib/stateDefinitions/chemistryTdsStates');
62
66
  const { createHeatStates } = require('./lib/stateDefinitions/heatStates');
63
67
  const { createActuatorsStates } = require('./lib/stateDefinitions/actuatorsStates');
64
68
  const { createSolarInsightsStates } = require('./lib/stateDefinitions/solarInsightsStates');
@@ -162,6 +166,12 @@ class Poolcontrol extends utils.Adapter {
162
166
  await createAiStates(this); // NEU: KI-States anlegen
163
167
  await createAiChemistryHelpStates(this); // NEU: KI-Chemie-Hilfe-States
164
168
 
169
+ // --- Chemistry / pH evaluation ---
170
+ await createChemistryPhStates(this);
171
+
172
+ // --- Chemistry / TDS evaluation ---
173
+ await createChemistryTdsStates(this);
174
+
165
175
  // --- Zusatz-Aktoren (Beleuchtung & Zusatzpumpen) ---
166
176
  await createActuatorsStates(this);
167
177
 
@@ -190,6 +200,8 @@ class Poolcontrol extends utils.Adapter {
190
200
  aiHelper.init(this);
191
201
  aiForecastHelper.init(this);
192
202
  aiChemistryHelpHelper.init(this);
203
+ chemistryPhHelper.init(this);
204
+ chemistryTdsHelper.init(this);
193
205
  frostHelper.init(this);
194
206
  statusHelper.init(this);
195
207
  infoHelper.init(this);
@@ -282,6 +294,12 @@ class Poolcontrol extends utils.Adapter {
282
294
  if (photovoltaicInsightsHelper.cleanup) {
283
295
  photovoltaicInsightsHelper.cleanup();
284
296
  }
297
+ if (chemistryPhHelper.cleanup) {
298
+ chemistryPhHelper.cleanup();
299
+ }
300
+ if (chemistryTdsHelper.cleanup) {
301
+ chemistryTdsHelper.cleanup();
302
+ }
285
303
  if (aiChemistryHelpHelper.cleanup) {
286
304
  aiChemistryHelpHelper.cleanup();
287
305
  }
@@ -410,6 +428,16 @@ class Poolcontrol extends utils.Adapter {
410
428
  } catch (e) {
411
429
  this.log.warn(`[main] Error in aiChemistryHelpHelper.handleStateChange: ${e.message}`);
412
430
  }
431
+ try {
432
+ await chemistryPhHelper.handleStateChange(id, state);
433
+ } catch (e) {
434
+ this.log.warn(`[chemistryPhHelper] Error in handleStateChange: ${e.message}`);
435
+ }
436
+ try {
437
+ await chemistryTdsHelper.handleStateChange(id, state);
438
+ } catch (e) {
439
+ this.log.warn(`[chemistryTdsHelper] Error in handleStateChange: ${e.message}`);
440
+ }
413
441
  try {
414
442
  statusHelper.handleStateChange(id, state);
415
443
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.poolcontrol",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Steuerung & Automatisierung für den Pool (Pumpe, Heizung, Ventile, Sensoren).",
5
5
  "author": "DasBo1975 <dasbo1975@outlook.de>",
6
6
  "homepage": "https://github.com/DasBo1975/ioBroker.poolcontrol",