iobroker.luxtronik2-controller 0.6.1 → 0.6.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 CHANGED
@@ -79,28 +79,74 @@ Bug reports, compatibility notes for specific firmware versions, or feature requ
79
79
  ## Changelog
80
80
 
81
81
  // ### **WORK IN PROGRESS**
82
- ### 0.6.1 (2026-07-17)
82
+ ### 0.6.4 (2026-07-23)
83
83
 
84
- - Implemented fallback mechanism: Index 80 lc is used if 117-120 are empty.
84
+ - Refactoring
85
85
 
86
- ### 0.6.0 (2026-07-16)
86
+ ### 0.6.3 (2026-07-23)
87
87
 
88
- - Added option to select the display language for state values (English/German)
88
+ **Features & Enhancements**
89
+
90
+ - **External Actor Support for ZIP (100% Flash Safe):** Added the ultimate hardware protection feature. Users can now configure a list of external actors (e.g., Shelly or Zigbee relays) via their object IDs in the Admin UI. When motion is detected, the adapter switches these relays directly, completely bypassing the heat pump and reducing Luxtronik EEPROM write cycles to absolute zero.
91
+ - **External Actor Schedule Compliance:** External ZIP actors now dynamically respect the Luxtronik ZIP time tables (Week, 5+2, or Individual days). Motion triggers will be cleanly ignored if they occur outside the permitted time windows, unless the user explicitly checks the "Disable Hardware ZIP Timers" option in the configuration.
92
+ - **Hot Water Sync for External Actors:** The adapter now automatically activates external circulation pump relays when the heat pump begins a hot water generation cycle, maximizing comfort at the tap with zero impact on flash memory wear.
93
+ - **Global EEPROM Flash Protection (Read-Before-Write):** Implemented a global interceptor for all hardware write commands (`writePumpSafe`). The adapter now caches the current heat pump parameters in real-time and strictly blocks any duplicate or redundant write requests before they are sent over the network.
94
+ - **Automated Hardware-Safe ZIP Defaults:** The adapter can now automatically enforce hardware-safe circulation pump schedules upon startup. Accounts for Luxtronik firmware behavior by intelligently setting the first start block to `00:01:00` (60 seconds) to prevent invalid zero-run rejections, while keeping ON-time at `0 min` and OFF-time at `60 min`.
95
+ - **Admin UI - Flash Wear Statistics & Guidance:** Expanded the ZIP configuration page with detailed educational information. Added hard data explaining that internal ZIP control causes between 4 and 14 physical write operations per activation, highly recommending the new external actor setup.
96
+ - **Write Cycle Monitoring:** Introduced two new virtual data points under System Info (`write_cycles_today` and `write_cycles_total`) to transparently track physical write operations sent to the heat pump. The daily counter automatically resets every night at midnight.
97
+ - **Cooling Extension & Intelligent Status:** Comprehensive integration of new cooling data points (e.g., `cooling_status`, `cooling_configured`, `opStateCooling`). Added the dynamically calculated `opStateCoolingString`.
98
+ - **Admin UI - Notification Testing:** Added a dedicated "Send Test Message" button to the configuration interface to easily verify Telegram and ioBroker Notification Center setups directly from the UI.
99
+ - **Hardened ZIP Macro Execution:** Reaffirmed and secured the ZIP demand-driven macro to exclusively use the deaeration program (Entlüftungsprogramm).
100
+ - **New Flow Rate Datapoints:** Added flow rate tracking for the heat source (`flow_rate_heat_source`, ID 173) and cooling (`flow_rate_cooling`, ID 254) to the state mapping.
101
+ - **Extended Admin UI:** All newly added cooling data points and the heat source flow rate can now be individually enabled or disabled via new checkboxes in the adapter configuration (`jsonConfig.json`).
102
+ - **New Hardware Supported:** Officially added the MSW2-9S heat pump to the model recognition (`HP_TYPES`).
103
+
104
+ **Bugfixes**
105
+
106
+ - **Motion Sensor Cooldown Logic:** Fixed an issue where the 10-minute anti-cycling cooldown for motion sensors was perpetually stuck when using external relays. The logic now correctly monitors the virtual `Activate_Zip` state's timestamp instead of the bypassed internal `ZIPout` state.
107
+ - **Virtual State Reset:** Fixed a bug where the `Activate_Zip` button/state remained `true` after an external relay timer expired, which broke subsequent cooldown calculations. It now cleanly resets to `false` when the run cycle finishes.
108
+ - **External Actor State Detection:** Fixed a logic flaw where the adapter incorrectly checked the internal heat pump state (`ZIPout`) instead of the external relay state to determine if the circulation pump was already running. It now dynamically checks `getForeignStateAsync` for configured actors, cleanly preventing redundant switch commands and allowing silent timer extensions if motion is re-detected.
109
+ - **Timer Formatting in Objects:** Fixed a bug where timer schedules (Heating, Hot Water, Circulation) were incorrectly displayed as raw seconds (e.g., `60` or `0`). Applied the internal duration formatter (`isDurationFormat: true`) globally so all time tables natively and persistently display as `HH:MM:SS` (e.g., `00:01:00`) in the ioBroker object tree.
110
+ - **Admin UI i18n Compliance:** Fixed missing language definitions (E5611) in the `jsonConfig.json` dropdown menus to strictly comply with the latest ioBroker repository checks.
111
+ - **TypeScript/Linter Strictness:** Fixed strictly typed linter errors (e.g., `@typescript-eslint/no-floating-promises`, `no-redundant-type-constituents`, and template literal typings) by correctly handling asynchronous database calls, replacing `any` with `unknown`, and strictly casting types.
112
+ - **Missing Imports:** Resolved compilation errors regarding missing helper functions (e.g., `getDpPath`) during module refactoring.
113
+ - **Cooling Operating Hours:** Fixed the `hours_cooling` datapoint. The value is now correctly read from real-time telemetry data (`raw_value`), resolving an issue where the timestamp "Jan 1, 1970" was incorrectly shown.
114
+ - **Config Cleanup:** Fixed an incorrect identifier in the admin UI (changed `sync_Gerätezeit` to `sync_deviceTime`) and removed unused/dead checkboxes.
115
+
116
+ **Technical Changes (Under the Hood)**
117
+
118
+ - **Separation of Concerns (zipManager):** Completely refactored the motion sensor and circulation pump logic. Extracted the event handling and startup initialization out of `main.ts` into `zipManager.ts`. It now also dynamically handles iterations over arrays of external actors.
119
+ - **Network Queue Isolation:** Extracted the core transmission queue (`queueWrite`, `processQueue`) from the main adapter class into `rawFunctions.ts`, achieving 100% isolation of TCP/WebSocket network logic from ioBroker state management.
120
+ - **Comprehensive Code Refactoring (DRY):** Created dedicated `convert.ts` and `utils.ts` modules to centralize time string formatting (`timeStringToSeconds`, `formatTimerSecondsToTime`) and generic helper functions (`getNumber`, `delay`).
121
+ - **Global Time Refactoring:** Centralized the duration and time calculation for status texts in the `updateStatusStrings` function.
122
+ - **i18n Support for State Names:** Updated the internal state definition (`name: string | { en: string; de?: string }`) to fully support translation objects, allowing natively translated datapoint names in the ioBroker object tree.
89
123
 
