node-red-contrib-ccu 4.14.0 → 4.14.1
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 +11 -0
- package/nodes/ccu-connection.js +49 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ 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.1 (2026-11-25)
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **openccu-lite: a Logic system variable without its texts, list or unit
|
|
13
|
+
after the start.** At connect the values come before the descriptions of
|
|
14
|
+
the variables, so a variable's message and the editor's list had an empty
|
|
15
|
+
`enum`, no `valueEnum` and no `unit` until the variable was written the
|
|
16
|
+
next time. The variable now takes them as soon as its description is
|
|
17
|
+
there. Writing was not affected.
|
|
18
|
+
|
|
8
19
|
## 4.14.0 (2026-11-25)
|
|
9
20
|
|
|
10
21
|
### Added
|
package/nodes/ccu-connection.js
CHANGED
|
@@ -1572,6 +1572,10 @@ module.exports = function (RED) {
|
|
|
1572
1572
|
all ? Object.keys(all).length : 0,
|
|
1573
1573
|
'(' + Object.keys(this.paramsetDescriptions).length + ' in memory for the device types present)',
|
|
1574
1574
|
);
|
|
1575
|
+
if (loaded > 0) {
|
|
1576
|
+
this.refreshLogicShapesSoon();
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1575
1579
|
return loaded;
|
|
1576
1580
|
}
|
|
1577
1581
|
|
|
@@ -3318,6 +3322,47 @@ module.exports = function (RED) {
|
|
|
3318
3322
|
return paramset ? paramset[datapoint] : undefined;
|
|
3319
3323
|
}
|
|
3320
3324
|
|
|
3325
|
+
/**
|
|
3326
|
+
* task 32: a variable's shape (type, list, unit, limits) comes from its VALUE description,
|
|
3327
|
+
* which may be fetched after the value came in (the start's picture): once descriptions
|
|
3328
|
+
* arrive, the entries that were made without one take it. Once per burst.
|
|
3329
|
+
*/
|
|
3330
|
+
refreshLogicShapesSoon() {
|
|
3331
|
+
if (this.logicShapeTimer || !this.logicIface) {
|
|
3332
|
+
return;
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
this.logicShapeTimer = setImmediate(() => {
|
|
3336
|
+
this.logicShapeTimer = null;
|
|
3337
|
+
Object.keys(this.logicObjects).forEach((channel) => {
|
|
3338
|
+
const entry = this.logicObjects[channel];
|
|
3339
|
+
if (entry.type !== 'SYSVAR') {
|
|
3340
|
+
return;
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
const description = this.logicDescription(channel, 'VALUE');
|
|
3344
|
+
if (!description) {
|
|
3345
|
+
return;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
const shape = logic.variableShape(description, entry.value);
|
|
3349
|
+
Object.assign(entry, {
|
|
3350
|
+
valueType: shape.valueType,
|
|
3351
|
+
enum: shape.enum,
|
|
3352
|
+
unit: shape.unit,
|
|
3353
|
+
valueEnum: shape.enum[Number(entry.value)],
|
|
3354
|
+
});
|
|
3355
|
+
if (shape.min !== undefined) {
|
|
3356
|
+
entry.min = shape.min;
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
if (shape.max !== undefined) {
|
|
3360
|
+
entry.max = shape.max;
|
|
3361
|
+
}
|
|
3362
|
+
});
|
|
3363
|
+
});
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3321
3366
|
/**
|
|
3322
3367
|
* task 32: a datapoint of Logic's interface - a variable's VALUE, a program's ACTIVE or
|
|
3323
3368
|
* LAST_RUN - into the tables the sysvar and program nodes read (this.sysvar, this.program).
|
|
@@ -4413,6 +4458,10 @@ module.exports = function (RED) {
|
|
|
4413
4458
|
this.newParamsetDescription = true;
|
|
4414
4459
|
this.paramsetDescriptions[name] = res;
|
|
4415
4460
|
this.paramsetNew[name] = res;
|
|
4461
|
+
if (iface === this.logicIface) {
|
|
4462
|
+
this.refreshLogicShapesSoon();
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4416
4465
|
this.paramsetFileMissing.delete(name);
|
|
4417
4466
|
// saved once the queue is through (or at stop): every save rewrites the
|
|
4418
4467
|
// whole file, 14 MB and more - one every 30 descriptions was a dozen
|