Skip to content

Commit

Permalink
2.4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
Supergiovane committed Apr 5, 2024
1 parent b52e6ee commit cc46ce6
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

# CHANGELOG

**Version 2.4.18** - April 2024<br/>
- Warning: this version uses the Node-Red plugin system; the Node-Red version must be **equals or major than 3.1.1**<br/>
- Fixed some backward compatibility glitches in the KNX-Device's UI.<br/>

**Version 2.4.16** - April 2024<br/>
- Warning: this version uses the Node-Red plugin system; the Node-Red version must be **equals or major than 3.1.1**<br/>
- NEW: Home Assistant translator node: translates the HA input msg, to a KNX value. Comes with a built-in translation table, that's user editable.<br/>
Expand Down
55 changes: 55 additions & 0 deletions RBEtrueFalse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[
{
"id": "bbc41a15b589edd3",
"type": "knxUltimate",
"z": "a108904.7aa037",
"server": "a01c5d80.1bbb78",
"topic": "3/1/18",
"outputtopic": "",
"dpt": "1.009",
"initialread": false,
"notifyreadrequest": false,
"notifyresponse": false,
"notifywrite": true,
"notifyreadrequestalsorespondtobus": false,
"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "",
"listenallga": false,
"name": "Porta REI apri/chiudi [ON/OFF]",
"outputtype": "write",
"outputRBE": true,
"inputRBE": true,
"formatmultiplyvalue": "1",
"formatnegativevalue": "leave",
"formatdecimalsvalue": "999",
"passthrough": "no",
"x": 700,
"y": 1580,
"wires": [
[]
]
}
]


[
{
"id": "48937ee6.d1bac",
"type": "knxUltimate",
"z": "10f01cd3.a2c053",
"server": "a01c5d80.1bbb78",
"topic": "0/1/0",
"dpt": "1.001",
"initialread": false,
"notifyreadrequest": false,
"notifyresponse": false,
"notifywrite": true,
"listenallga": false,
"name": "Corridoio e scala luce",
"outputtype": "write",
"x": 900,
"y": 2980,
"wires": [
[]
]
}
]
14 changes: 10 additions & 4 deletions nodes/knxUltimate.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,26 @@
node.outputRBE = 'true';
$("#node-input-outputRBE").val("true")
}
if (node.outputRBE === false || $("#node-input-outputRBE").val() === false) {
if (node.outputRBE === undefined || node.outputRBE === false || $("#node-input-outputRBE").val() === false) {
node.outputRBE = 'false';
$("#node-input-outputRBE").val("false")
}
if (node.inputRBE === true || $("#node-input-inputRBE").val() === true) {
node.inputRBE = 'true';
$("#node-input-inputRBE").val("true")
}
if (node.inputRBE === false || $("#node-input-inputRBE").val() === false) {
if (node.inputRBE === undefined || node.inputRBE === false || $("#node-input-inputRBE").val() === false) {
node.inputRBE = 'false';
$("#node-input-inputRBE").val("false")
}


if (node.passthrough === undefined) {
node.passthrough = 'no';
$("#node-input-passthrough").val("no")
}
if (node.initialread === undefined || node.initialread === false) {
node.initialread = 0;
$("#node-input-initialread").val(0)
}

oNodeServer = RED.nodes.node($("#node-input-server").val());
if (oNodeServer === undefined) {
Expand Down
1 change: 1 addition & 0 deletions nodes/knxUltimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = function (RED) {
node.notifywrite = config.notifywrite;
node.initialread = config.initialread || 0;
if (node.initialread === true) node.initialread = 1; // 04/04/2021 Backward compatibility
if (node.initialread === false) node.initialread = 0; // 04/04/2021 Backward compatibility
node.initialread = Number(config.initialread);
node.listenallga = config.listenallga || false;
node.outputtype = config.outputtype || 'write';// When the node is used as output
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"engines": {
"node": ">=16.0.0"
},
"version": "2.4.16",
"version": "2.4.18",
"description": "Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.",
"dependencies": {
"binary-parser": "2.2.1",
Expand Down

0 comments on commit cc46ce6

Please sign in to comment.