node-red-contrib-ccu 4.12.0 → 4.14.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 +50 -0
- package/README.md +38 -2
- package/nodes/ccu-connection.js +626 -48
- package/nodes/ccu-homeassistant.html +482 -48
- package/nodes/ccu-homeassistant.js +96 -4
- package/nodes/ccu-poll.js +4 -3
- package/nodes/ccu-program.js +1 -1
- package/nodes/ccu-sysvar.js +1 -1
- package/nodes/lib/hadiscovery.js +397 -16
- package/nodes/lib/lite.js +15 -2
- package/nodes/lib/logic.js +178 -0
- package/nodes/lib/status.js +31 -0
- package/nodes/locales/de/ccu-homeassistant.html +31 -3
- package/nodes/locales/de/ccu-poll.html +2 -0
- package/nodes/locales/de/ccu-program.html +5 -0
- package/nodes/locales/de/ccu-sysvar.html +7 -0
- package/nodes/locales/en-US/ccu-homeassistant.html +30 -3
- package/nodes/locales/en-US/ccu-poll.html +2 -0
- package/nodes/locales/en-US/ccu-program.html +5 -0
- package/nodes/locales/en-US/ccu-sysvar.html +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,56 @@ 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.14.0 (2026-11-25)
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **openccu-lite: system variables and programs from the Logic addon.** On
|
|
13
|
+
openccu-lite the `ccu-sysvar` and `ccu-program` nodes stayed
|
|
14
|
+
_disconnected_ and answered every message with an error, because the system
|
|
15
|
+
has no ReGaHSS. The Logic addon now offers the variables and programs as
|
|
16
|
+
devices of its interface `Logic` through the system's lite-rpc, and the nodes
|
|
17
|
+
use it: a variable or program is found by its name, as on a CCU, so flows
|
|
18
|
+
written for a CCU keep working after the switch once the variables and
|
|
19
|
+
programs were imported into Logic. Values arrive at every write (with
|
|
20
|
+
_Emit changed values only_, changes only), writes take a list entry or a
|
|
21
|
+
logic value also by its text, a program is switched by `true`/`false` and
|
|
22
|
+
started (the first _Then_, as the CCU's _Start_) by anything else. The
|
|
23
|
+
editor lists the variables and programs; `ccu-get-value`, `ccu-switch` and
|
|
24
|
+
`ccu-mqtt` find them as well. Without the addon the nodes show _Logic addon
|
|
25
|
+
not installed_, and the addon installed while Node-RED runs is taken
|
|
26
|
+
without a deploy.
|
|
27
|
+
- **openccu-lite: every interface the system lists.** The connection
|
|
28
|
+
followed only the radio interfaces it knows; an addon's interface (such as
|
|
29
|
+
Logic's) was never seen. It now follows every interface lite-rpc lists, an
|
|
30
|
+
addon's without a checkbox; its devices and datapoints can be used with the
|
|
31
|
+
value, event and rpc nodes like those of any interface.
|
|
32
|
+
|
|
33
|
+
## 4.13.0 (2026-11-22)
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- **Home Assistant: Homematic channels as Home Assistant devices.** The
|
|
38
|
+
`ccu-homeassistant` node created one Home Assistant device per Homematic
|
|
39
|
+
device, so the channels of a two-channel actuator or an HmIP-DRSI4 that
|
|
40
|
+
serve different rooms were all in one device and one area. A new option
|
|
41
|
+
_Channels_ makes them child devices of the device (Home Assistant 2026.11
|
|
42
|
+
or newer; the entities keep their IDs, history and settings, and the way
|
|
43
|
+
back works the same) or devices of their own, each in its channel's room.
|
|
44
|
+
The default stays one device per Homematic device, with the same discovery
|
|
45
|
+
configs as before. A channel is a function (an HmIP actuator channel with
|
|
46
|
+
its virtual channels counts as one), the maintenance channel stays on the
|
|
47
|
+
device and a device with a single function is not split.
|
|
48
|
+
- **Home Assistant: settings per device and per channel.** The device table
|
|
49
|
+
opens into the channels of a device: per channel whether it is published
|
|
50
|
+
to Home Assistant at all and where it goes (on the device, a child device,
|
|
51
|
+
a device of its own), per device how its channels are split. The filter
|
|
52
|
+
also matches rooms and functions, and a bulk action applies a setting to
|
|
53
|
+
the listed devices or their matching channels. A channel that is no longer
|
|
54
|
+
published, or moves to another device, is removed from Home Assistant on
|
|
55
|
+
the next deploy - before, an entity left out of a device's discovery config
|
|
56
|
+
stayed in Home Assistant.
|
|
57
|
+
|
|
8
58
|
## 4.12.0 (2026-11-21)
|
|
9
59
|
|
|
10
60
|
### Added
|
package/README.md
CHANGED
|
@@ -55,8 +55,18 @@ CCU-Jack keep their own connections.
|
|
|
55
55
|
(`rpc:read` for events and reads, `rpc:operate` for `setValue`, `rpc:configure` for paramsets and links,
|
|
56
56
|
`rpc:admin` for the rest). A token without `rpc:read` (one made for the names alone) keeps the direct connection
|
|
57
57
|
with callbacks under _auto_, and the log says what lite-rpc would need.
|
|
58
|
-
- **System variables
|
|
59
|
-
`
|
|
58
|
+
- **System variables and programs come from the Logic addon** (4.14.0). Logic offers them as devices of an interface
|
|
59
|
+
of its own, `Logic`, which lite-rpc carries like the radio interfaces; the connection follows every interface the
|
|
60
|
+
system lists, an addon's without a checkbox. The `ccu-sysvar` and `ccu-program` nodes find a variable or a program
|
|
61
|
+
by its name, as on a CCU, so a flow written for a CCU keeps working once the variables and programs were imported
|
|
62
|
+
into Logic: a variable is read, written (a list entry or a logic value also by its text) and reported at every
|
|
63
|
+
write (_Emit changed values only_ leaves out a write of the same value); a program is switched by `true`/`false`
|
|
64
|
+
and started by anything else - the first _Then_ without the conditions, as the CCU's _Start_ does. The editor lists
|
|
65
|
+
them, and `ccu-get-value`, `ccu-switch` and `ccu-mqtt` find them too. Messages keep the CCU's shape, with
|
|
66
|
+
`iface: "Logic"`, `key` and `address` (the Logic channel) in place of the ReGa `id`. This needs lite-rpc (RedMatic
|
|
67
|
+
on the system, or a paired connection); without the addon the nodes show _Logic addon not installed_ and a write
|
|
68
|
+
is refused with that reason. `ccu-poll` has nothing to poll there (the values are events). **HM-Script does not
|
|
69
|
+
exist there**: the `ccu-script` node stays in the flows and answers every message with an error.
|
|
60
70
|
|
|
61
71
|
## Topics
|
|
62
72
|
|
|
@@ -93,6 +103,32 @@ device with switch, light, cover, climate, binary_sensor, event, lock and sensor
|
|
|
93
103
|
optionally be included as a disabled-by-default entity. Unticking a device removes it from Home Assistant on the
|
|
94
104
|
next deploy.
|
|
95
105
|
|
|
106
|
+
Homematic channels can be Home Assistant devices too. The node's option _Channels_ offers three models:
|
|
107
|
+
|
|
108
|
+
- **one device** (the default): one Home Assistant device per Homematic device, as before;
|
|
109
|
+
- **child devices**: each channel becomes a child device of its device. This needs **Home Assistant 2026.11 or
|
|
110
|
+
newer** (an older one refuses the whole device configuration, its log says `not a valid option at 'cdevs'`; the
|
|
111
|
+
node logs a reminder at start). The entities move in place - entity IDs, history and settings stay - and the way
|
|
112
|
+
back works at any time. A child device is in its device's area until you assign another one in Home Assistant,
|
|
113
|
+
which takes no suggested area for an MQTT child device;
|
|
114
|
+
- **own devices**: each channel becomes a device of its own, in its channel's room, linked to the Homematic device.
|
|
115
|
+
Switching to or from this model removes the entities and creates them again under the new device: Home Assistant
|
|
116
|
+
usually restores their entity IDs and areas, but settings of the devices themselves do not carry over, and
|
|
117
|
+
automations that target a device by its device ID have to be adjusted.
|
|
118
|
+
|
|
119
|
+
A channel here is a function: the channel of an HmIP switch, dimmer or blind actuator counts together with its three
|
|
120
|
+
virtual channels, a key or an input counts as one. The maintenance channel (reachability, battery, signal) stays on
|
|
121
|
+
the device, and a device with a single function (a plug, a contact) is not split. The main entity of a channel takes
|
|
122
|
+
its device's name, the others the name of their datapoint.
|
|
123
|
+
|
|
124
|
+
In the device table an arrow opens a device's channels: per device a setting overrides the node's option, per channel
|
|
125
|
+
_publish_ switches it off for Home Assistant (its MQTT topics stay) and a select puts it on the device, into a child
|
|
126
|
+
device or into a device of its own. Channels left as they are follow their device, the device follows the node. The
|
|
127
|
+
filter also matches rooms and functions, and the bulk action applies to the listed devices or to their matching
|
|
128
|
+
channels - e.g. every channel in the room "Kitchen" as a device of its own; what is stored are the single values. A
|
|
129
|
+
channel that is no longer published or moves elsewhere is removed from Home Assistant on the next deploy; the node
|
|
130
|
+
remembers what it published in `ccu_homeassistant_<node id>.json` in the Node-RED user directory.
|
|
131
|
+
|
|
96
132
|
A device's availability in Home Assistant follows the `UNREACH` datapoint of its maintenance channel. The node
|
|
97
133
|
publishes its current value (retained) right after the discovery configs and every change after that, so a device
|
|
98
134
|
is available without ever having been unreachable. Any message on the node's input republishes both; the example
|