90
- ### 0.5.3 (2026-07-16)
124
+ ### 0.6.2 (2026-07-17)
91
125
 
92
- - Resolve issues which are reported by repository checker
93
- - Updates Timers Format
94
- - Time_WPein_akt 00:00:01 --> 00:00:00 if VD1 is false
95
- - Fallback if Firmware > 3 for extStateStr & StateStr
126
+ **Added**
96
127
 
97
- ### 0.5.2 (2026-07-15)
128
+ - Bilingual support (i18n): Full support for English and German (adapter settings, state names, dropdown menus, and dynamic status texts).
129
+ - Language selection: Added a new dropdown menu in the adapter settings to freely choose the preferred output language for the ioBroker object tree.
130
+ - Firmware 3.x compatibility: Implemented an intelligent fallback system that dynamically calculates the status texts (heatpump_state_string) and runtime (heatpump_duration) from the main operating state. This is required because modern Luxtronik controllers no longer transmit the old LCD text lines.
98
131
 
99
- - Resolve issues which are reported by repository checker
132
+ **Fixed**
100
133
 
101
- ### 0.5.1 (2026-07-14)
134
+ - Incorrect heating state (Frost protection): Fixed an issue where a switched-off heating system was incorrectly displayed as "Frost protection". The code now evaluates the correct index for the heating operating state (opStateHeating / 125) instead of incorrectly calculating it via the parameter.
135
+ - Timer display: Restored the clean HH:MM:SS formatting in the ioBroker UI without the annoying "s" (seconds) by introducing an internal isDurationFormat flag.
136
+ - Timer glitch fixed: When the compressor is idle, 00:00:01 (1 second) was often incorrectly displayed. This is now cleanly filtered to 00:00:00.
137
+ - ioBroker Repo-Checker warnings: Added the missing write: true property to the timer table selection states (role: "level") to fix the E1011 error.
102
138
 
