Good morning I think my KNX node works fine. I double checked the data I am seeing: It is actually true/false (not 0/1) that I am getting in Node-RED.
I tried the approach with the Trigger, but the result doesn't seem to be right. I used an Inject node at a 1s interval and a Function node to generate the true/false sequence for testing since I don't want to have to spill water behind my washing machine every time to test the flow I might have configured the Trigger node wrong but I still get alternating true/false from it just with a delay:
[
{
"id": "9da7dd49afa1d6a5",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "dd3b7f2116359ec3",
"type": "inject",
"z": "9da7dd49afa1d6a5",
"name": "Clock",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "1",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payloadType": "date",
"x": 210,
"y": 280,
"wires": [
[
"b921967f8d5c1620"
]
]
},
{
"id": "b921967f8d5c1620",
"type": "function",
"z": "9da7dd49afa1d6a5",
"name": "True/False",
"func": "msg.payload = context.get(\"alternate\") || false;\nmsg.payload = (msg.payload === false) ? true : false;\ncontext.set(\"alternate\", msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 350,
"y": 280,
"wires": [
[
"14f68eda2ef8d1d6"
]
]
},
{
"id": "c3f1d5fed9ba2bc8",
"type": "debug",
"z": "9da7dd49afa1d6a5",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 770,
"y": 280,
"wires": []
},
{
"id": "14f68eda2ef8d1d6",
"type": "trigger",
"z": "9da7dd49afa1d6a5",
"name": "",
"op1": "true",
"op2": "false",
"op1type": "bool",
"op2type": "bool",
"duration": "5",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 620,
"y": 280,
"wires": [
[
"c3f1d5fed9ba2bc8"
]
]
}
]