Thanks for your solution.
I did add a small function node to reset the submit state. Before that each change was submitted after the first submit press.
Here is my complete flow:
[
{
"id": "e818bf95.b4fc3",
"type": "tab",
"label": "Wassertest",
"disabled": false,
"info": ""
},
{
"id": "2acab28d.4e6a5e",
"type": "ui_dropdown",
"z": "e818bf95.b4fc3",
"name": "",
"label": "Testing Method",
"tooltip": "",
"place": "Select a testing method",
"group": "e6377050.f6aa5",
"order": 0,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "PH Meter",
"value": "ph_meter",
"type": "str"
},
{
"label": "Drop Check",
"value": "drop_check",
"type": "str"
}
],
"payload": "",
"topic": "method",
"x": 630,
"y": 340,
"wires": [
[
"7726c281.a4886c"
]
]
},
{
"id": "617c4cfa.e7ac04",
"type": "ui_button",
"z": "e818bf95.b4fc3",
"name": "",
"group": "e6377050.f6aa5",
"order": 2,
"width": 0,
"height": 0,
"passthru": false,
"label": "Submit",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "submit",
"x": 620,
"y": 500,
"wires": [
[
"7726c281.a4886c"
]
]
},
{
"id": "3be680fe.a0378",
"type": "ui_text_input",
"z": "e818bf95.b4fc3",
"name": "",
"label": "pH Value",
"tooltip": "1-14",
"group": "e6377050.f6aa5",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"mode": "number",
"delay": "1",
"topic": "ph_value",
"x": 620,
"y": 420,
"wires": [
[
"7726c281.a4886c"
]
]
},
{
"id": "7726c281.a4886c",
"type": "join",
"z": "e818bf95.b4fc3",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": true,
"timeout": "",
"count": "1",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "num",
"reduceFixup": "",
"x": 910,
"y": 380,
"wires": [
[
"b4389e80.f0706"
]
]
},
{
"id": "8c640303.6b241",
"type": "debug",
"z": "e818bf95.b4fc3",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1350,
"y": 380,
"wires": []
},
{
"id": "b4389e80.f0706",
"type": "switch",
"z": "e818bf95.b4fc3",
"name": "",
"property": "payload.submit",
"propertyType": "msg",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1110,
"y": 380,
"wires": [
[
"8c640303.6b241",
"640a24cd.07db7c"
]
]
},
{
"id": "640a24cd.07db7c",
"type": "function",
"z": "e818bf95.b4fc3",
"name": "",
"func": "msg2 = {'topic': 'submit', 'payload': false};\nreturn msg2;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 1020,
"y": 480,
"wires": [
[
"7726c281.a4886c"
]
]
},
{
"id": "e6377050.f6aa5",
"type": "ui_group",
"z": "",
"name": "pH",
"tab": "67bc0279.6d37ac",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "67bc0279.6d37ac",
"type": "ui_tab",
"z": "",
"name": "Water Testing",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]