103
- - Fix issue notify last error after instance restart
139
+ **Technical**
140
+
141
+ - Fixed ESLint warnings (dot-notation) for object properties.
142
+
143
+ ### 0.6.1 (2026-07-17)
144
+
145
+ - Implemented fallback mechanism: Index 80 lc is used if 117-120 are empty.
146
+
147
+ ### 0.6.0 (2026-07-16)
148
+
149
+ - Added option to select the display language for state values (English/German)
104
150
 
105
151
  ## License
106
152
 
@@ -333,78 +333,6 @@
333
333
  "md": 6,
334
334
  "lg": 6,
335
335
  "xl": 6
336
- },
337
- "zip_optimierung_aktiv": {
338
- "type": "checkbox",
339
- "label": {
340
- "en": "Allow ZIP & HUP voltage optimization",
341
- "de": "ZIP- & HUP-Spannungsoptimierung zulassen"
342
- },
343
- "help": {
344
- "en": "Allows dynamic overwriting of ZIP runtimes and HUP voltages during active cycles",
345
- "de": "Erlaubt das dynamische Überschreiben der ZIP-Laufzeiten und HUP-Spannungen während aktiver Takte"
346
- },
347
- "default": true,
348
- "xs": 12,
349
- "sm": 6,
350
- "md": 4,
351
- "lg": 4,
352
- "xl": 4
353
- },
354
- "headerZip": {
355
- "type": "header",
356
- "text": {
357
- "en": "Default values: Circulation pump",
358
- "de": "Vorgabewerte Zirkulationspumpe"
359
- },
360
- "size": 4,
361
- "xs": 12,
362
- "sm": 12,
363
- "md": 12,
364
- "lg": 12,
365
- "xl": 12
366
- },
367
- "zip_aktiv": {
368
- "type": "number",
369
- "label": {
370
- "en": "ZIP duration ON (s)",
371
- "de": "ZIP Dauer an (s)"
372
- },
373
- "default": 120,
374
- "disabled": "!data.zip_optimierung_aktiv",
375
- "xs": 12,
376
- "sm": 12,
377
- "md": 4,
378
- "lg": 4,
379
- "xl": 4
380
- },
381
- "zip_last_run_min": {
382
- "type": "number",
383
- "label": {
384
- "en": "ZIP duration OFF (s)",
385
- "de": "ZIP Dauer aus (s)"
386
- },
387
- "disabled": "!data.zip_optimierung_aktiv",
388
- "default": 600,
389
- "xs": 12,
390
- "sm": 12,
391
- "md": 4,
392
- "lg": 4,
393
- "xl": 4
394
- },
395
- "zip_aktiv_ww": {
396
- "type": "number",
397
- "label": {
398
- "en": "ZIP duration during hot water generation (s)",
399
- "de": "ZIP Dauer bei Warmwassererzeugung (s)"
400
- },
401
- "disabled": "!data.zip_optimierung_aktiv",
402
- "default": 600,
403
- "xs": 12,
404
- "sm": 12,
405
- "md": 4,
406
- "lg": 4,
407
- "xl": 4
408
336
  }
409
337
  }
410
338
  },
@@ -564,19 +492,6 @@
564
492
  "lg": 6,
565
493
  "xl": 6
566
494
  },
