iobroker.luxtronik2-controller 1.0.1 → 1.0.3

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
@@ -11,54 +11,64 @@
11
11
 
12
12
  ## luxtronik2-controller adapter for ioBroker
13
13
 
14
- This ioBroker adapter enables the local control, optimization, and monitoring of heat pumps with [Luxtronik 2.x / 3.x controllers](https://www.alpha-innotec.com/en/products/accessories/control/luxtronik) (e.g., Alpha Innotec, Novelan). The adapter is written entirely in TypeScript.
14
+ **100% local monitoring, control, and optimization** for heat pumps with [Luxtronik 2.x / 3.x controllers](https://www.alpha-innotec.com/en/products/accessories/control/luxtronik) (Alpha Innotec, Novelan, Buderus, Siemens, etc.) — completely **cloud-free**.
15
15
 
16
- **If you like this project and want to support its development, feel free to drop a tip here: https://paypal.me/TJahnke**
17
-
18
- ## Acknowledgements & History
19
-
20
- This project builds upon the preliminary work of existing open-source projects. Special thanks go to:
16
+ Communicates directly via **Native TCP (Port 8889)** and optionally combines it with **Modbus TCP (Hybrid Mode)** to write parameters directly into volatile RAM without EEPROM flash wear. Includes built-in **PV surplus automation**, live **COP/JAZ calculation**, intelligent cycle optimization, and smart pump control (HUP & ZIP).
21
17
 
22
- - **[Bouni](https://github.com/bouni/luxtronik-2):** Whose pioneering work and code developments form the essential foundation for communication with Luxtronik controllers.
23
- - **[Coolchip](https://github.com/coolchip/luxtronik2):** For the fundamental reverse engineering of the Luxtronik network protocol.
24
- - **[UncleSamSwiss](https://github.com/UncleSamSwiss/ioBroker.luxtronik2):** For the original ioBroker adapter.
25
- - **[BenPru](https://github.com/BenPru/luxtronik) & rhammen:** A special thanks to BenPru and rhammen for their continuous further development regarding the access and control of the Luxtronik controller. Without their dedication, efforts, and ideas, this adapter would not have reached the advanced state it is in today. _(If you appreciate their work, feel free to buy them a coffee! ☕) [BenPru](https://github.com/sponsors/BenPru) [rhammen](https://github.com/sponsors/rhammen)_
18
+ **Manual:** [English](documentation/readme_en.md) · [Deutsch](documentation/readme_de.md)
26
19
 
27
20
  > **💡 No LAN cable near your heat pump? No problem!**
28
21
  > If your Luxtronik 2.0 controller only has a free USB port instead of a nearby network socket, you can easily connect it via Wi-Fi using the clever **USB 2.0 powered WiFi/Ethernet Bridge** project by _obermolch_. It powers itself directly from the controller's USB port and bridges the connection wirelessly without extra wall power supplies.
29
22
  > Check out the full guide and community discussion here: [ioBroker Forum: USB 2.0 powered WiFi/Ethernet Bridge für Luxtronik 2.0](https://forum.iobroker.net/topic/85773/usb-2-0-powered-wifi-ethernet-bridge-f%C3%BCr-luxtronik-2-0).
30
23
 
31
- **Innovations in this version:**
32
- The `luxtronik2-controller` natively integrates both classic TCP communication (Port `8888` / `8889`) and modern WebSockets (Port `8214` for firmware > V3.81), combined with an optional **Hybrid Modbus TCP** engine (Port `502`) for wear-free RAM writes. Additionally, it features intelligent cycle optimization, dynamic pump control, hardware flash-wear protection, COP/JAZ efficiency tracking, PV-management and automated datapoint management.
24
+ **If you like this project and want to support its development, feel free to drop a tip here: https://paypal.me/TJahnke**
33
25
 
34
26
  ### Features
35
27
 
36
- - **Native TCP & WebSocket Communication:** Direct connection to the heat pump via classic TCP (`8888` / `8889`) or WebSockets (`8214`) without external protocol overhead.
37
- - **Hybrid Modbus TCP Support (0% Flash Wear):** Write volatile parameters (target temperatures, heating curves, operating modes) and coils/switches directly into the controller's RAM via Modbus TCP (Port `502`) without wearing out the internal EEPROM flash memory, while continuing to read full telemetry via the native port. Active Modbus states are automatically tagged with `(Modbus)` in the object tree.
28
+ #### 🔌 Communication & Operating Modes
29
+
30
+ - **3 Flexible Operating Modes:** Switch seamlessly between safe **Read-Only** (monitoring only, all hardware writes blocked), **Native Write** (Port `8889`), and **Modbus Hybrid** mode.
31
+ - **Native TCP & WebSocket Communication:** Direct local connection via classic TCP (`8888` / `8889`) or WebSockets (`8214`) with broad compatibility across V1.x, V2.x, and V3.x firmwares (dynamic scaling factors and adaptive write-queue timing).
32
+ - **Hybrid Modbus TCP Support (0% Flash Wear):** Writes volatile parameters (target temperatures, heating curves, operating modes) and coils directly into controller RAM via Modbus TCP (Port `502`) without wearing out the EEPROM flash memory, while continuing to read full telemetry over the native port. Active Modbus states are automatically tagged with `(Modbus)` in the object tree.
33
+
34
+ #### ☀️ PV Automation & Efficiency
35
+
36
+ - **PV Surplus Management (PV-Ready):** Fully integrated solar surplus automation that uses your live grid feed-in to raise heating and/or hot water setpoints (wear-free via Modbus TCP):
37
+ - **Dynamic Sequence Priority:** Continuously monitors live temperatures and reroutes surplus between hot water and heating once the prioritized target reaches saturation.
38
+ - **Hysteresis & Smart Timers:** Customizable start/stop delays and a dedicated stop threshold (Schmitt trigger logic) prevent self-cancelling feedback loops when the heat pump ramps up.
39
+ - **Battery Prioritization:** Optionally includes home battery charging power in the surplus calculation to prioritize the heat pump as thermal storage.
40
+ - **Hardware Cycle Protection:** Waits for active heating or hot water cycles to finish naturally before reverting setpoints when solar yield drops, protecting the compressor.
41
+ - **COP & JAZ (Efficiency Calculator):** Live efficiency tracking (_Today_, _Last 7 Days_, _Current Month_, _Current Year_), automatically split into _Heating_, _Hot Water_, and _Total_. Supports internal Luxtronik counters or high-precision external meters (e.g., Shelly 3EM, M-Bus heat meters) with persistent storage (`hidden.cop_buckets`) and anti-flapping zero-drop protection.
42
+
43
+ #### 🛡️ Hardware Protection & Smart Optimization
44
+
38
45
  - **Hardware & EEPROM Flash Protection:**
39
- - **Read-Before-Write Cache:** Intercepts and blocks redundant write commands if the controller parameter is already at the target value.
46
+ - **Read-Before-Write Cache:** Intercepts and blocks redundant write commands if the controller already holds the target value.
40
47
  - **Flash Write Counters:** Transparently tracks daily (`write_cycles_today`) and cumulative (`write_cycles_total`) EEPROM write operations.
41
- - **Idle Defaults & Interactive Heat Curve:** Automatically restores safe baseline settings when the heat pump enters standby, featuring a live interactive SVG heat curve preview in the Admin UI.
48
+ - **Idle Defaults & Interactive Heat Curve:** Automatically restores safe baseline settings in standby, featuring a live interactive SVG heat curve preview in the Admin UI.
42
49
  - **Firmware `.90` Crash Shield:** Automatically detects buggy manufacturer firmwares (`V1.90` / `V2.90`) and blocks network writes to prevent hardware crashes.
43
- - **COP & JAZ (Efficiency Calculator):** Calculate and track heat pump efficiency directly within the adapter (_Today_, _Last 7 Days_, _Current Month_, _Current Year_), automatically split into _Heating_, _Hot Water_, and _Total_. Supports internal Luxtronik counters or high-precision external meters (e.g., Shelly 3EM, M-Bus heat meters) with persistent database storage (`hidden.cop_buckets`) and anti-flapping zero-drop protection.
44
- - **Compressor Protection (Cycle Optimization):** Intelligently links heating and domestic hot water (DHW) cycles to prevent unnecessary compressor stops and starts.
45
- - **Dynamic HUP Control (with Auto-PWM Detection):** Automatically scales the 0–10V control voltage of the heating circulation pump (HUP) based on the supply/return temperature spread. PWM-controlled pumps are automatically detected and bypassed.
50
+ - **Compressor Protection (Cycle Optimization):** Intelligently couples heating and domestic hot water (DHW) cycles to prevent unnecessary compressor stops and starts.
51
+ - **Dynamic HUP Control (Auto-PWM Detection):** Automatically scales the 0–10V control voltage of the heating circulation pump (HUP) based on the supply/return temperature spread. PWM-controlled pumps are automatically detected and bypassed.
46
52
  - **Smart 3-Way Circulation Pump (ZIP) Control:**
47
- - Choose intuitively between **Internal Luxtronik Controller**, **External Actor** (e.g., Shelly with 0% flash wear), or **Modbus TCP (Coil 7)**.
53
+ - Choose between **Internal Luxtronik Controller**, **External Actor** (e.g., Shelly with 0% flash wear), or **Modbus TCP (Coil 7)**.
48
54
  - Trigger circulation on-demand via ioBroker motion sensors/buttons (with anti-cycling cooldown) or synchronously during hot water generation.
49
55
  - Includes live virtual status (`Virtual_ZIP_Status`) and a real-time remaining runtime countdown in seconds (`Virtual_ZIP_Remaining_Time`).
50
- - **Integrated Actions (Macros):** Pre-defined triggers for forced heating (`Zwangsheizen`), forced hot water (`Zwangswarmwasser`), circulation (`Activate_Zip`), manual default resets (`Setze_Vorgabewerte`), and full raw data dumps (`Dump_Raw_To_Log`).
51
- - **Smart Object Management & Visibility Filter:** Queries hardware visibility flags (Command `3005`) on startup to automatically hide unsupported system components (e.g., cooling, solar, ventilation, or uninstalled mixing circuits). Deselected categories, datapoints, and empty folders are cleanly removed on restart.
56
+
57
+ #### 📊 Monitoring, Diagnostics & Customization
58
+
59
+ - **Integrated Actions (Macros):** Pre-defined triggers for forced heating (`Zwangsheizen`), forced hot water (`Zwangswarmwasser`), circulation (`Activate_Zip`), manual idle resets (`Setze_Vorgabewerte`), and full raw data dumps (`Dump_Raw_To_Log`).
60
+ - **Smart Object Management & Visibility Filter:** Queries hardware visibility flags (Command `3005`) on startup to hide unsupported components (cooling, solar, ventilation, uninstalled mixing circuits) and cleanly removes deselected datapoints and empty folders on restart.
52
61
  - **Custom Datapoints:** Flexibly add custom telemetry values (Index `3004`) and writable parameters (Index `3003`) via the Admin UI, including custom scaling factors, units, and automatic Unix timestamp formatting.
53
- - **Extended Status Texts & Calculations:** Live calculation of temperature spread, thermal/electrical energy sums, and translated clear-text system states (including heating offsets, frost protection, and cooling status in German or English).
54
- - **Intelligent Notification System:** Dispatches error logs, connectivity alerts, and critical shutdowns (such as water flow rate issues) to **Telegram** and the **ioBroker Notification Center** – including a 60-minute anti-spam cooldown and a live test button.
55
- - **Automated DTA Backup:** Manual one-click links and scheduled Cron downloads of internal `.dta` diagnostic logs directly from the heat pump to `0_userdata.0/luxtronik_backups` for analysis in tools like _OpenDTA_.
56
- - **Broad Compatibility:** Full support for older (V1.x / V2.x) and newer (V3.x) firmware generations using dynamic scaling factors and adaptive write-queue timing.
57
- - **PV Surplus Management (PV-Ready):** Fully integrated, automated solar surplus control. Uses your live grid feed-in to intelligently raise heating and/or hot water setpoints (wear-free via Modbus TCP).
58
- - **Dynamic Sequence Priority:** Continuously monitors live temperatures and intelligently reroutes power between hot water and heating once the prioritized target reaches saturation.
59
- - **Hysteresis & Smart Timers:** Customizable start/stop delays and a dedicated stop threshold (Schmitt trigger logic) prevent self-cancelling feedback loops when the heat pump starts consuming the surplus.
60
- - **Battery Prioritization:** Optionally includes your home battery's charging power in the surplus calculation, treating the heat pump as the primary thermal battery.
61
- - **Hardware Cycle Protection:** Intelligently waits for an active heating or hot water cycle to naturally finish before reverting setpoints after the sun disappears, protecting the compressor.
62
+ - **Extended Status Texts & Calculations:** Live calculation of temperature spread, thermal/electrical energy sums, and translated clear-text system states (German & English).
63
+ - **Intelligent Notifications & Firmware Checks:** Dispatches error logs, connectivity alerts, and critical shutdowns (e.g., flow rate issues) to **Telegram** and the **ioBroker Notification Center** (with 60-minute anti-spam cooldown & live test button). Also supports scheduled (Cron) and manual firmware update checks including changelog retrieval.
64
+ - **Automated DTA Backup:** One-click links and Cron-scheduled downloads of internal `.dta` diagnostic logs directly from the heat pump to `0_userdata.0/luxtronik_backups` for analysis in tools like _OpenDTA_.
65
+
66
+ ## Acknowledgements & History
67
+
68
+ This project builds upon the preliminary work of existing open-source projects. Special thanks go to:
69
+
70
+ - **[Bouni](https://github.com/bouni/luxtronik-2):** Whose pioneering work and code developments form the essential foundation for communication with Luxtronik controllers.
71
+ - **[BenPru](https://github.com/BenPru/luxtronik) & rhammen:** A special thanks to BenPru and rhammen for their continuous further development regarding the access and control of the Luxtronik controller. Without their dedication, efforts, and ideas, this adapter would not have reached the advanced state it is in today. _(If you appreciate their work, feel free to buy them a coffee! ☕) [BenPru](https://github.com/sponsors/BenPru) [rhammen](https://github.com/sponsors/rhammen)_
62
72
 
63
73
  ## ⚠️ Warning
64
74
 
@@ -85,23 +95,24 @@ It is used by manufacturers such as:
85
95
 
86
96
  _This project is not affiliated with Alpha Innotec, Novelan, ait-deutschland GmbH, or any other company. It is a personal project that is maintained in spare time. Use at your own risk._
87
97
 
88
- ## Reporting Bugs & Contributing
98
+ ## Installation
89
99
 
90
- Bug reports, compatibility notes for specific firmware versions, or feature requests can be submitted via the issue tracker in the [GitHub-Repository](https://github.com/TbsJah/ioBroker.luxtronik2-controller/issues).
100
+ > **Note for Raspberry Pi / ARM users:**
101
+ > You might see red error messages in the installation log related to `node-gyp`, `serialport`, or `usocket`. These are optional dependencies and can be completely ignored. The network-based control (TCP) of the Luxtronik will still work without any issues.
91
102
 
92
- ## Installation
103
+ //### **WORK IN PROGRESS**
93
104
 
94
- **Note for Raspberry Pi / ARM users:**
95
- You might see red error messages in the installation log related to `node-gyp`, `serialport`, or `usocket`. These are optional dependencies and can be completely ignored. The network-based control (TCP) of the Luxtronik will still work without any issues.
105
+ ## Changelog
106
+ ### 1.0.3 (2026-11-18)
96
107
 
97
- ## Information
108
+ - Fixed daily COP reset in `copManager.ts` so Heating and Hot Water values reset to `0` after midnight until an active cycle starts
98
109
 
99
- [Info Deutsch](documentation/readme_de.md)
110
+ ### 1.0.2 (2026-11-17)
100
111
 
101
- [Info English](documentation/readme_en.md)
102
- //### **WORK IN PROGRESS**
112
+ - Fixed `node:` protocol imports (`node:fs`, `node:path`) and repository checker lint issues
113
+ - Completed and synchronized i18n translations across all supported languages
114
+ - Fixed `jsonConfig` label keys in `generateConfig.ts` to prevent inline language object overrides during build
103
115
 
104
- ## Changelog
105
116
  ### 1.0.1 (2026-11-16)
106
117
 
107
118
  - **Update of i10n files**
@@ -114,27 +125,6 @@ You might see red error messages in the installation log related to `node-gyp`,
114
125
 
115
126
  - **Fix i18n**
116
127
 
117
- ### 0.25.1 (2026-11-16)
118
-
119
- - **Removed Dependencies:**
120
- - WS
121
-
122
- ### 0.25.0 (2026-11-16)
123
-
124
- - **Operating Mode & UI Protection (`jsonConfig.json`, `main.ts`):**
125
- - **Explicit Operating Mode Selection:** Added a central selector in the Connection tab with color-coded status banners to clearly distinguish between **Read-Only (Monitoring)**, **Read & Write without Modbus (Native via Port 8889)**, and **Read & Write with Modbus TCP (Hybrid RAM access)**.
126
- - **Dynamic UI & Backend Write Locking:** In Read-Only mode, all write-related configuration tabs (Modbus, Idle Defaults, Cycle Optimization, HUP, ZIP, PV Surplus) are automatically grayed out and all hardware write commands are strictly blocked in the backend.
127
- - **Automatic Config Migration:** Existing installations are seamlessly migrated on startup to the matching operating mode based on previously active settings.
128
- - **Modbus V3.9x Smart Home Interface (SHI) & Diagnostics (`modbusManager.ts`, `settings.ts`, `info.ts`):**
129
- - **Dual-Protocol Auto-Detection:** The Modbus manager now automatically detects and supports both the classic Modbus register mapping (`0..23`) and the modern **V3.90+ / V3.92.x Smart Home Interface (SHI)** register architecture (`10000+`).
130
- - **Automated SHI Mode-Gating:** Writing to SHI setpoints and offsets (`10001`, `10002`, `10006`) automatically activates the required SHI control mode registers (`10000`, `10005`, `10065`) and releases heating curve control (`mode = 0`) when the offset returns to `0 K`.
131
- - **Granular Register Polling & Diagnostic Scanner:** Replaced rigid block reads with individual register polling to prevent `Exception 2 (Illegal data address)` crashes on unsupported registers, and integrated a full Modbus register scanner into `Dump_Raw_To_Log`.
132
- - **Core Stability, COP & Pure TCP Communication (`main.ts`, `rawFunctions.ts`, `copManager.ts`):**
133
- - **Pure Native TCP Architecture:** Removed deprecated WebSocket (port 8214) code in favor of stable, password-free native TCP communication over port `8889`.
134
- - **Isolated COP & Energy Tracking:** Enforced strict separation of reference states for heating, hot water, and total consumption with fallback logic for controllers affected by zero-value firmware bugs.
135
- - **Bug Fixes:** Fixed Modbus RAM vs. EEPROM sync loops (`hardwareOutOfSync`), unified `°C` temperature scaling across all data sources, and fixed offline detection (`info.connection` & `errorCount`) when telemetry reads fail.
136
- - **Repository Checker & i18n:** Completed missing 11-language translations in `jsonConfig.json` and updated `@iobroker/testing` to `6.3.2`.
137
-
138
128
  ## License
139
129
 
140
130
  MIT License