[
{
"id": "af33b6f4.f4e758",
"type": "subflow",
"name": "SNMP Printer MIB",
"info": "# SNMP SNMP Printer MIB\n\n**[node-red-node-snmp](https://flows.nodered.org/node/node-red-node-snmp) must be installed first, that subflow works**\n\nThe node was tested on a HP Printer with 4 ink cartridges. \n`msg.payload` needs to be a boolean. If _true_ the monitoring starts, if _false_ the monitoring stops.\n\nIn addition the IP-address has to be provided by `msg.host` or specified in the node in the environment variable IP Address.\n\n`msg.payload` on the output is monitoring status of the node (_true_ or _false_). If the printer is offline, monitoring is stopped automatically and has to be manually restarted. \n\nIn addition to the monitoring status, the status is published in a `msg.printer` object.\n\n{\n \"pages\": 0,\n \"status\": {\n \"device\": \"\",\n \"printer\": \"\",\n \"since\": \"\"\n }\n \"cartridges\": {\n \"percent\": {\n \"black\": 0,\n \"yellow\": 0,\n \"cyan\": 0,\n \"magenta\": 0\n }\n }\n}\n\n# SNMP Printer MIB\n\n**Voraussetzung ist die Installation der snmp Nodes: [node-red-node-snmp](https://flows.nodered.org/node/node-red-node-snmp)**\n\nDie Node bzw. Subflow wurde mit einem HP Printer mit 4 Tintenpatronen getestet. \n`msg.payload` muss ein Boolean/Logikwert sein. Wenn _true_ dann startet das Monitoring, if _false_ stoppt das Monitoring.\n\nZusätzlich muss die IP-Adresse des Druckers in der Eigenschaft `msg.host` mitgegeben werden oder kann über die Umgebungsvariable IP Address in der Node mitgegeben werden.\n\nDie Ausgabe der Node in `msg.payload` entspricht dem Status des Monitorings (_true_ oder _false_).\nWenn der Drucker offline ist, dann stoppt das Monitoring automatisch und muss manuell wieder gestartet werden. \n\nZusätzlich zum Monitoring status, wird der Status des Druckers im `msg.printer` Objekt ausgegeben.\n\n{\n \"pages\": 0,\n \"status\": {\n \"device\": \"\",\n \"printer\": \"\",\n \"since\": \"\"\n }\n \"cartridges\": {\n \"percent\": {\n \"black\": 0,\n \"yellow\": 0,\n \"cyan\": 0,\n \"magenta\": 0\n }\n }\n}\n",
"category": "SNMP",
"in": [
{
"x": 80,
"y": 560,
"wires": [
{
"id": "fd22ba53c406b582"
}
]
}
],
"out": [
{
"x": 2600,
"y": 440,
"wires": [
{
"id": "c85d9732.2190c8",
"port": 0
}
]
}
],
"env": [
{
"name": "IP Address",
"type": "str",
"value": "127.0.0.1"
}
],
"meta": {},
"color": "#C7E9C0",
"icon": "node-red/parser-json.svg",
"status": {
"x": 2780,
"y": 380,
"wires": [
{
"id": "b7cbd22.9562b3",
"port": 0
}
]
}
},
{
"id": "f15ff765.2e3668",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "Tintenfüllstand - Schwarz",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$round(payload.'0.1'.'9' / payload.'0.1'.'8' * 100 , 0)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2290,
"y": 80,
"wires": [
[
"b436d7a6.58a688"
]
]
},
{
"id": "a51ff4e0.937778",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "Tintenfüllstand - Gelb",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$round(payload.'0.2'.'9' / payload.'0.2'.'8' * 100 , 0)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2280,
"y": 160,
"wires": [
[
"6d10dec2.86a89"
]
]
},
{
"id": "376553b5.6e182c",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "Tintenfüllstand - Cyan",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$round(payload.'0.3'.'9' / payload.'0.3'.'8' * 100 , 0)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2280,
"y": 240,
"wires": [
[
"a205458.53b91b8"
]
]
},
{
"id": "4f56704e.3f626",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "Tintenfüllstand - Magenta",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$round(payload.'0.4'.'9' / payload.'0.4'.'8' * 100 , 0)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2290,
"y": 320,
"wires": [
[
"6710284c.0bcb88"
]
]
},
{
"id": "853f7770.689788",
"type": "snmp table",
"z": "af33b6f4.f4e758",
"host": "",
"version": "1",
"timeout": 5,
"community": "public",
"oids": "1.3.6.1.2.1.43.11.1",
"name": "snmp Drucker - Patronenfüllstände - prtMarkerSuppliesTable",
"x": 1760,
"y": 200,
"wires": [
[
"f15ff765.2e3668",
"a51ff4e0.937778",
"376553b5.6e182c",
"4f56704e.3f626",
"de6284f8.4dc138"
]
]
},
{
"id": "67f704d6.3910dc",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "Geräte Status",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "1",
"fromt": "num",
"to": "unbekannt",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "2",
"fromt": "num",
"to": "bereit",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "3",
"fromt": "num",
"to": "warnt",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "4",
"fromt": "num",
"to": "testet",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "5",
"fromt": "num",
"to": "nicht bereit",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2320,
"y": 560,
"wires": [
[
"c01cdabe.769ea8"
]
]
},
{
"id": "f79c0323.65825",
"type": "snmp",
"z": "af33b6f4.f4e758",
"host": "",
"version": "1",
"timeout": 5,
"community": "public",
"oids": "1.3.6.1.2.1.25.3.2.1.5.1,1.3.6.1.2.1.25.3.5.1.1.1,1.3.6.1.2.1.1.3.0",
"name": "snmp Drucker Status",
"x": 1560,
"y": 760,
"wires": [
[
"2e59df90.47d8",
"7d5786ed.3fafe8",
"2550df51.d2985",
"9f5048d1.6ce418"
]
]
},
{
"id": "a26308a8.d333a8",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "Drucker Status",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "1",
"fromt": "num",
"to": "nicht aufgelistet",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "2",
"fromt": "num",
"to": "unbekannt",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "3",
"fromt": "num",
"to": "im Leerlauf",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "4",
"fromt": "num",
"to": "druckt",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "5",
"fromt": "num",
"to": "fährt hoch",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2320,
"y": 640,
"wires": [
[
"14723db8.d52622"
]
]
},
{
"id": "d43a8173.eb1dd",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$millis()-payload*10\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2050,
"y": 760,
"wires": [
[
"9ce003c1.e1d68"
]
]
},
{
"id": "2550df51.d2985",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "online - Geräte Status",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload[0].value",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1860,
"y": 560,
"wires": [
[
"67f704d6.3910dc"
]
]
},
{
"id": "2e59df90.47d8",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "online - Drucker Status",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload[1].value",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1860,
"y": 640,
"wires": [
[
"a26308a8.d333a8"
]
]
},
{
"id": "7d5786ed.3fafe8",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "online seit",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload[2].value",
"tot": "msg"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "Gerät online",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1820,
"y": 760,
"wires": [
[
"d43a8173.eb1dd"
]
]
},
{
"id": "9147a585.026348",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload[\"0.1\"][\"4\"]",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2190,
"y": 860,
"wires": [
[
"da172e87.462b6"
]
]
},
{
"id": "84af89d1.cf4908",
"type": "snmp table",
"z": "af33b6f4.f4e758",
"host": "",
"version": "1",
"timeout": 5,
"community": "public",
"oids": "1.3.6.1.2.1.43.10.2",
"name": "snmp Drucker gedruckte Seiten",
"x": 1590,
"y": 860,
"wires": [
[
"9147a585.026348"
]
]
},
{
"id": "16a4ff47.1517f1",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "offline - Geräte Status",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "1",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1860,
"y": 600,
"wires": [
[
"67f704d6.3910dc"
]
]
},
{
"id": "2df9aa7f.dade36",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "offline - Drucker Status",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "2",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1860,
"y": 680,
"wires": [
[
"a26308a8.d333a8"
]
]
},
{
"id": "d572ccde.c7249",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "",
"tot": "date"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2050,
"y": 720,
"wires": [
[
"9ce003c1.e1d68"
]
]
},
{
"id": "4d0360fb.440bd",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "offline seit",
"rules": [
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "Kein Monitoring",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1820,
"y": 720,
"wires": [
[
"d572ccde.c7249"
]
]
},
{
"id": "a9536849.3db4f8",
"type": "catch",
"z": "af33b6f4.f4e758",
"name": "überwache Drucker snmp Nodes",
"scope": [
"853f7770.689788",
"f79c0323.65825",
"84af89d1.cf4908"
],
"uncaught": false,
"x": 710,
"y": 380,
"wires": [
[
"5b0a78c4.7fcd68"
]
]
},
{
"id": "4db349eb.b32a28",
"type": "trigger",
"z": "af33b6f4.f4e758",
"name": "",
"op1": "true",
"op2": "0",
"op1type": "bool",
"op2type": "str",
"duration": "-60",
"extend": false,
"overrideDelay": false,
"units": "min",
"reset": "false",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1310,
"y": 200,
"wires": [
[
"853f7770.689788"
]
]
},
{
"id": "58b1b312.0f75ac",
"type": "trigger",
"z": "af33b6f4.f4e758",
"name": "",
"op1": "true",
"op2": "0",
"op1type": "bool",
"op2type": "str",
"duration": "-10",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "false",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1300,
"y": 760,
"wires": [
[
"f79c0323.65825",
"84af89d1.cf4908"
]
]
},
{
"id": "5b0a78c4.7fcd68",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "setze false",
"rules": [
{
"t": "set",
"p": "monitoring",
"pt": "flow",
"to": "false",
"tot": "bool"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 990,
"y": 380,
"wires": [
[
"7a0bab5.ccc2754",
"4db349eb.b32a28",
"58b1b312.0f75ac"
]
]
},
{
"id": "7a0bab5.ccc2754",
"type": "switch",
"z": "af33b6f4.f4e758",
"name": "ist offline",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1520,
"y": 560,
"wires": [
[
"16a4ff47.1517f1",
"2df9aa7f.dade36",
"4d0360fb.440bd",
"9f5048d1.6ce418"
]
]
},
{
"id": "7dd43fb4.a4c8f",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "setze printer status & pages",
"rules": [
{
"t": "set",
"p": "printer",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "printer.status",
"pt": "msg",
"to": "printer.status",
"tot": "flow"
},
{
"t": "set",
"p": "printer.pages",
"pt": "msg",
"to": "printer.pages",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2140,
"y": 460,
"wires": [
[
"c85d9732.2190c8"
]
]
},
{
"id": "c01cdabe.769ea8",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.status[\"device\"]",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2580,
"y": 560,
"wires": [
[]
]
},
{
"id": "14723db8.d52622",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.status[\"printer\"]",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2550,
"y": 640,
"wires": [
[]
]
},
{
"id": "45d284c7.09966c",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.status[\"since\"]",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2570,
"y": 740,
"wires": [
[]
]
},
{
"id": "da172e87.462b6",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.pages",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2530,
"y": 860,
"wires": [
[]
]
},
{
"id": "6710284c.0bcb88",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.cartridges[\"percent\"].magenta",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2620,
"y": 320,
"wires": [
[]
]
},
{
"id": "a205458.53b91b8",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.cartridges[\"percent\"].yellow",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2610,
"y": 240,
"wires": [
[]
]
},
{
"id": "6d10dec2.86a89",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.cartridges[\"percent\"].cyan",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2610,
"y": 160,
"wires": [
[]
]
},
{
"id": "b436d7a6.58a688",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer.cartridges[\"percent\"].black",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2610,
"y": 80,
"wires": [
[]
]
},
{
"id": "9ce003c1.e1d68",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$moment(payload).locale(\"de\").tz('Europe/Berlin').format('DD.MM.YY - HH:mm')",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2310,
"y": 740,
"wires": [
[
"45d284c7.09966c"
]
]
},
{
"id": "a8d55658.629d38",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "setze printer.cartridges",
"rules": [
{
"t": "set",
"p": "printer",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "printer.cartridges",
"pt": "msg",
"to": "printer.cartridges",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2120,
"y": 400,
"wires": [
[
"c85d9732.2190c8"
]
]
},
{
"id": "c85d9732.2190c8",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "monitoring",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2430,
"y": 440,
"wires": [
[
"b7cbd22.9562b3"
]
]
},
{
"id": "9f5048d1.6ce418",
"type": "switch",
"z": "af33b6f4.f4e758",
"name": "flow.printer nicht leer",
"property": "printer",
"propertyType": "flow",
"rules": [
{
"t": "nempty"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1860,
"y": 460,
"wires": [
[
"7dd43fb4.a4c8f"
]
]
},
{
"id": "f328e54e.c9a428",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "monitoring",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 780,
"y": 560,
"wires": [
[
"4ae447f0.185f18",
"7f00b497.90d35c",
"7a0bab5.ccc2754"
]
]
},
{
"id": "4ae447f0.185f18",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer",
"pt": "flow",
"to": "{\"pages\":0,\"status\":{\"device\":\"\",\"printer\":\"\",\"since\":\"\"}}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1050,
"y": 760,
"wires": [
[
"58b1b312.0f75ac"
]
]
},
{
"id": "7f00b497.90d35c",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "",
"rules": [
{
"t": "set",
"p": "printer",
"pt": "flow",
"to": "{\"cartridges\":{\"percent\":{\"black\":0,\"yellow\":0,\"cyan\":0,\"magenta\":0}}}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1030,
"y": 200,
"wires": [
[
"4db349eb.b32a28"
]
]
},
{
"id": "b7cbd22.9562b3",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "setze status",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "true",
"fromt": "bool",
"to": "{\"fill\":\"green\",\"shape\":\"dot\",\"text\":\"true\"}",
"tot": "json"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "false",
"fromt": "bool",
"to": "{\"fill\":\"red\",\"shape\":\"ring\",\"text\":\"false\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2650,
"y": 380,
"wires": [
[]
]
},
{
"id": "de6284f8.4dc138",
"type": "switch",
"z": "af33b6f4.f4e758",
"name": "flow.printer nicht leer",
"property": "printer",
"propertyType": "flow",
"rules": [
{
"t": "nempty"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1860,
"y": 400,
"wires": [
[
"a8d55658.629d38"
]
]
},
{
"id": "7f8d419ea0707940",
"type": "debug",
"z": "af33b6f4.f4e758",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1190,
"y": 920,
"wires": []
},
{
"id": "fd22ba53c406b582",
"type": "switch",
"z": "af33b6f4.f4e758",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 190,
"y": 560,
"wires": [
[
"dc52a45e9384ecdf"
],
[
"f328e54e.c9a428"
]
]
},
{
"id": "dc52a45e9384ecdf",
"type": "switch",
"z": "af33b6f4.f4e758",
"name": "",
"property": "host",
"propertyType": "msg",
"rules": [
{
"t": "null"
},
{
"t": "nnull"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 330,
"y": 520,
"wires": [
[
"c202182520b8e670"
],
[
"f328e54e.c9a428"
]
]
},
{
"id": "c202182520b8e670",
"type": "change",
"z": "af33b6f4.f4e758",
"name": "host",
"rules": [
{
"t": "set",
"p": "host",
"pt": "msg",
"to": "IP Address",
"tot": "env"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 470,
"y": 480,
"wires": [
[
"f328e54e.c9a428"
]
]
},
{
"id": "85ccc155.f14e1",
"type": "subflow:af33b6f4.f4e758",
"z": "a442b54b44edc349",
"name": "",
"env": [
{
"name": "IP Address",
"value": "192.168.178.24",
"type": "str"
}
],
"x": 790,
"y": 620,
"wires": [
[
"6828b34d419928fa"
]
]
}
]