567
- "sync_temperature_hot_water": {
568
- "type": "checkbox",
569
- "label": {
570
- "en": "Hot water temperature",
571
- "de": "Warmwassertemperatur"
572
- },
573
- "default": true,
574
- "xs": 12,
575
- "sm": 12,
576
- "md": 6,
577
- "lg": 6,
578
- "xl": 6
579
- },
580
495
  "sync_temperature_heat_source_in": {
581
496
  "type": "checkbox",
582
497
  "label": {
@@ -696,6 +611,19 @@
696
611
  "lg": 6,
697
612
  "xl": 6
698
613
  },
614
+ "sync_flow_rate_heat_source": {
615
+ "type": "checkbox",
616
+ "label": {
617
+ "en": "Flow rate heat source (WQ)",
618
+ "de": "Durchfluss Wärmequelle (WQ)"
619
+ },
620
+ "default": true,
621
+ "xs": 12,
622
+ "sm": 12,
623
+ "md": 6,
624
+ "lg": 6,
625
+ "xl": 6
626
+ },
699
627
  "sync_EVUin": {
700
628
  "type": "checkbox",
701
629
  "label": {
@@ -2043,7 +1971,7 @@
2043
1971
  "lg": 6,
2044
1972
  "xl": 6
2045
1973
  },
2046
- "sync_Gerätezeit": {
1974
+ "sync_deviceTime": {
2047
1975
  "type": "checkbox",
2048
1976
  "label": {
2049
1977
  "en": "Device time",
@@ -2148,6 +2076,97 @@
2148
2076
  "md": 6,
2149
2077
  "lg": 6,
2150
2078
  "xl": 6
2079
+ },
2080
+ "sync_cooling_status": {
2081
+ "type": "checkbox",
2082
+ "label": {
2083
+ "en": "Cooling status",
2084
+ "de": "Kühlstatus"
2085
+ },
2086
+ "default": true,
2087
+ "xs": 12,
2088
+ "sm": 12,
2089
+ "md": 6,
2090
+ "lg": 6,
2091
+ "xl": 6
2092
+ },
2093
+ "sync_cooling_configured": {
2094
+ "type": "checkbox",
2095
+ "label": {
2096
+ "en": "Cooling configured",
2097
+ "de": "Kühlung konfiguriert"
2098
+ },
2099
+ "default": true,
2100
+ "xs": 12,
2101
+ "sm": 12,
2102
+ "md": 6,
2103
+ "lg": 6,
2104
+ "xl": 6
2105
+ },
2106
+ "sync_cooling_release": {
2107
+ "type": "checkbox",
2108
+ "label": {
2109
+ "en": "Cooling release",
2110
+ "de": "Kühlfreigabe"
2111
+ },
2112
+ "default": true,
2113
+ "xs": 12,
2114
+ "sm": 12,
2115
+ "md": 6,
2116
+ "lg": 6,
2117
+ "xl": 6
2118
+ },
2119
+ "sync_flow_rate_cooling": {
2120
+ "type": "checkbox",
2121
+ "label": {
2122
+ "en": "Flow rate cooling",
2123
+ "de": "Durchflussmenge Kühlung"
2124
+ },
2125
+ "default": true,
2126
+ "xs": 12,
2127
+ "sm": 12,
2128
+ "md": 6,
2129
+ "lg": 6,
2130
+ "xl": 6
2131
+ },
2132
+ "sync_opStateCooling": {
2133
+ "type": "checkbox",
2134
+ "label": {
2135
+ "en": "Operating state cooling",
2136
+ "de": "Betriebszustand Kühlung"
2137
+ },
2138
+ "default": true,
2139
+ "xs": 12,
2140
+ "sm": 12,
2141
+ "md": 6,
2142
+ "lg": 6,
2143
+ "xl": 6
2144
+ },
2145
+ "sync_ID_WEB_FreigabKuehl": {
2146
+ "type": "checkbox",
2147
+ "label": {
2148
+ "en": "State cooling",
2149
+ "de": "Betriebszustand Kühlung"
2150
+ },
2151
+ "default": true,
2152
+ "xs": 12,
2153
+ "sm": 12,
2154
+ "md": 6,
2155
+ "lg": 6,
2156
+ "xl": 6
2157
+ },
2158
+ "sync_opStateCoolingString": {
2159
+ "type": "checkbox",
2160
+ "label": {
2161
+ "en": "Operating state cooling text",
2162
+ "de": "Betriebszustand Kühlung Text"
2163
+ },
2164
+ "default": true,
2165
+ "xs": 12,
2166
+ "sm": 12,
2167
+ "md": 6,
2168
+ "lg": 6,
2169
+ "xl": 6
2151
2170
  }
2152
2171
  }
2153
2172
  }
@@ -2244,23 +2263,136 @@
2244
2263
  },
2245
2264
  "command": "testTelegram",
2246
2265
  "color": "primary",
2247
- "icon": "send",
2266
+ "variant": "outlined",
2267
+ "icon": "notifications",
2248
2268
  "xs": 12,
2249
2269
  "sm": 12,
2250
- "md": 6,
2251
- "lg": 6,
2252
- "xl": 6
2270
+ "md": 3,
2271
+ "lg": 3,
2272
+ "xl": 3
2253
2273
  }
2254
2274
  }
2255
2275
  },
