@peterfido Es funktioniert! Vielen lieben Dank für deine Hilfe und deine Gedult!!
NEWS
Latest posts made by JU_
-
RE: Zwei Strings zusammenführen
-
RE: Zwei Strings zusammenführen
@peterfido vielen Dank, probiere es gleich morgen früh aus! Melde mich.
-
RE: Zwei Strings zusammenführen
@peterfido jetzt
[ { "id": "90489d5f43af09b5", "type": "knxUltimate", "z": "de15a47dbea6c285", "server": "98b73fada3be00aa", "topic": "8/1/0", "setTopicType": "str", "outputtopic": "", "dpt": "16.001", "initialread": "1", "notifyreadrequest": false, "notifyresponse": true, "notifywrite": true, "notifyreadrequestalsorespondtobus": false, "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0", "name": "Gelbe Tonne Datum", "outputtype": "write", "outputRBE": "true", "inputRBE": "false", "formatmultiplyvalue": 1, "formatnegativevalue": "leave", "formatdecimalsvalue": 999, "passthrough": "no", "sendMsgToKNXCode": "", "receiveMsgFromKNXCode": "", "listenallga": false, "x": 130, "y": 100, "wires": [ [ "02034f10ed38c317" ] ] }, { "id": "a2dbe9c2f590573a", "type": "knxUltimate", "z": "de15a47dbea6c285", "server": "98b73fada3be00aa", "topic": "8/2/0", "setTopicType": "str", "outputtopic": "", "dpt": "16.001", "initialread": "1", "notifyreadrequest": false, "notifyresponse": true, "notifywrite": true, "notifyreadrequestalsorespondtobus": false, "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0", "name": "Gelbe Tonne Tage", "outputtype": "write", "outputRBE": "true", "inputRBE": "false", "formatmultiplyvalue": 1, "formatnegativevalue": "leave", "formatdecimalsvalue": 999, "passthrough": "no", "sendMsgToKNXCode": "", "receiveMsgFromKNXCode": "", "listenallga": false, "x": 130, "y": 160, "wires": [ [ "4ea9b5ca4631e2ce" ] ] }, { "id": "02034f10ed38c317", "type": "change", "z": "de15a47dbea6c285", "name": "", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "Datum", "tot": "str" }, { "t": "set", "p": "GelbDatum", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 360, "y": 100, "wires": [ [ "5b74298a9d871858" ] ] }, { "id": "4ea9b5ca4631e2ce", "type": "change", "z": "de15a47dbea6c285", "name": "", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "Tage", "tot": "str" }, { "t": "set", "p": "GelbTage", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 360, "y": 160, "wires": [ [ "5b74298a9d871858" ] ] }, { "id": "58a426e6d74f6020", "type": "knxUltimate", "z": "de15a47dbea6c285", "server": "98b73fada3be00aa", "topic": "8/3/0", "setTopicType": "str", "outputtopic": "", "dpt": "16.001", "initialread": 0, "notifyreadrequest": false, "notifyresponse": false, "notifywrite": true, "notifyreadrequestalsorespondtobus": false, "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0", "name": "Zusammengesetztes Datum Gelb", "outputtype": "write", "outputRBE": "true", "inputRBE": "false", "formatmultiplyvalue": 1, "formatnegativevalue": "leave", "formatdecimalsvalue": 999, "passthrough": "no", "sendMsgToKNXCode": "", "receiveMsgFromKNXCode": "", "listenallga": false, "x": 1230, "y": 100, "wires": [ [] ] }, { "id": "2861740aaba0f1c9", "type": "inject", "z": "de15a47dbea6c285", "name": "Manuelle Betätigung", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "27.01.25 (10d)", "payloadType": "str", "x": 890, "y": 20, "wires": [ [ "58a426e6d74f6020" ] ] }, { "id": "d22d4525c542b4d0", "type": "debug", "z": "de15a47dbea6c285", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1140, "y": 180, "wires": [] }, { "id": "cccfb4eb94a27733", "type": "change", "z": "de15a47dbea6c285", "name": "", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "8/3/0", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 100, "wires": [ [ "58a426e6d74f6020", "d22d4525c542b4d0" ] ] }, { "id": "5b74298a9d871858", "type": "function", "z": "de15a47dbea6c285", "name": "function 3", "func": "msg.payload = flow.get(\"GelbDatum\") + \" (\" + flow.get(\"GelbTage\") + \"d)\";\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 620, "y": 100, "wires": [ [ "cccfb4eb94a27733" ] ] }, { "id": "141076626e9e6cf8", "type": "inject", "z": "de15a47dbea6c285", "name": "Manuelle Betätigung", "props": [ { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 350, "y": 40, "wires": [ [ "5b74298a9d871858" ] ] }, { "id": "98b73fada3be00aa", "type": "knxUltimate-config", "host": "10.0.0.2", "port": "3671", "physAddr": "1.1.64", "hostProtocol": "TunnelUDP", "suppressACKRequest": false, "csv": "", "KNXEthInterface": "Auto", "KNXEthInterfaceManuallyInput": "", "stopETSImportIfNoDatapoint": "fake", "loglevel": "error", "name": "KNX Gateway", "localEchoInTunneling": true, "delaybetweentelegrams": "50", "ignoreTelegramsWithRepeatedFlag": false, "autoReconnect": "yes" } ]
-
RE: Zwei Strings zusammenführen
@peterfido habe ich verstanden, ist oben geändert. Sorry
-
RE: Zwei Strings zusammenführen
@peterfido ```
[{"id":"90489d5f43af09b5","type":"knxUltimate","z":"de15a47dbea6c285","server":"98b73fada3be00aa","topic":"8/1/0","setTopicType":"str","outputtopic":"","dpt":"16.001","initialread":"1","notifyreadrequest":false,"notifyresponse":true,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","name":"Gelbe Tonne Datum","outputtype":"write","outputRBE":"true","inputRBE":"false","formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","sendMsgToKNXCode":"","receiveMsgFromKNXCode":"","listenallga":false,"x":130,"y":100,"wires":[["02034f10ed38c317"]]},{"id":"a2dbe9c2f590573a","type":"knxUltimate","z":"de15a47dbea6c285","server":"98b73fada3be00aa","topic":"8/2/0","setTopicType":"str","outputtopic":"","dpt":"16.001","initialread":"1","notifyreadrequest":false,"notifyresponse":true,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","name":"Gelbe Tonne Tage","outputtype":"write","outputRBE":"true","inputRBE":"false","formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","sendMsgToKNXCode":"","receiveMsgFromKNXCode":"","listenallga":false,"x":130,"y":160,"wires":[["4ea9b5ca4631e2ce"]]},{"id":"02034f10ed38c317","type":"change","z":"de15a47dbea6c285","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"Datum","tot":"str"},{"t":"set","p":"GelbDatum","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":100,"wires":[["5b74298a9d871858"]]},{"id":"4ea9b5ca4631e2ce","type":"change","z":"de15a47dbea6c285","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"Tage","tot":"str"},{"t":"set","p":"GelbTage","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":160,"wires":[["5b74298a9d871858"]]},{"id":"58a426e6d74f6020","type":"knxUltimate","z":"de15a47dbea6c285","server":"98b73fada3be00aa","topic":"8/3/0","setTopicType":"str","outputtopic":"","dpt":"16.001","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","name":"Zusammengesetztes Datum Gelb","outputtype":"write","outputRBE":"true","inputRBE":"false","formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","sendMsgToKNXCode":"","receiveMsgFromKNXCode":"","listenallga":false,"x":1230,"y":100,"wires":[[]]},{"id":"2861740aaba0f1c9","type":"inject","z":"de15a47dbea6c285","name":"Manuelle Betätigung","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"27.01.25 (10d)","payloadType":"str","x":890,"y":20,"wires":[["58a426e6d74f6020"]]},{"id":"d22d4525c542b4d0","type":"debug","z":"de15a47dbea6c285","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1140,"y":180,"wires":[]},{"id":"cccfb4eb94a27733","type":"change","z":"de15a47dbea6c285","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"8/3/0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":100,"wires":[["58a426e6d74f6020","d22d4525c542b4d0"]]},{"id":"5b74298a9d871858","type":"function","z":"de15a47dbea6c285","name":"function 3","func":"msg.payload = flow.get("GelbDatum") + " (" + flow.get("GelbTage") + "d)";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":620,"y":100,"wires":[["cccfb4eb94a27733"]]},{"id":"141076626e9e6cf8","type":"inject","z":"de15a47dbea6c285","name":"Manuelle Betätigung","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":350,"y":40,"wires":[["5b74298a9d871858"]]},{"id":"98b73fada3be00aa","type":"knxUltimate-config","host":"10.0.0.2","port":"3671","physAddr":"1.1.64","hostProtocol":"TunnelUDP","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","stopETSImportIfNoDatapoint":"fake","loglevel":"error","name":"KNX Gateway","localEchoInTunneling":true,"delaybetweentelegrams":"50","ignoreTelegramsWithRepeatedFlag":false,"autoReconnect":"yes"}] -
RE: Zwei Strings zusammenführen
@peterfido ist drin, musste ihn nochmal fix bearbeiten.
-
RE: Zwei Strings zusammenführen
@peterfido kannst du mir erklären, wie ich ein "Node-Diagramm" exportiere? Dachte es geht nur über Bilder. Übrigend wenn ich über eine Inject Node direkt "27.01.25 (10d)" als "msg.payload" auf die KNX Node schicke funktioniert es. Also scheint sie irgendwas gegen den Output der Funktion zu haben.
-
RE: Zwei Strings zusammenführen
@peterfido habe es bereits ohne Klammern und leerzeichen probiert. Bringt alles nichts. Aber die Debug Node zeigt immer das korrekte an. Ich weis nicht wieso die KNX Node die eigentlich druckbaren zeichen als nicht druckbare wertet.
-
RE: Zwei Strings zusammenführen
Die Funktion "msg.payload = flow.get("GelbDatum") + " (" + flow.get("GelbTage")+")";" funktioniert super (siehe Payload auf dem Bild). Nur leider erkennt die KNX Node den Payload nur zur hälfte (siehe Wert unter der Node). Hast du eine Ahnung wie es dazu kommt? Zu lang ist die Nachricht nicht. Sie ist genau 14 Werte Lang - so wie als maximum erlaubt.