node-red-contrib-knx-ultimate
Advanced tools
Comparing version
@@ -41,3 +41,3 @@ | ||
payload = typeof payload === 'object' ? JSON.stringify(payload) : payload; | ||
node.status({ fill, shape, text: `${GA + payload + (node.listenallga === true ? ` ${devicename}` : '')} (${dDate.getDate()}, ${dDate.toLocaleTimeString()} ${text}` }); | ||
node.status({ fill, shape, text: `${GA + payload + (node.listenallga === true ? ` ${devicename}` : '')} (day ${dDate.getDate()}, ${dDate.toLocaleTimeString()}) ${text}` }); | ||
// 16/02/2020 signal errors to the server | ||
@@ -263,3 +263,7 @@ if (fill.toUpperCase() === 'RED') { | ||
//#endregion | ||
// if (msg.echoed !== undefined && msg.echoed === true) { | ||
// node.setNodeStatus({ | ||
// fill: 'grey', shape: 'dot', text: 'Output echoed msg', payload: '', GA: node.topic, dpt: '', devicename: '', | ||
// }); | ||
// } | ||
if (msg !== undefined) node.send(msg); | ||
@@ -566,12 +570,9 @@ }; | ||
node.currentPayload = msg.payload;// 31/12/2019 Set the current value (because, if the node is a virtual device, then it'll never fire "GroupValue_Write" in the server node, causing the currentPayload to never update) | ||
node.setNodeStatus({ | ||
fill: 'green', shape: 'dot', text: 'Writing', payload: msg.payload, GA: grpaddr, dpt, devicename: '', | ||
}); | ||
// if (node.serverKNX.linkStatus === "connected") { | ||
node.serverKNX.sendKNXTelegramToKNXEngine({ | ||
grpaddr, payload: msg.payload, dpt, outputtype, nodecallerid: node.id, | ||
grpaddr: grpaddr, payload: msg.payload, dpt: dpt, outputtype: outputtype, nodecallerid: node.id, | ||
}); | ||
node.setNodeStatus({ | ||
fill: 'green', shape: 'dot', text: 'Writing', payload: msg.payload, GA: grpaddr, dpt, devicename: '', | ||
}); | ||
// } else { | ||
// node.setNodeStatus({ fill: "grey", shape: "dot", text: "Disconnected", payload: msg.payload, GA: grpaddr, dpt: dpt, devicename: "" }); | ||
// } | ||
} catch (error) { } | ||
@@ -578,0 +579,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "3.2.6", | ||
"version": "3.2.7", | ||
"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.", | ||
@@ -9,0 +9,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6366406
0.01%12505
0.11%