node-red-contrib-ccu 4.10.1 → 4.10.2
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,25 @@ 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.10.2 (2026-11-20)
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **openccu-lite: with the ReGaHSS unticked in the connection node, the
|
|
13
|
+
connection did not notice it was talking to openccu-lite.** The check for
|
|
14
|
+
openccu-lite's metadata API only ran while the ReGaHSS was ticked. Without
|
|
15
|
+
it the interfaces were connected directly with callbacks instead of through
|
|
16
|
+
lite-rpc, and no names were loaded. The check now runs regardless of the
|
|
17
|
+
checkbox; only the ReGaHSS itself (names, rooms and polling on a CCU) stays
|
|
18
|
+
behind it. On openccu-lite the checkbox has no effect: names come from the
|
|
19
|
+
system's metadata API and the interfaces go through lite-rpc either way.
|
|
20
|
+
- **ccu-homeassistant: the node could wait the full five minutes ("waiting
|
|
21
|
+
for CCU") for a device description that never comes.** It waited for the
|
|
22
|
+
values description of every channel of the selected devices, including
|
|
23
|
+
channels that have none, descriptions the interface refused, and devices
|
|
24
|
+
missing from the device table. Those now count as settled; only a fetch
|
|
25
|
+
that is still pending holds the node.
|
|
26
|
+
|
|
8
27
|
## 4.10.1 (2026-11-10)
|
|
9
28
|
|
|
10
29
|
### Fixed
|
package/nodes/ccu-connection.js
CHANGED
|
@@ -866,34 +866,36 @@ module.exports = function (RED) {
|
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
869
|
+
// B-17: ask the box once whether it speaks the openccu-lite metadata api. It does not
|
|
870
|
+
// on a CCU/RaspberryMatic/OpenCCU, where everything below runs exactly as before.
|
|
871
|
+
// B-46: asked whatever the ReGaHSS checkbox says - on openccu-lite there is no ReGaHSS
|
|
872
|
+
// the checkbox could switch, the names come from the metadata api and the interfaces
|
|
873
|
+
// through lite-rpc; only the ReGa path (names, sysvars, programs) stays behind it.
|
|
874
|
+
this.lastMetaProbe = now();
|
|
875
|
+
this.detectMetaOutcome()
|
|
876
|
+
.then((outcome) => {
|
|
877
|
+
if (outcome.info) {
|
|
878
|
+
return this.startMeta(outcome.info);
|
|
879
|
+
}
|
|
880
880
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
.
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
.then(() => {
|
|
892
|
-
this.initIfaces(config);
|
|
881
|
+
// B-28: a timeout or a refused connection decides nothing -
|
|
882
|
+
// the ReGa path starts, and the detection is repeated
|
|
883
|
+
this.scheduleMetaRedetect(outcome);
|
|
884
|
+
if (!config.regaEnabled) {
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
this.lastRegaDataRefresh = now();
|
|
889
|
+
return this.getRegaData().then(() => {
|
|
890
|
+
this.regaPoll();
|
|
893
891
|
});
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
892
|
+
})
|
|
893
|
+
.catch((error) => {
|
|
894
|
+
this.logger.error('name sync ' + error.message);
|
|
895
|
+
})
|
|
896
|
+
.then(() => {
|
|
897
|
+
this.initIfaces(config);
|
|
898
|
+
});
|
|
897
899
|
|
|
898
900
|
this.stats(true);
|
|
899
901
|
|
|
@@ -1695,7 +1697,8 @@ module.exports = function (RED) {
|
|
|
1695
1697
|
outcome.reason +
|
|
1696
1698
|
') after ' +
|
|
1697
1699
|
META_REDETECT_ATTEMPTS +
|
|
1698
|
-
' attempts - staying with the
|
|
1700
|
+
' attempts - staying with the ' +
|
|
1701
|
+
(this.regaEnabled ? 'ReGaHSS, detecting again every five minutes' : 'CCU way'),
|
|
1699
1702
|
);
|
|
1700
1703
|
this.metaRedetectAttempt = 0;
|
|
1701
1704
|
return;
|
|
@@ -1705,7 +1708,9 @@ module.exports = function (RED) {
|
|
|
1705
1708
|
const line =
|
|
1706
1709
|
'meta api detection inconclusive (' +
|
|
1707
1710
|
outcome.reason +
|
|
1708
|
-
') -
|
|
1711
|
+
') - ' +
|
|
1712
|
+
(this.regaEnabled ? 'names come from the ReGaHSS' : 'the interfaces are reached the CCU way') +
|
|
1713
|
+
' until the system answers, detecting again in ' +
|
|
1709
1714
|
delay / 1000 +
|
|
1710
1715
|
' s';
|
|
1711
1716
|
if (this.metaRedetectAttempt === 1) {
|
|
@@ -1744,7 +1749,12 @@ module.exports = function (RED) {
|
|
|
1744
1749
|
|
|
1745
1750
|
this.metaRedetectAttempt = 0;
|
|
1746
1751
|
this.logger.info(
|
|
1747
|
-
'not an openccu-lite (' +
|
|
1752
|
+
'not an openccu-lite (' +
|
|
1753
|
+
outcome.reason +
|
|
1754
|
+
') - ' +
|
|
1755
|
+
(this.regaEnabled
|
|
1756
|
+
? 'names, rooms and functions come from the ReGaHSS'
|
|
1757
|
+
: 'the interfaces are reached the CCU way'),
|
|
1748
1758
|
);
|
|
1749
1759
|
});
|
|
1750
1760
|
}
|
|
@@ -1795,6 +1805,10 @@ module.exports = function (RED) {
|
|
|
1795
1805
|
this.logger.info(
|
|
1796
1806
|
'this system has no ReGaHSS: system variables, programs and HM-Script are not available (sysvar, program, poll and script nodes stay idle)',
|
|
1797
1807
|
);
|
|
1808
|
+
if (!this.regaEnabled) {
|
|
1809
|
+
// B-46: the checkbox has nothing to switch here - the names are the metadata api's
|
|
1810
|
+
this.logger.debug('the ReGaHSS checkbox is off - it has no effect on openccu-lite');
|
|
1811
|
+
}
|
|
1798
1812
|
|
|
1799
1813
|
if (info.version > 1) {
|
|
1800
1814
|
this.logger.warn(
|
|
@@ -1910,6 +1924,11 @@ module.exports = function (RED) {
|
|
|
1910
1924
|
// B-28: an unreachable box is not a CCU yet - keep asking
|
|
1911
1925
|
this.scheduleMetaRedetect(outcome);
|
|
1912
1926
|
|
|
1927
|
+
if (!this.regaEnabled) {
|
|
1928
|
+
// B-46: the ReGaHSS is switched off in the connection node
|
|
1929
|
+
return;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1913
1932
|
if (this.ifaceTypes.ReGaHSS.enabled && !this.clients.ReGaHSS) {
|
|
1914
1933
|
this.createClient('ReGaHSS').then(() => this.setIfaceStatus('ReGaHSS', true));
|
|
1915
1934
|
}
|
|
@@ -158,6 +158,18 @@ module.exports = function (RED) {
|
|
|
158
158
|
return true;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
// B-46: a description that will never come must not hold the node for its
|
|
162
|
+
// five minutes - no key (the parent is not in the device table), a channel
|
|
163
|
+
// without a VALUES paramset (nothing is ever queued for it), or a fetch the
|
|
164
|
+
// interface refused with a fault (not asked again in this run, B-36)
|
|
165
|
+
if (
|
|
166
|
+
!key ||
|
|
167
|
+
!(channel.PARAMSETS || []).includes('VALUES') ||
|
|
168
|
+
(ccu.paramsetFailed && ccu.paramsetFailed.has(iface + '/' + channel.ADDRESS + '/VALUES'))
|
|
169
|
+
) {
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
|
|
161
173
|
ccu.getParamsetDescription(iface, channel, 'VALUES'); // queues the fetch
|
|
162
174
|
return false;
|
|
163
175
|
});
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<ul>
|
|
27
27
|
<li><b>Interfaces</b>: Hier können die zu verwendenden Schnittstellen angegeben werden. Nutzt man Beispielsweise keinen CUxD oder HmIP Geräte, kann der Haken entfernt werden was die entsprechenden ungenutzten Komponenten deaktiviert.
|
|
28
28
|
<ul>
|
|
29
|
-
<li>ReGaHSS: Die Logikschicht der CCU, verwaltet CCU-Programme und CCU-Systemvariablen</li>
|
|
29
|
+
<li>ReGaHSS: Die Logikschicht der CCU, verwaltet CCU-Programme und CCU-Systemvariablen (und die Namen, Räume und Gewerke). openccu-lite hat keine ReGaHSS: dort kommen die Namen aus der Metadaten-API des Systems und die Schnittstellen gehen über lite-rpc, ob der Haken gesetzt ist oder nicht</li>
|
|
30
30
|
<li>BidCos-RF: Homematic Funk</li>
|
|
31
31
|
<li>BidCos-Wired: Homematic Wired</li>
|
|
32
32
|
<li>HmIP-RF: Homematic-IP Funk</li>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<li><b>XMLRPC listening port</b>: The port of the XML-RPC server the CCU sends its events to. Several connections each need a port of their own.</li>
|
|
12
12
|
<li><b>Interfaces</b>: The interfaces to use. Untick what you do not have (no CUxD, no HmIP devices, say) to switch the unused parts off.
|
|
13
13
|
<ul>
|
|
14
|
-
<li>ReGaHSS: the CCU's logic layer, which holds the programs and system variables</li>
|
|
14
|
+
<li>ReGaHSS: the CCU's logic layer, which holds the programs and system variables (and the names, rooms and functions). openccu-lite has no ReGaHSS: there the names come from the system's metadata API and the interfaces go through lite-rpc whether it is ticked or not</li>
|
|
15
15
|
<li>BidCos-RF: Homematic radio</li>
|
|
16
16
|
<li>BidCos-Wired: Homematic wired</li>
|
|
17
17
|
<li>HmIP-RF: Homematic IP radio</li>
|