iobroker.poolcontrol 1.2.3 → 1.2.4
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/README.md +3 -0
- package/io-package.json +5 -1
- package/lib/helpers/actuatorsHelper.js +30 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -196,6 +196,9 @@ New features are added regularly – please refer to the changelog.
|
|
|
196
196
|
|
|
197
197
|
## Changelog
|
|
198
198
|
|
|
199
|
+
### 1.2.4
|
|
200
|
+
Release: 07.03.2026
|
|
201
|
+
- Fix: actuatorsHelper did not synchronize instance configuration with internal states (active/name). Additional actuators could not be activated.
|
|
199
202
|
### 1.2.3
|
|
200
203
|
Released: 06.03.2026
|
|
201
204
|
- Replaced native timers (setTimeout / setInterval) with adapter timers (adapter.setTimeout / adapter.setInterval)
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "poolcontrol",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.2.4": {
|
|
7
|
+
"en": "Fix: actuatorsHelper did not synchronize instance configuration with internal states (active/name). Additional actuators could not be activated.",
|
|
8
|
+
"de": "Fix: actuatorsHelper synchronisierte die Instanzkonfiguration nicht mit den internen States (active/name). Zusatzaktoren konnten dadurch nicht aktiviert werden."
|
|
9
|
+
},
|
|
6
10
|
"1.2.3": {
|
|
7
11
|
"en": "Replaced native timers with adapter timers and improved timer cleanup",
|
|
8
12
|
"de": "Native Timer durch Adapter-Timer ersetzt und Timer-Cleanup verbessert",
|
|
@@ -24,12 +24,16 @@ const actuatorsHelper = {
|
|
|
24
24
|
// ======================================================
|
|
25
25
|
// Init
|
|
26
26
|
// ======================================================
|
|
27
|
-
init(adapter) {
|
|
27
|
+
async init(adapter) {
|
|
28
28
|
this.adapter = adapter;
|
|
29
29
|
|
|
30
30
|
// 🔥 WICHTIG: Actuator-States abonnieren
|
|
31
31
|
this.adapter.subscribeStates('actuators.*');
|
|
32
32
|
|
|
33
|
+
// FIX: Config-Werte in interne States übernehmen
|
|
34
|
+
|
|
35
|
+
await this._syncConfigToStates();
|
|
36
|
+
|
|
33
37
|
this.adapter.log.info('[actuatorsHelper] initialized');
|
|
34
38
|
},
|
|
35
39
|
|
|
@@ -64,6 +68,31 @@ const actuatorsHelper = {
|
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
70
|
|
|
71
|
+
// ======================================================
|
|
72
|
+
// FIX: Config -> interne States synchronisieren
|
|
73
|
+
// ======================================================
|
|
74
|
+
async _syncConfigToStates() {
|
|
75
|
+
const cfg = this.adapter.config || {};
|
|
76
|
+
|
|
77
|
+
for (let i = 1; i <= 3; i++) {
|
|
78
|
+
// Beleuchtung
|
|
79
|
+
await this._set(`actuators.lighting.light${i}.active`, !!cfg[`light_${i}_active`]);
|
|
80
|
+
await this._set(`actuators.lighting.light${i}.name`, String(cfg[`light_${i}_name`] || ''));
|
|
81
|
+
|
|
82
|
+
if (!cfg[`light_${i}_active`]) {
|
|
83
|
+
await this._set(`actuators.lighting.light${i}.status`, 'DEAKTIVIERT');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Zusatzpumpen
|
|
87
|
+
await this._set(`actuators.extrapumps.pump${i}.active`, !!cfg[`extrapump_${i}_active`]);
|
|
88
|
+
await this._set(`actuators.extrapumps.pump${i}.name`, String(cfg[`extrapump_${i}_name`] || ''));
|
|
89
|
+
|
|
90
|
+
if (!cfg[`extrapump_${i}_active`]) {
|
|
91
|
+
await this._set(`actuators.extrapumps.pump${i}.status`, 'DEAKTIVIERT');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
|
|
67
96
|
// ======================================================
|
|
68
97
|
// Switch EIN / AUS
|
|
69
98
|
// ======================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.poolcontrol",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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",
|