node-red-contrib-ccu 4.11.1 → 4.12.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/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ Notable changes to node-red-contrib-ccu. Format follows
5
5
  user-visible symptom and the cause, not the commit list (the release notes
6
6
  append commits automatically).
7
7
 
8
+ ## 4.12.0 (2026-11-21)
9
+
10
+ ### Added
11
+
12
+ - **Setting "Include internal system variables"** in the connection node.
13
+ The CCU keeps system variables of its own that its WebUI hides - the ones
14
+ it creates for devices, such as `svHmIPRainCounterToday_…` of an HmIP
15
+ weather station, and the watchdog variables. They were never listed: the
16
+ script that reads the variables (homematic-rega) skipped every internal
17
+ variable. homematic-rega 2.1.0 lists them and marks them; with the new
18
+ setting on they appear in the sysvar node's list and its messages like any
19
+ other variable. Off by default, as a CCU with many HmIP devices has several
20
+ per device. The alarm and service messages (`Alarmmeldungen`,
21
+ `Servicemeldungen`) are listed either way, as before, and now carry their
22
+ real timestamp. (#184, @drMaxxi)
23
+
8
24
  ## 4.11.1 (2026-11-21)
9
25
 
10
26
  ### Fixed
@@ -21,6 +21,7 @@
21
21
  host: {value: '', required: true},
22
22
 
23
23
  regaEnabled: {value: true},
24
+ regaInternal: {value: false},
24
25
  bcrfEnabled: {value: true},
25
26
  iprfEnabled: {value: true},
26
27
  virtEnabled: {value: true},
@@ -424,6 +425,13 @@
424
425
  <label for="node-config-input-regaInterval"><i class="icon-tag"></i> Rega poll interval (s)</label>
425
426
  <input type="text" id="node-config-input-regaInterval">
426
427
  </div>
428
+ <div class="form-row">
429
+ <label for="node-config-input-regaInternal"><i class="icon-tag"></i> Internal variables</label>
430
+ <div style="width: 70%; display: inline-block; vertical-align: text-top;">
431
+ <label class="ccu-checkbox"><input type="checkbox" id="node-config-input-regaInternal"> Include internal system variables</label><br>
432
+ <small>The ones the CCU creates for itself and for devices (e.g. the rain counters of a weather station). Off by default: on a CCU with many HmIP devices they are several per device.</small>
433
+ </div>
434
+ </div>
427
435
  <div class="form-row">
428
436
  <label for="node-config-input-regaMetaInterval"><i class="icon-tag"></i> Names/rooms refresh (min)</label>
429
437
  <input type="text" id="node-config-input-regaMetaInterval">
@@ -766,6 +766,8 @@ module.exports = function (RED) {
766
766
  this.regaMetaInterval =
767
767
  config.regaMetaInterval === undefined ? 15 : Number.parseInt(config.regaMetaInterval, 10) || 0;
768
768
  this.regaInterval = Number.parseInt(config.regaInterval, 10);
769
+ // #184: the internal system variables (homematic-rega >= 2.1.0 lists them, marked), off by default
770
+ this.regaInternal = Boolean(config.regaInternal);
769
771
  // the values cache file is written at stop, and while running at most every this many
770
772
  // minutes (after the start's read of all values, a resync, a prune); 0 = only at stop.
771
773
  // A write is the whole file - megabytes on a big system, on the SD card.
@@ -2587,6 +2589,17 @@ module.exports = function (RED) {
2587
2589
  }
2588
2590
  }
2589
2591
 
2592
+ /**
2593
+ * #184: a variable the CCU keeps for itself (`internal`, homematic-rega >= 2.1.0) only with
2594
+ * the connection node's "Include internal system variables"; the alarm and service
2595
+ * messages (40, 41) always, as before.
2596
+ * @param {{id: number, internal?: boolean}} sysvar
2597
+ * @returns {boolean}
2598
+ */
2599
+ regaVariableWanted(sysvar) {
2600
+ return this.regaInternal || !sysvar.internal || sysvar.id === 40 || sysvar.id === 41;
2601
+ }
2602
+
2590
2603
  getRegaVariables() {
2591
2604
  return new Promise((resolve, reject) => {
2592
2605
  this.logger.debug('getRegaVariables');
@@ -2596,7 +2609,7 @@ module.exports = function (RED) {
2596
2609
  this.hadTimeout.add('ReGaHSS');
2597
2610
  this.setIfaceStatus('ReGaHSS', false);
2598
2611
  } else {
2599
- res.forEach((sysvar) => {
2612
+ res.filter((sysvar) => this.regaVariableWanted(sysvar)).forEach((sysvar) => {
2600
2613
  //this.logger.trace(JSON.stringify(sysvar));
2601
2614
  // sysvar.ts is epoch ms since homematic-rega 2.x (0 = never)
2602
2615
  sysvar.ts = sysvar.ts || Date.now();
@@ -48,6 +48,9 @@
48
48
  <li><b>ReGaHSS Poll-Interval</b>:
49
49
  Das Zeitintervall in Sekunden in dem Systemvariablen von der CCU abgefragt werden.</li>
50
50
  </ul>
51
+ <ul>
52
+ <li><b>Internal variables</b>: Die CCU führt eigene, in ihrer WebUI versteckte interne Systemvariablen - die, die sie für Geräte anlegt (zum Beispiel <code>svHmIPRainCounterToday_…</code> einer Wetterstation), und die Watchdog-Variablen. Mit <i>Include internal system variables</i> erscheinen sie in der Liste des Sysvar-Nodes und in seinen Nachrichten; aus in der Voreinstellung, weil eine CCU mit vielen HmIP-Geräten mehrere pro Gerät hat. Alarm- und Servicemeldungen (<i>Alarmmeldungen</i>, <i>Servicemeldungen</i>) sind immer dabei.</li>
53
+ </ul>
51
54
  <ul>
52
55
  <li><b>Names/rooms refresh (min)</b>: Wie oft Kanalnamen, Räume und Gewerke neu gelesen werden; 0 nie. Die Datei mit den Namen wird nur geschrieben, wenn sich etwas geändert hat.</li>
53
56
  </ul>
@@ -23,6 +23,7 @@
23
23
  </li>
24
24
  <li><b>RPC ping</b> and <b>RPC ping timeout (s)</b>: How often the connection to the interface processes is checked with a ping, and after how many seconds without an answer it subscribes again. Off means no pings and no timeout-triggered re-init for this connection.</li>
25
25
  <li><b>Rega poll</b>: Changes of system variables are not pushed by the CCU. With polling on, the variables and their values are read every <i>Rega poll interval</i> seconds.</li>
26
+ <li><b>Internal variables</b>: The CCU keeps internal system variables of its own, hidden in its WebUI - the ones it creates for devices (for example <code>svHmIPRainCounterToday_…</code> of a weather station) and the watchdog variables. With <i>Include internal system variables</i> they appear in the sysvar node's list and its messages; off by default, as a CCU with many HmIP devices has several per device. The alarm and service messages (<i>Alarmmeldungen</i>, <i>Servicemeldungen</i>) are always there.</li>
26
27
  <li><b>Names/rooms refresh (min)</b>: How often channel names, rooms and functions are re-read; 0 never. The names file is only written when something changed.</li>
27
28
  <li><b>Value cache write (min)</b>: The last value of every datapoint is kept in a file in Node-RED's directory, so nodes with <i>cache</i> have a value right after the next start. The file is written when Node-RED stops or the connection is redeployed, and while it runs at most this often (after reading all values at the start, after a resync); 60 by default. 0 writes it only when stopping - the fewest writes to the SD card, but after a power cut or a crash the file holds the values of the last stop. Either way the live values come from the CCU again after a start. On a big system the file has several megabytes, and each write is the whole file.</li>
28
29
  <li><b>Queue timeout (ms)</b>, <b>Queue pause (ms)</b>: The write queue's timeout per write and the pause between two writes.</li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-ccu",
3
- "version": "4.11.1",
3
+ "version": "4.12.0",
4
4
  "license": "MIT",
5
5
  "main": "none",
6
6
  "keywords": [
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "dependencies": {
53
53
  "binrpc": "^4.3.0",
54
- "homematic-rega": "^2.0.1",
54
+ "homematic-rega": "^2.1.0",
55
55
  "homematic-xmlrpc": "^2.0.0",
56
56
  "mqtt-wildcard": "^3.0.9",
57
57
  "occulite-client": "^0.4.0"