2256
- "motionSensorsTab": {
2276
+ "zipTab": {
2257
2277
  "type": "panel",
2258
2278
  "label": {
2259
- "en": "Motion sensors",
2260
- "de": "Bewegungssensoren"
2279
+ "en": "Circulation pump",
2280
+ "de": "Zirkulationspumpe"
2261
2281
  },
2262
- "icon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8l2.1 2v6h2v-7.5l-2.1-2l.6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1c-.3 0-.5.1-.8.1L6 8.3V13h2V9.6l1.8-.7z'/%3E%3C/svg%3E",
2282
+ "icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgoJPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgLz4KCTxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTEwLjU4OCAxNC40MTNRMTAgMTMuODI1IDEwIDEzcTAtLjU3NS4yMzgtMS4xMzd0LjkxMi0xLjYxM2wuNDI1LS42MjVxLjE1LS4yMjUuNDI1LS4yMjV0LjQyNS4yMjVsLjQyNS42MjVxLjY3NSAxLjA1LjkxMyAxLjYxM1QxNCAxM3EwIC44MjUtLjU4NyAxLjQxM1QxMiAxNXQtMS40MTItLjU4N00zIDE3aDQuMXEtLjQyNS0uNDI1LS43ODctLjkyNVQ1LjY3NSAxNUgzem0xMi41MzgtMS40NjNRMTcgMTQuMDc2IDE3IDEydC0xLjQ2My0zLjUzN1QxMiA3VDguNDYzIDguNDYzVDcgMTJ0MS40NjMgMy41MzhUMTIgMTd0My41MzgtMS40NjNNMTguMzI1IDlIMjFWN2gtNC4xcS40MjUuNDI1Ljc4OC45MjVUMTguMzI1IDlNMyAxOXEwIC40MjUtLjI4OC43MTNUMiAyMHQtLjcxMi0uMjg4VDEgMTl2LTZxMC0uNDI1LjI4OC0uNzEyVDIgMTJ0LjcxMy4yODhUMyAxM2gyLjA3NXEtLjA1LS4yNS0uMDYyLS40ODhUNSAxMnEwLTIuOTI1IDIuMDM4LTQuOTYyVDEyIDVoOXEwLS40MjUuMjg4LS43MTJUMjIgNHQuNzEzLjI4OFQyMyA1djZxMCAuNDI1LS4yODguNzEzVDIyIDEydC0uNzEyLS4yODhUMjEgMTFoLTIuMDc1cS4wNS4yNS4wNjMuNDg4VDE5IDEycTAgMi45MjUtMi4wMzcgNC45NjNUMTIgMTl6bTAtMnYtMnptMTgtOFY3em0tOSAzIiAvPgo8L3N2Zz4K",
2263
2283
  "items": {
2284
+ "informationZip": {
2285
+ "type": "staticText",
2286
+ "text": {
2287
+ "en": "By default, the circulation pump (ZIP) is controlled via fixed switching and cycle times of the heat pump. Since this rigid scheduling wastes energy, this adapter offers an intelligent optimization:<br><br>• <b>Demand-driven:</b> By linking motion detectors or buttons (boolean datapoints), the ZIP is only activated when hot water is actually needed.<br>• <b>Safe Operation:</b> The adapter activates the pump via the internal manual control, bypassing the regular timer tables to protect the hardware.<br><br>💡 <b>Tip! Hardware protection (EEPROM Flash Wear)</b><br>To minimize background write operations in the controller, set the base ZIP times once to the <i>Mon-Sun</i> table and enter <i>00:00 - 00:00</i>. Set the cycle times to <b>Off: 60 minutes</b> and <b>On: 0 minutes</b>.<br><br><b>Info:</b> To reduce write operations on the controller, it is highly recommended to control the ZIP(s) via an external actor ➔ <b>0 write operations</b> on the controller!<br><i>For comparison:</i> An activation via the Luxtronik2 controller requires 4 write operations for the deaeration program. Using the ZIP control table requires between 4 (best case) and 14 (worst case) write operations in the flash memory per ZIP job.",
2288
+ "de": "Die Zirkulationspumpe (ZIP) wird standardmäßig über feste Schalt- und Taktzeiten der Wärmepumpe gesteuert. Da diese starre Zeitsteuerung oft unnötig Energie verbraucht, bietet dieser Adapter eine intelligente Optimierung:<br><br>• <b>Bedarfsgesteuert:</b> Durch die Verknüpfung von Bewegungsmeldern oder Tastern (Boolean-Datenpunkte) wird die ZIP nur dann aktiviert, wenn tatsächlich Warmwasser benötigt wird.<br>• <b>Funktionsweise:</b> Der Adapter startet die Pumpe über die interne Handsteuerung und umgeht die reguläre Schaltuhr, um die Hardware zu schonen.<br><br>💡 <b>Tipp! Hardware-Schutz (EEPROM Flash-Wear)</b><br>Um das ständige Schreiben im Regler zu minimieren, stellen Sie die regulären ZIP-Zeiten einmalig auf die Tabelle <i>Mo-So</i> und tragen Sie dort <i>00:00 - 00:00</i> ein. Die Taktzeiten setzen Sie auf <b>Aus: 60 Minuten</b> und <b>An: 0 Minuten</b>.<br><br><b>Info:</b> Um die Schreibvorgänge auf dem Regler zu reduzieren, ist es empfehlenswert, die ZIP(s) über einen externen Aktor zu steuern ➔ <b>0 Schreibvorgänge</b> im Regler!<br><i>Zum Vergleich:</i> Eine Aktivierung per Luxtronik2 Regler benötigt für das Entlüftungsprogramm 4 Schreibvorgänge. Über die ZIP-Steuertabelle sind es im besten Fall 4 und im schlechtesten Fall 14 Schreibvorgänge im Flash-Speicher pro Zip Durchlauf."
2289
+ },
2290
+ "style": { "height": "120px" },
2291
+ "xs": 12,
2292
+ "sm": 12,
2293
+ "md": 12,
2294
+ "lg": 12,
2295
+ "xl": 12
2296
+ },
2297
+ "abstandZip1": {
2298
+ "type": "staticText",
2299
+ "text": "",
2300
+ "style": { "height": "40px" },
2301
+ "xs": 12,
2302
+ "sm": 12,
2303
+ "md": 12,
2304
+ "lg": 12,
2305
+ "xl": 12
2306
+ },
2307
+ "zip_lWP_aktiv": {
2308
+ "type": "checkbox",
2309
+ "label": {
2310
+ "en": "Disable base ZIP values",
2311
+ "de": "Deaktivere reguläre ZIP Werte"
2312
+ },
2313
+ "help": {
2314
+ "en": "Setting the cycle times on and off",
2315
+ "de": "Setzen der Taktzeiten ein und aus"
2316
+ },
2317
+ "default": true,
2318
+ "xs": 12,
2319
+ "sm": 4,
2320
+ "md": 2,
2321
+ "lg": 2,
2322
+ "xl": 2
2323
+ },
2324
+ "zip_optimierung_aktiv": {
2325
+ "type": "checkbox",
2326
+ "label": {
2327
+ "en": "Allow ZIP optimization",
2328
+ "de": "ZIP-Optimierung zulassen"
2329
+ },
2330
+ "help": {
2331
+ "en": "Allows dynamic overwriting of ZIP runtimes during active cycles",
2332
+ "de": "Erlaubt das dynamische Überschreiben der ZIP-Laufzeiten während aktiver Takte"
2333
+ },
2334
+ "default": true,
2335
+ "xs": 12,
2336
+ "sm": 4,
2337
+ "md": 2,
2338
+ "lg": 2,
2339
+ "xl": 2
2340
+ },
2341
+ "headerZip": {
2342
+ "type": "header",
2343
+ "text": {
2344
+ "en": "Values Circulation pump optimisation",
2345
+ "de": "Vorgabewerte Zirkulationspumpenoptimierung"
2346
+ },
2347
+ "size": 3,
2348
+ "xs": 12,
2349
+ "sm": 12,
2350
+ "md": 12,
2351
+ "lg": 12,
2352
+ "xl": 12
2353
+ },
2354
+ "zip_aktiv": {
2355
+ "type": "number",
2356
+ "label": {
2357
+ "en": "ZIP duration ON (s)",
2358
+ "de": "ZIP Dauer an (s)"
2359
+ },
2360
+ "default": 120,
2361
+ "disabled": "!data.zip_optimierung_aktiv",
2362
+ "xs": 12,
2363
+ "sm": 12,
2364
+ "md": 4,
2365
+ "lg": 4,
2366
+ "xl": 4
2367
+ },
2368
+ "zip_last_run_min": {
2369
+ "type": "number",
2370
+ "label": {
2371
+ "en": "ZIP duration OFF (s)",
2372
+ "de": "ZIP Dauer aus (s)"
2373
+ },
2374
+ "disabled": "!data.zip_optimierung_aktiv",
2375
+ "default": 1200,
2376
+ "xs": 12,
2377
+ "sm": 12,
2378
+ "md": 4,
2379
+ "lg": 4,
2380
+ "xl": 4
2381
+ },
2382
+ "zip_aktiv_ww": {
2383
+ "type": "number",
2384
+ "label": {
2385
+ "en": "ZIP duration ON Hotwate operation (s)",
2386
+ "de": "ZIP Dauer an bei Warmwasserbetrieb (s)"
2387
+ },
2388
+ "default": 600,
2389
+ "disabled": "!data.zip_optimierung_aktiv",
2390
+ "xs": 12,
2391
+ "sm": 12,
2392
+ "md": 4,
2393
+ "lg": 4,
2394
+ "xl": 4
2395
+ },
2264
2396
  "motion_sensors_aktiv": {
2265
2397
  "type": "checkbox",
2266
2398
  "label": {
@@ -2273,7 +2405,7 @@
2273
2405
  "lg": 12,
2274
2406
  "xl": 12
2275
2407
  },
2276
- "headerSensors": {
2408
+ "headerMotionSensors": {
2277
2409
  "type": "header",
2278
2410
  "text": {
2279
2411
  "en": "Motion sensors for circulation pump (ZIP)",
@@ -2304,7 +2436,7 @@
2304
2436
  "width": "30%"
2305
2437
  },
2306
2438
  {
2307
- "type": "text",
2439
+ "type": "objectId",
2308
2440
  "attr": "oid",
2309
2441
  "title": {
2310
2442
  "en": "Select Object-ID",
@@ -2313,6 +2445,51 @@
2313
2445
  "width": "70%"
2314
2446
  }
2315
2447
  ]
2448
+ },
2449
+ "headerActors": {
2450
+ "type": "header",
2451
+ "text": {
2452
+ "en": "External relays/actors for circulation pump",
2453
+ "de": "Externe Relais/Aktoren für Zirkulationspumpe"
2454
+ },
2455
+ "size": 4,
2456
+ "xs": 12,
2457
+ "sm": 12,
2458
+ "md": 12,
2459
+ "lg": 12,
2460
+ "xl": 12
2461
+ },
2462
+ "actors": {
2463
+ "type": "table",
2464
+ "xs": 12,
2465
+ "sm": 12,
2466
+ "md": 12,
2467
+ "lg": 12,
2468
+ "xl": 12,
2469
+ "items": [
2470
+ {
2471
+ "type": "text",
2472
+ "attr": "name",
2473
+ "title": {
2474
+ "en": "Name (e.g. Zip1)",
2475
+ "de": "Bezeichnung (z.B. Zip1)"
2476
+ },
2477
+ "width": "30%"
2478
+ },
2479
+ {
2480
+ "type": "objectId",
2481
+ "attr": "zip_external_relay_id",
2482
+ "title": {
2483
+ "en": "External Relay Object ID (e.g. shelly.0.Relay0.Switch)",
2484
+ "de": "Objekt-ID des externen Relais (z.B. shelly.0.Relay0.Switch)"
2485
+ },
2486
+ "help": {
2487
+ "en": "If filled, this state will be switched instead of the internal Luxtronik pump.",
2488
+ "de": "Wenn ausgefüllt, wird dieser Datenpunkt (true/false) anstelle der Luxtronik-Pumpe geschaltet. 100% Flash-Schutz!"
2489
+ },
2490
+ "width": "70%"
2491
+ }
2492
+ ]
2316
2493
  }
2317
2494
  }
2318
2495
  },
@@ -2365,14 +2542,32 @@
2365
2542
  {
2366
2543
  "label": {
2367
2544
  "en": "Telemetry (rawValues)",
2368
- "de": "Messwert (rawValues)"
2545
+ "de": "Messwert (rawValues)",
2546
+ "ru": "Telemetry (rawValues)",
2547
+ "pt": "Telemetry (rawValues)",
2548
+ "nl": "Telemetry (rawValues)",
2549
+ "fr": "Telemetry (rawValues)",
2550
+ "it": "Telemetry (rawValues)",
2551
+ "es": "Telemetry (rawValues)",
2552
+ "pl": "Telemetry (rawValues)",
2553
+ "uk": "Telemetry (rawValues)",
2554
+ "zh-cn": "Telemetry (rawValues)"
2369
2555
  },
2370
2556
  "value": "value"
2371
2557
  },
2372
2558
  {
2373
2559
  "label": {
2374
2560
  "en": "Parameter (rawParams)",
2375
- "de": "Parameter (rawParams)"
2561
+ "de": "Parameter (rawParams)",
2562
+ "ru": "Parameter (rawParams)",
2563
+ "pt": "Parameter (rawParams)",
2564
+ "nl": "Parameter (rawParams)",
2565
+ "fr": "Parameter (rawParams)",
2566
+ "it": "Parameter (rawParams)",
2567
+ "es": "Parameter (rawParams)",
2568
+ "pl": "Parameter (rawParams)",
2569
+ "uk": "Parameter (rawParams)",
2570
+ "zh-cn": "Parameter (rawParams)"
2376
2571
  },
2377
2572
  "value": "parameter"
2378
2573
  }
@@ -2399,28 +2594,64 @@
2399
2594
  {
2400
2595
  "label": {
2401
2596
  "en": "Number",
2402
- "de": "Zahl"
2597
+ "de": "Zahl",
2598
+ "ru": "Number",
2599
+ "pt": "Number",
2600
+ "nl": "Number",
2601
+ "fr": "Number",
2602
+ "it": "Number",
2603
+ "es": "Number",
2604
+ "pl": "Number",
2605
+ "uk": "Number",
2606
+ "zh-cn": "Number"
2403
2607
  },
2404
2608
  "value": "number"
2405
2609
  },
2406
2610
  {
2407
2611
  "label": {
2408
2612
  "en": "Text",
2409
- "de": "Text"
2613
+ "de": "Text",
2614
+ "ru": "Text",
2615
+ "pt": "Text",
2616
+ "nl": "Text",
2617
+ "fr": "Text",
2618
+ "it": "Text",
2619
+ "es": "Text",
2620
+ "pl": "Text",
2621
+ "uk": "Text",
2622
+ "zh-cn": "Text"
2410
2623
  },
2411
2624
  "value": "string"
2412
2625
  },
2413
2626
  {
2414
2627
  "label": {
2415
2628
  "en": "True/False",
2416
- "de": "Wahr/Falsch"
2629
+ "de": "Wahr/Falsch",
2630
+ "ru": "True/False",
2631
+ "pt": "True/False",
2632
+ "nl": "True/False",
2633
+ "fr": "True/False",
2634
+ "it": "True/False",
2635
+ "es": "True/False",
2636
+ "pl": "True/False",
2637
+ "uk": "True/False",
2638
+ "zh-cn": "True/False"
2417
2639
  },
2418
2640
  "value": "boolean"
2419
2641
  },
2420
2642
  {
2421
2643
  "label": {
2422
2644
  "en": "Date/Time (Unix)",
2423
- "de": "Datum/Uhrzeit (Unix)"
2645
+ "de": "Datum/Uhrzeit (Unix)",
2646
+ "ru": "Date/Time (Unix)",
2647
+ "pt": "Date/Time (Unix)",
2648
+ "nl": "Date/Time (Unix)",
2649
+ "fr": "Date/Time (Unix)",
2650
+ "it": "Date/Time (Unix)",
2651
+ "es": "Date/Time (Unix)",
2652
+ "pl": "Date/Time (Unix)",
2653
+ "uk": "Date/Time (Unix)",
2654
+ "zh-cn": "Date/Time (Unix)"
2424
2655
  },
2425
2656
  "value": "datetime"
2426
2657
  }
@@ -24,6 +24,7 @@ __export(actionHandlers_exports, {
24
24
  module.exports = __toCommonJS(actionHandlers_exports);
25
25
  var import_logger = require("./logger");
26
26
  var import_stateMapping = require("./stateMapping");
27
+ var import_utils = require("./utils");
27
28
  const CONSTANTS = {
28
29
  /** Status-Code für den Ruhezustand der Anlage */
29
30
  STATE_IDLE: 5,
@@ -32,9 +33,6 @@ const CONSTANTS = {
32
33
  /** Temporäre Hysterese für die Zwangswarmwasserbereitung */
33
34
  FORCE_WW_HYSTERESIS: 1
34
35
  };
35
- function getNumber(state, fallback = 0) {
36
- return typeof (state == null ? void 0 : state.val) === "number" ? state.val : fallback;
37
- }
38
36
  async function handleZwangswarmwasser(adapter, id) {
39
37
  try {
40
38
  const localId = id.replace(`${adapter.namespace}.`, "");
@@ -43,8 +41,8 @@ async function handleZwangswarmwasser(adapter, id) {
43
41
  adapter.getStateAsync((0, import_stateMapping.getDpPath)("Wamwassertemperatur_Ist")),
44
42
  adapter.getStateAsync((0, import_stateMapping.getDpPath)("Wamwassertemperatur_Soll"))
45
43
  ]);
46
- const wwIst = getNumber(wwIstState);
47
- const wwSoll = getNumber(wwSollState);
44
+ const wwIst = (0, import_utils.getNumber)(wwIstState);
45
+ const wwSoll = (0, import_utils.getNumber)(wwSollState);
48
46
  if (wwIst >= wwSoll - 1) {
49
47
  (0, import_logger.writeLog)(
50
48
  `Forced hot water: Ignored - Actual (${wwIst}\xB0C) is already sufficient (Target: ${wwSoll}\xB0C).`,
@@ -72,10 +70,10 @@ async function handleZwangsheizen(adapter, id) {
72
70
  adapter.getStateAsync((0, import_stateMapping.getDpPath)("temperature_target_return")),
73
71
  adapter.getStateAsync((0, import_stateMapping.getDpPath)("returnTemperatureHysteresis"))
74
72
  ]);
75
- const bzVal = getNumber(bzState, -1);
76
- const ruecklauf = getNumber(ruecklaufState);
77
- const ruecklaufSoll = getNumber(ruecklaufSollState);
78
- const hysterese = getNumber(hystereseState);
73
+ const bzVal = (0, import_utils.getNumber)(bzState, -1);
74
+ const ruecklauf = (0, import_utils.getNumber)(ruecklaufState);
75
+ const ruecklaufSoll = (0, import_utils.getNumber)(ruecklaufSollState);
76
+ const hysterese = (0, import_utils.getNumber)(hystereseState);
79
77
  if (bzVal !== CONSTANTS.STATE_IDLE) {
80
78
  (0, import_logger.writeLog)(`Forced heating: Ignored - System is not idle (Status: ${bzVal}).`, "info");
81
79
  return;