Hi all
I need some help, I like to setup a flow with 2 input nodes. node1 is a node with a value range between 0-100 and the other input node2 has a range between 0-5000. I like to configure the flow like: If the input from node 1 is > 80 the output is 0 no matter whats the input of node 2. If node 1<80 the output is equale to the value of node 2. I guess this is no rocket science but I'm quite new in node red and still have to learn a lot. I searched for a similar flow on the forum and the rest of the www but no succes . Can someone please help me with these? thanks in advance!
[
{
"id": "0d3e51034b19940d",
"type": "inject",
"z": "525279bd0e36f44d",
"name": "81",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "80",
"payloadType": "num",
"x": 190,
"y": 200,
"wires": [
[]
]
},
{
"id": "159da3226d0e3b41",
"type": "debug",
"z": "525279bd0e36f44d",
"name": "debug 3",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 760,
"y": 160,
"wires": []
},
{
"id": "47335ab22f672b33",
"type": "inject",
"z": "525279bd0e36f44d",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1500",
"payloadType": "num",
"x": 190,
"y": 320,
"wires": [
[]
]
},
{
"id": "42e349d0f425b1d4",
"type": "inject",
"z": "525279bd0e36f44d",
"name": "70",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "70",
"payloadType": "num",
"x": 190,
"y": 140,
"wires": [
[]
]
}
]