Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. HP Tintenfüllstände mit NodeRed und SNMP

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    15
    1
    846

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    681

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    1.9k

HP Tintenfüllstände mit NodeRed und SNMP

Geplant Angeheftet Gesperrt Verschoben Node-Red
node-redtemplate
26 Beiträge 5 Kommentatoren 3.0k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • mickymM Online
    mickymM Online
    mickym
    Most Active
    schrieb am zuletzt editiert von mickym
    #1

    Nachdem ja erst kürzlich eine Vorlage in JS vorgestellt wurde und es vielleicht auch NodeRed Fans in ihr Dashboard einfügen wollen, will ich hier auch mal meine Lösung mit SNMP vorstellen.

    Leider hat bei mir der SNMP Adapter im iobroker nicht richtig funktioniert und manche OIDs einfach nicht genommen, deshalb habe ich das nun mit dem SNMP Nodes gemacht. Diese muss man vorher installieren, damit das Ganze funktioniert.

    [
        {
            "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"
                ]
            ]
        }
    ]
    

    Ist auch nochmal in der Beschreibung des Subflows enthalten:

    e310b218-6a12-4e25-821e-1bce20166441-image.png

    Mit dem Objekt was aus der Node rauskommt kann man mit dieser Node entweder wieder direkt die Objektstruktur im iobroker schreiben

    b2eb1420-76ce-4d4d-9b40-e12355d71b25-image.png

    oder direkt zur Ausgabe im NodeRed Dashboard weiterverwenden:

    090f1fae-954d-427a-a75f-835bda6e5652-image.png

    Für die - die das direkt im Dashboard weiterverarbeiten wollen habe ich deshalb mal hier den relevanten Teil, der das Objekt wieder zerlegt exportiert:

    d15d0535-85ee-4ff4-99cd-aca7034fa11b-image.png

    [
       {
           "id": "b71cb396.efc1b",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "Tintenfüllstand - Schwarz",
           "rules": [
               {
                   "t": "set",
                   "p": "ui_control.options.waveColor",
                   "pt": "msg",
                   "to": "#000000",
                   "tot": "str"
               },
               {
                   "t": "move",
                   "p": "payload.percent.black",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1830,
           "y": 780,
           "wires": [
               [
                   "c89b286f.18ffd8"
               ]
           ]
       },
       {
           "id": "36f49445.afc2fc",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "Tintenfüllstand - Gelb",
           "rules": [
               {
                   "t": "set",
                   "p": "ui_control.options.waveColor",
                   "pt": "msg",
                   "to": "#bebe00",
                   "tot": "str"
               },
               {
                   "t": "move",
                   "p": "payload.percent.yellow",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1820,
           "y": 820,
           "wires": [
               [
                   "e5b7ec8d.43f65"
               ]
           ]
       },
       {
           "id": "57304bae.5928b4",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "Tintenfüllstand - Cyan",
           "rules": [
               {
                   "t": "set",
                   "p": "ui_control.options.waveColor",
                   "pt": "msg",
                   "to": "#00bebe",
                   "tot": "str"
               },
               {
                   "t": "move",
                   "p": "payload.percent.cyan",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1820,
           "y": 860,
           "wires": [
               [
                   "a99a650.604e598"
               ]
           ]
       },
       {
           "id": "2e1856a0.8b5aaa",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "Tintenfüllstand - Magenta",
           "rules": [
               {
                   "t": "set",
                   "p": "ui_control.options.waveColor",
                   "pt": "msg",
                   "to": "#be00be",
                   "tot": "str"
               },
               {
                   "t": "move",
                   "p": "payload.percent.magenta",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1830,
           "y": 900,
           "wires": [
               [
                   "4cb57f47.e9cea"
               ]
           ]
       },
       {
           "id": "8cf2a9e7.f9af18",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "",
           "rules": [
               {
                   "t": "move",
                   "p": "printer.cartridges",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1370,
           "y": 840,
           "wires": [
               [
                   "3b2f5b0f.dfb1a4"
               ]
           ]
       },
       {
           "id": "3b2f5b0f.dfb1a4",
           "type": "switch",
           "z": "99e1680f.414f18",
           "name": "",
           "property": "payload",
           "propertyType": "msg",
           "rules": [
               {
                   "t": "nempty"
               }
           ],
           "checkall": "true",
           "repair": false,
           "outputs": 1,
           "x": 1590,
           "y": 840,
           "wires": [
               [
                   "b71cb396.efc1b",
                   "36f49445.afc2fc",
                   "57304bae.5928b4",
                   "2e1856a0.8b5aaa"
               ]
           ]
       },
       {
           "id": "fa736d59.32745",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "definiere status",
           "rules": [
               {
                   "t": "set",
                   "p": "status",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               },
               {
                   "t": "move",
                   "p": "printer.status",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               },
               {
                   "t": "change",
                   "p": "status",
                   "pt": "msg",
                   "from": "true",
                   "fromt": "bool",
                   "to": "online ",
                   "tot": "str"
               },
               {
                   "t": "change",
                   "p": "status",
                   "pt": "msg",
                   "from": "false",
                   "fromt": "bool",
                   "to": "offline ",
                   "tot": "str"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1320,
           "y": 1000,
           "wires": [
               [
                   "feb00bda.10e758"
               ]
           ]
       },
       {
           "id": "feb00bda.10e758",
           "type": "switch",
           "z": "99e1680f.414f18",
           "name": "",
           "property": "payload",
           "propertyType": "msg",
           "rules": [
               {
                   "t": "nempty"
               }
           ],
           "checkall": "true",
           "repair": false,
           "outputs": 1,
           "x": 1590,
           "y": 1000,
           "wires": [
               [
                   "c4eecff0.c5575",
                   "e7dc7a70.bbccb8",
                   "875e8da5.62185"
               ]
           ]
       },
       {
           "id": "c4eecff0.c5575",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "",
           "rules": [
               {
                   "t": "move",
                   "p": "payload.device",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1820,
           "y": 960,
           "wires": [
               [
                   "57c27f0.211ca8"
               ]
           ]
       },
       {
           "id": "e7dc7a70.bbccb8",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "",
           "rules": [
               {
                   "t": "move",
                   "p": "payload.printer",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1820,
           "y": 1000,
           "wires": [
               [
                   "810ca229.e8a0a"
               ]
           ]
       },
       {
           "id": "875e8da5.62185",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "",
           "rules": [
               {
                   "t": "move",
                   "p": "payload.since",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1820,
           "y": 1040,
           "wires": [
               [
                   "e019bec8.f2d86"
               ]
           ]
       },
       {
           "id": "389eb98d.c1f386",
           "type": "change",
           "z": "99e1680f.414f18",
           "name": "",
           "rules": [
               {
                   "t": "move",
                   "p": "printer.pages",
                   "pt": "msg",
                   "to": "payload",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 1360,
           "y": 1100,
           "wires": [
               [
                   "b79d4291.69da1"
               ]
           ]
       },
       {
           "id": "b79d4291.69da1",
           "type": "switch",
           "z": "99e1680f.414f18",
           "name": "",
           "property": "payload",
           "propertyType": "msg",
           "rules": [
               {
                   "t": "nnull"
               }
           ],
           "checkall": "true",
           "repair": false,
           "outputs": 1,
           "x": 1590,
           "y": 1100,
           "wires": [
               [
                   "181c20f2.f9fd1f"
               ]
           ]
       }
    ]
    

    Wer wissen will - wie man die Farben grafisch in den Füllständen konfiguriert - ist ja nicht Standard - hier die Change Nodes betrachten:

    habe das mal hier farbig markiert:

    screen.png

    Ob und bei welchen Druckern das nun funktioniert - kann ich leider nicht sagen. ;) Für die eine oder andere Rückmeldung wären deshalb manche sicherlich dankbar.

    Noch eine Ergänzung:

    Gestartet und beendet wird das Monitoring ja in dem man ein true oder false in die Node schickt (+ msg.host).
    Wenn der Drucker offline geht bzw. nicht erreichbar ist - habe ich bewußt das Monitoring beendet, damit nicht sinnlos gepollt wird. Muss man dann also mit true wieder anstoßen. Deshalb muss man da ggf. den Flow drum rum etwas ausbauen. ;)

    EDIT 28.05.2022:

    Die Node wurde erweitert, um die IP-Adresse direkt in der Node zu spezifizieren:

    ebf78330-8197-406e-82a5-79e448483b6f-image.png

    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

    P H JB_SullivanJ 3 Antworten Letzte Antwort
    1
    • mickymM mickym

      Nachdem ja erst kürzlich eine Vorlage in JS vorgestellt wurde und es vielleicht auch NodeRed Fans in ihr Dashboard einfügen wollen, will ich hier auch mal meine Lösung mit SNMP vorstellen.

      Leider hat bei mir der SNMP Adapter im iobroker nicht richtig funktioniert und manche OIDs einfach nicht genommen, deshalb habe ich das nun mit dem SNMP Nodes gemacht. Diese muss man vorher installieren, damit das Ganze funktioniert.

      [
          {
              "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"
                  ]
              ]
          }
      ]
      

      Ist auch nochmal in der Beschreibung des Subflows enthalten:

      e310b218-6a12-4e25-821e-1bce20166441-image.png

      Mit dem Objekt was aus der Node rauskommt kann man mit dieser Node entweder wieder direkt die Objektstruktur im iobroker schreiben

      b2eb1420-76ce-4d4d-9b40-e12355d71b25-image.png

      oder direkt zur Ausgabe im NodeRed Dashboard weiterverwenden:

      090f1fae-954d-427a-a75f-835bda6e5652-image.png

      Für die - die das direkt im Dashboard weiterverarbeiten wollen habe ich deshalb mal hier den relevanten Teil, der das Objekt wieder zerlegt exportiert:

      d15d0535-85ee-4ff4-99cd-aca7034fa11b-image.png

      [
         {
             "id": "b71cb396.efc1b",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "Tintenfüllstand - Schwarz",
             "rules": [
                 {
                     "t": "set",
                     "p": "ui_control.options.waveColor",
                     "pt": "msg",
                     "to": "#000000",
                     "tot": "str"
                 },
                 {
                     "t": "move",
                     "p": "payload.percent.black",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1830,
             "y": 780,
             "wires": [
                 [
                     "c89b286f.18ffd8"
                 ]
             ]
         },
         {
             "id": "36f49445.afc2fc",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "Tintenfüllstand - Gelb",
             "rules": [
                 {
                     "t": "set",
                     "p": "ui_control.options.waveColor",
                     "pt": "msg",
                     "to": "#bebe00",
                     "tot": "str"
                 },
                 {
                     "t": "move",
                     "p": "payload.percent.yellow",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1820,
             "y": 820,
             "wires": [
                 [
                     "e5b7ec8d.43f65"
                 ]
             ]
         },
         {
             "id": "57304bae.5928b4",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "Tintenfüllstand - Cyan",
             "rules": [
                 {
                     "t": "set",
                     "p": "ui_control.options.waveColor",
                     "pt": "msg",
                     "to": "#00bebe",
                     "tot": "str"
                 },
                 {
                     "t": "move",
                     "p": "payload.percent.cyan",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1820,
             "y": 860,
             "wires": [
                 [
                     "a99a650.604e598"
                 ]
             ]
         },
         {
             "id": "2e1856a0.8b5aaa",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "Tintenfüllstand - Magenta",
             "rules": [
                 {
                     "t": "set",
                     "p": "ui_control.options.waveColor",
                     "pt": "msg",
                     "to": "#be00be",
                     "tot": "str"
                 },
                 {
                     "t": "move",
                     "p": "payload.percent.magenta",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1830,
             "y": 900,
             "wires": [
                 [
                     "4cb57f47.e9cea"
                 ]
             ]
         },
         {
             "id": "8cf2a9e7.f9af18",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "",
             "rules": [
                 {
                     "t": "move",
                     "p": "printer.cartridges",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1370,
             "y": 840,
             "wires": [
                 [
                     "3b2f5b0f.dfb1a4"
                 ]
             ]
         },
         {
             "id": "3b2f5b0f.dfb1a4",
             "type": "switch",
             "z": "99e1680f.414f18",
             "name": "",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "nempty"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 1,
             "x": 1590,
             "y": 840,
             "wires": [
                 [
                     "b71cb396.efc1b",
                     "36f49445.afc2fc",
                     "57304bae.5928b4",
                     "2e1856a0.8b5aaa"
                 ]
             ]
         },
         {
             "id": "fa736d59.32745",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "definiere status",
             "rules": [
                 {
                     "t": "set",
                     "p": "status",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 },
                 {
                     "t": "move",
                     "p": "printer.status",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 },
                 {
                     "t": "change",
                     "p": "status",
                     "pt": "msg",
                     "from": "true",
                     "fromt": "bool",
                     "to": "online ",
                     "tot": "str"
                 },
                 {
                     "t": "change",
                     "p": "status",
                     "pt": "msg",
                     "from": "false",
                     "fromt": "bool",
                     "to": "offline ",
                     "tot": "str"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1320,
             "y": 1000,
             "wires": [
                 [
                     "feb00bda.10e758"
                 ]
             ]
         },
         {
             "id": "feb00bda.10e758",
             "type": "switch",
             "z": "99e1680f.414f18",
             "name": "",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "nempty"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 1,
             "x": 1590,
             "y": 1000,
             "wires": [
                 [
                     "c4eecff0.c5575",
                     "e7dc7a70.bbccb8",
                     "875e8da5.62185"
                 ]
             ]
         },
         {
             "id": "c4eecff0.c5575",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "",
             "rules": [
                 {
                     "t": "move",
                     "p": "payload.device",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1820,
             "y": 960,
             "wires": [
                 [
                     "57c27f0.211ca8"
                 ]
             ]
         },
         {
             "id": "e7dc7a70.bbccb8",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "",
             "rules": [
                 {
                     "t": "move",
                     "p": "payload.printer",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1820,
             "y": 1000,
             "wires": [
                 [
                     "810ca229.e8a0a"
                 ]
             ]
         },
         {
             "id": "875e8da5.62185",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "",
             "rules": [
                 {
                     "t": "move",
                     "p": "payload.since",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1820,
             "y": 1040,
             "wires": [
                 [
                     "e019bec8.f2d86"
                 ]
             ]
         },
         {
             "id": "389eb98d.c1f386",
             "type": "change",
             "z": "99e1680f.414f18",
             "name": "",
             "rules": [
                 {
                     "t": "move",
                     "p": "printer.pages",
                     "pt": "msg",
                     "to": "payload",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 1360,
             "y": 1100,
             "wires": [
                 [
                     "b79d4291.69da1"
                 ]
             ]
         },
         {
             "id": "b79d4291.69da1",
             "type": "switch",
             "z": "99e1680f.414f18",
             "name": "",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "nnull"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 1,
             "x": 1590,
             "y": 1100,
             "wires": [
                 [
                     "181c20f2.f9fd1f"
                 ]
             ]
         }
      ]
      

      Wer wissen will - wie man die Farben grafisch in den Füllständen konfiguriert - ist ja nicht Standard - hier die Change Nodes betrachten:

      habe das mal hier farbig markiert:

      screen.png

      Ob und bei welchen Druckern das nun funktioniert - kann ich leider nicht sagen. ;) Für die eine oder andere Rückmeldung wären deshalb manche sicherlich dankbar.

      Noch eine Ergänzung:

      Gestartet und beendet wird das Monitoring ja in dem man ein true oder false in die Node schickt (+ msg.host).
      Wenn der Drucker offline geht bzw. nicht erreichbar ist - habe ich bewußt das Monitoring beendet, damit nicht sinnlos gepollt wird. Muss man dann also mit true wieder anstoßen. Deshalb muss man da ggf. den Flow drum rum etwas ausbauen. ;)

      EDIT 28.05.2022:

      Die Node wurde erweitert, um die IP-Adresse direkt in der Node zu spezifizieren:

      ebf78330-8197-406e-82a5-79e448483b6f-image.png

      P Offline
      P Offline
      peterfido
      schrieb am zuletzt editiert von
      #2

      @mickym
      Dankeschön, probiere ich bei Gelegenheit aus.

      Gruß

      Peterfido


      Proxmox auf Intel NUC12WSHi5
      ioBroker: Debian (VM)
      CCU: Debmatic (VM)
      Influx: Debian (VM)
      Grafana: Debian (VM)
      eBus: Debian (VM)
      Zigbee: Debian (VM) mit zigbee2mqtt

      1 Antwort Letzte Antwort
      0
      • mickymM mickym

        Nachdem ja erst kürzlich eine Vorlage in JS vorgestellt wurde und es vielleicht auch NodeRed Fans in ihr Dashboard einfügen wollen, will ich hier auch mal meine Lösung mit SNMP vorstellen.

        Leider hat bei mir der SNMP Adapter im iobroker nicht richtig funktioniert und manche OIDs einfach nicht genommen, deshalb habe ich das nun mit dem SNMP Nodes gemacht. Diese muss man vorher installieren, damit das Ganze funktioniert.

        [
            {
                "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"
                    ]
                ]
            }
        ]
        

        Ist auch nochmal in der Beschreibung des Subflows enthalten:

        e310b218-6a12-4e25-821e-1bce20166441-image.png

        Mit dem Objekt was aus der Node rauskommt kann man mit dieser Node entweder wieder direkt die Objektstruktur im iobroker schreiben

        b2eb1420-76ce-4d4d-9b40-e12355d71b25-image.png

        oder direkt zur Ausgabe im NodeRed Dashboard weiterverwenden:

        090f1fae-954d-427a-a75f-835bda6e5652-image.png

        Für die - die das direkt im Dashboard weiterverarbeiten wollen habe ich deshalb mal hier den relevanten Teil, der das Objekt wieder zerlegt exportiert:

        d15d0535-85ee-4ff4-99cd-aca7034fa11b-image.png

        [
           {
               "id": "b71cb396.efc1b",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "Tintenfüllstand - Schwarz",
               "rules": [
                   {
                       "t": "set",
                       "p": "ui_control.options.waveColor",
                       "pt": "msg",
                       "to": "#000000",
                       "tot": "str"
                   },
                   {
                       "t": "move",
                       "p": "payload.percent.black",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1830,
               "y": 780,
               "wires": [
                   [
                       "c89b286f.18ffd8"
                   ]
               ]
           },
           {
               "id": "36f49445.afc2fc",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "Tintenfüllstand - Gelb",
               "rules": [
                   {
                       "t": "set",
                       "p": "ui_control.options.waveColor",
                       "pt": "msg",
                       "to": "#bebe00",
                       "tot": "str"
                   },
                   {
                       "t": "move",
                       "p": "payload.percent.yellow",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1820,
               "y": 820,
               "wires": [
                   [
                       "e5b7ec8d.43f65"
                   ]
               ]
           },
           {
               "id": "57304bae.5928b4",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "Tintenfüllstand - Cyan",
               "rules": [
                   {
                       "t": "set",
                       "p": "ui_control.options.waveColor",
                       "pt": "msg",
                       "to": "#00bebe",
                       "tot": "str"
                   },
                   {
                       "t": "move",
                       "p": "payload.percent.cyan",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1820,
               "y": 860,
               "wires": [
                   [
                       "a99a650.604e598"
                   ]
               ]
           },
           {
               "id": "2e1856a0.8b5aaa",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "Tintenfüllstand - Magenta",
               "rules": [
                   {
                       "t": "set",
                       "p": "ui_control.options.waveColor",
                       "pt": "msg",
                       "to": "#be00be",
                       "tot": "str"
                   },
                   {
                       "t": "move",
                       "p": "payload.percent.magenta",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1830,
               "y": 900,
               "wires": [
                   [
                       "4cb57f47.e9cea"
                   ]
               ]
           },
           {
               "id": "8cf2a9e7.f9af18",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "",
               "rules": [
                   {
                       "t": "move",
                       "p": "printer.cartridges",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1370,
               "y": 840,
               "wires": [
                   [
                       "3b2f5b0f.dfb1a4"
                   ]
               ]
           },
           {
               "id": "3b2f5b0f.dfb1a4",
               "type": "switch",
               "z": "99e1680f.414f18",
               "name": "",
               "property": "payload",
               "propertyType": "msg",
               "rules": [
                   {
                       "t": "nempty"
                   }
               ],
               "checkall": "true",
               "repair": false,
               "outputs": 1,
               "x": 1590,
               "y": 840,
               "wires": [
                   [
                       "b71cb396.efc1b",
                       "36f49445.afc2fc",
                       "57304bae.5928b4",
                       "2e1856a0.8b5aaa"
                   ]
               ]
           },
           {
               "id": "fa736d59.32745",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "definiere status",
               "rules": [
                   {
                       "t": "set",
                       "p": "status",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   },
                   {
                       "t": "move",
                       "p": "printer.status",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   },
                   {
                       "t": "change",
                       "p": "status",
                       "pt": "msg",
                       "from": "true",
                       "fromt": "bool",
                       "to": "online ",
                       "tot": "str"
                   },
                   {
                       "t": "change",
                       "p": "status",
                       "pt": "msg",
                       "from": "false",
                       "fromt": "bool",
                       "to": "offline ",
                       "tot": "str"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1320,
               "y": 1000,
               "wires": [
                   [
                       "feb00bda.10e758"
                   ]
               ]
           },
           {
               "id": "feb00bda.10e758",
               "type": "switch",
               "z": "99e1680f.414f18",
               "name": "",
               "property": "payload",
               "propertyType": "msg",
               "rules": [
                   {
                       "t": "nempty"
                   }
               ],
               "checkall": "true",
               "repair": false,
               "outputs": 1,
               "x": 1590,
               "y": 1000,
               "wires": [
                   [
                       "c4eecff0.c5575",
                       "e7dc7a70.bbccb8",
                       "875e8da5.62185"
                   ]
               ]
           },
           {
               "id": "c4eecff0.c5575",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "",
               "rules": [
                   {
                       "t": "move",
                       "p": "payload.device",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1820,
               "y": 960,
               "wires": [
                   [
                       "57c27f0.211ca8"
                   ]
               ]
           },
           {
               "id": "e7dc7a70.bbccb8",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "",
               "rules": [
                   {
                       "t": "move",
                       "p": "payload.printer",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1820,
               "y": 1000,
               "wires": [
                   [
                       "810ca229.e8a0a"
                   ]
               ]
           },
           {
               "id": "875e8da5.62185",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "",
               "rules": [
                   {
                       "t": "move",
                       "p": "payload.since",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1820,
               "y": 1040,
               "wires": [
                   [
                       "e019bec8.f2d86"
                   ]
               ]
           },
           {
               "id": "389eb98d.c1f386",
               "type": "change",
               "z": "99e1680f.414f18",
               "name": "",
               "rules": [
                   {
                       "t": "move",
                       "p": "printer.pages",
                       "pt": "msg",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1360,
               "y": 1100,
               "wires": [
                   [
                       "b79d4291.69da1"
                   ]
               ]
           },
           {
               "id": "b79d4291.69da1",
               "type": "switch",
               "z": "99e1680f.414f18",
               "name": "",
               "property": "payload",
               "propertyType": "msg",
               "rules": [
                   {
                       "t": "nnull"
                   }
               ],
               "checkall": "true",
               "repair": false,
               "outputs": 1,
               "x": 1590,
               "y": 1100,
               "wires": [
                   [
                       "181c20f2.f9fd1f"
                   ]
               ]
           }
        ]
        

        Wer wissen will - wie man die Farben grafisch in den Füllständen konfiguriert - ist ja nicht Standard - hier die Change Nodes betrachten:

        habe das mal hier farbig markiert:

        screen.png

        Ob und bei welchen Druckern das nun funktioniert - kann ich leider nicht sagen. ;) Für die eine oder andere Rückmeldung wären deshalb manche sicherlich dankbar.

        Noch eine Ergänzung:

        Gestartet und beendet wird das Monitoring ja in dem man ein true oder false in die Node schickt (+ msg.host).
        Wenn der Drucker offline geht bzw. nicht erreichbar ist - habe ich bewußt das Monitoring beendet, damit nicht sinnlos gepollt wird. Muss man dann also mit true wieder anstoßen. Deshalb muss man da ggf. den Flow drum rum etwas ausbauen. ;)

        EDIT 28.05.2022:

        Die Node wurde erweitert, um die IP-Adresse direkt in der Node zu spezifizieren:

        ebf78330-8197-406e-82a5-79e448483b6f-image.png

        H Offline
        H Offline
        Hc-Yami
        schrieb am zuletzt editiert von
        #3

        @mickym gefällt mir sehr gut, vielen Dank dafür!

        mickymM 1 Antwort Letzte Antwort
        0
        • H Hc-Yami

          @mickym gefällt mir sehr gut, vielen Dank dafür!

          mickymM Online
          mickymM Online
          mickym
          Most Active
          schrieb am zuletzt editiert von
          #4

          @hc-yami sagte in HP Tintenfüllstände mit NodeRed und SNMP:

          @mickym gefällt mir sehr gut, vielen Dank dafür!

          Danke schön - dann scheint es also zu klappen. Darf ich fragen, was Du für einen Drucker hast?
          Nur rein Interesse halber. ;)

          Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

          SBorgS H 2 Antworten Letzte Antwort
          0
          • mickymM mickym

            @hc-yami sagte in HP Tintenfüllstände mit NodeRed und SNMP:

            @mickym gefällt mir sehr gut, vielen Dank dafür!

            Danke schön - dann scheint es also zu klappen. Darf ich fragen, was Du für einen Drucker hast?
            Nur rein Interesse halber. ;)

            SBorgS Offline
            SBorgS Offline
            SBorg
            Forum Testing Most Active
            schrieb am zuletzt editiert von
            #5

            @mickym Musste dann auch mal mit NodeRED rumspielen, allerdings funktioniert bei mir auch der SNMP-Adapter(*):
            Bild 1.png
            (*)nur wenn ich noch einen . vor die OID setze

            Habt ihr eine MIB vom Hersteller bekommen, im Inet zusammengesucht...
            Zumindest die Toner (Farblaser). Modell (jupp, das ist sinnvoll :upside_down_face: ) und Seitenzähler habe ich, aber die anderen VBMs (Fuser, Resttoner, Trommel, Papier etc.) wären auch interessant :)

            LG SBorg ( SBorg auf GitHub)
            Projekte: Lebensmittelwarnung.de | WLAN-Wetterstation | PimpMyStation

            mickymM 1 Antwort Letzte Antwort
            0
            • SBorgS SBorg

              @mickym Musste dann auch mal mit NodeRED rumspielen, allerdings funktioniert bei mir auch der SNMP-Adapter(*):
              Bild 1.png
              (*)nur wenn ich noch einen . vor die OID setze

              Habt ihr eine MIB vom Hersteller bekommen, im Inet zusammengesucht...
              Zumindest die Toner (Farblaser). Modell (jupp, das ist sinnvoll :upside_down_face: ) und Seitenzähler habe ich, aber die anderen VBMs (Fuser, Resttoner, Trommel, Papier etc.) wären auch interessant :)

              mickymM Online
              mickymM Online
              mickym
              Most Active
              schrieb am zuletzt editiert von mickym
              #6

              @sborg Na bei mit ging der SNMP Adapter bei 3 OIDs für 3 Farbpatronen und bei der 4. sagte er dann einfach, dass es den Namen nicht gäbe. (das kann ja dann schlecht mit dem führenden Punkt zusammenhängen - zudem die 4 OIDs hintereinander stehen) Dann habe ich die Sache sofort ad Acta gelegt, weil ich nachdem der Adapter auch schon lange nicht mehr gepflegt wurde - da nun nicht ewig auf irgendwelche Fehlerbehebungen warten wollte.

              Nachdem ich auch sonst ein NodeRed Fan bin habe ich dann eben diese Nodes installiert und die unterstützen auch Tables oder ein snmp walker. ;)

              Der Vorteil bei den Tables ist halt - dass Du mit nur einem Aufruf ein ganzes Array mit zu der Tabelle zugehörigen Werten bekommst.

              Hier mal die Tabelle aus meinem Tool siehe unten:

              9e2ddcfa-d0bc-4317-847c-15c94cdee88c-image.png

              und hier die Ausgabe der snmp-table Node als Array zur direkten Weiterverarbeitung:

              4c5f79d1-280e-467f-960d-64a07821cfd0-image.png

              Ich hab mir dann einfach diese Freeware - die ManageEngine MibBrowser installiert und bin dann die Printer-MIB durchgegangen:

              screen.png

              Du könntest es ja mal bei Deinem Drucker versuchen und dann durch schauen. Hab mich halt mit GETNEXT so durchgehangelt, was interessant sein könnte. ;)

              Mache nun so was ähnliches zum Monitoring vom Raspberry - wobei ich gesehen habe - das da auch schon einiges mit Debian funktioniert - so dass man da vielleicht auch einiges nutzen kann.

              Ach übrigens bei dem Tool wenn Du die OIDs mit dem führenden Punkt direkt einträgst dann sucht er ggf. auch in der MIB nach dem Eintrag mit Beschreibung und kannst DIch dann ebenfalls mit GETNEXT weiterhangeln.

              Da die MIB aber herstellerunabhängig ist - bin ich ja so interessiert bei welchen Modellen - meine Node funktioniert. ;)

              Das Tool mit dem ich MIB lese ist das hier: https://www.manageengine.de/produkte-loesungen/kostenlose-produkte-und-editionen/free-snmp-mib-browser-tool.html

              Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

              SBorgS 1 Antwort Letzte Antwort
              1
              • mickymM mickym

                @hc-yami sagte in HP Tintenfüllstände mit NodeRed und SNMP:

                @mickym gefällt mir sehr gut, vielen Dank dafür!

                Danke schön - dann scheint es also zu klappen. Darf ich fragen, was Du für einen Drucker hast?
                Nur rein Interesse halber. ;)

                H Offline
                H Offline
                Hc-Yami
                schrieb am zuletzt editiert von
                #7

                @mickym einen HP LaserJet Pro 400. :)

                1 Antwort Letzte Antwort
                1
                • mickymM mickym

                  @sborg Na bei mit ging der SNMP Adapter bei 3 OIDs für 3 Farbpatronen und bei der 4. sagte er dann einfach, dass es den Namen nicht gäbe. (das kann ja dann schlecht mit dem führenden Punkt zusammenhängen - zudem die 4 OIDs hintereinander stehen) Dann habe ich die Sache sofort ad Acta gelegt, weil ich nachdem der Adapter auch schon lange nicht mehr gepflegt wurde - da nun nicht ewig auf irgendwelche Fehlerbehebungen warten wollte.

                  Nachdem ich auch sonst ein NodeRed Fan bin habe ich dann eben diese Nodes installiert und die unterstützen auch Tables oder ein snmp walker. ;)

                  Der Vorteil bei den Tables ist halt - dass Du mit nur einem Aufruf ein ganzes Array mit zu der Tabelle zugehörigen Werten bekommst.

                  Hier mal die Tabelle aus meinem Tool siehe unten:

                  9e2ddcfa-d0bc-4317-847c-15c94cdee88c-image.png

                  und hier die Ausgabe der snmp-table Node als Array zur direkten Weiterverarbeitung:

                  4c5f79d1-280e-467f-960d-64a07821cfd0-image.png

                  Ich hab mir dann einfach diese Freeware - die ManageEngine MibBrowser installiert und bin dann die Printer-MIB durchgegangen:

                  screen.png

                  Du könntest es ja mal bei Deinem Drucker versuchen und dann durch schauen. Hab mich halt mit GETNEXT so durchgehangelt, was interessant sein könnte. ;)

                  Mache nun so was ähnliches zum Monitoring vom Raspberry - wobei ich gesehen habe - das da auch schon einiges mit Debian funktioniert - so dass man da vielleicht auch einiges nutzen kann.

                  Ach übrigens bei dem Tool wenn Du die OIDs mit dem führenden Punkt direkt einträgst dann sucht er ggf. auch in der MIB nach dem Eintrag mit Beschreibung und kannst DIch dann ebenfalls mit GETNEXT weiterhangeln.

                  Da die MIB aber herstellerunabhängig ist - bin ich ja so interessiert bei welchen Modellen - meine Node funktioniert. ;)

                  Das Tool mit dem ich MIB lese ist das hier: https://www.manageengine.de/produkte-loesungen/kostenlose-produkte-und-editionen/free-snmp-mib-browser-tool.html

                  SBorgS Offline
                  SBorgS Offline
                  SBorg
                  Forum Testing Most Active
                  schrieb am zuletzt editiert von
                  #8

                  @mickym Danke für die ausführliche Erklärung :+1:
                  Das erklärt nun einiges. Der SNMP-Adapter ist zwar recht simple zu nutzen, aber halt auch schon ewig ohne Wartung. Bei mir funktioniert er aber bspw.:
                  Bild 1.png

                  Aber deine Lösung mit NodeRED gefällt mir einfach besser (+ich bin kein Freund von "ich brauch für alles einen Adapter" ;) ).
                  Funktioniert sogar schon so bei meinem Dell Farblaser:
                  Bild 1_.png
                  Die Füllstände sind zwar falsch, aber die Nodes lassen sich ja anpassen (Prozent vs. Seitenanzahl). Dank deinem Tipp mit der Freeware habe ich auch schon anderes VBM herausbekommen :grin:

                  LG SBorg ( SBorg auf GitHub)
                  Projekte: Lebensmittelwarnung.de | WLAN-Wetterstation | PimpMyStation

                  mickymM 1 Antwort Letzte Antwort
                  1
                  • SBorgS SBorg

                    @mickym Danke für die ausführliche Erklärung :+1:
                    Das erklärt nun einiges. Der SNMP-Adapter ist zwar recht simple zu nutzen, aber halt auch schon ewig ohne Wartung. Bei mir funktioniert er aber bspw.:
                    Bild 1.png

                    Aber deine Lösung mit NodeRED gefällt mir einfach besser (+ich bin kein Freund von "ich brauch für alles einen Adapter" ;) ).
                    Funktioniert sogar schon so bei meinem Dell Farblaser:
                    Bild 1_.png
                    Die Füllstände sind zwar falsch, aber die Nodes lassen sich ja anpassen (Prozent vs. Seitenanzahl). Dank deinem Tipp mit der Freeware habe ich auch schon anderes VBM herausbekommen :grin:

                    mickymM Online
                    mickymM Online
                    mickym
                    Most Active
                    schrieb am zuletzt editiert von
                    #9

                    @sborg sagte in HP Tintenfüllstände mit NodeRed und SNMP:

                    Der SNMP-Adapter ist zwar recht simple zu nutzen

                    Nachdem ich das nun nochmals nachvollzogen habe und ich in einem anderen Thread nun auch nochmal beschrieben habe, warum der SNMP Adapter in der jetzigen Version für mich nicht nutzbar ist - hier nochmal zum Nachvollziehen:

                    https://forum.iobroker.net/topic/44381/usv-per-snmp-auslesen/2

                    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                    SBorgS 1 Antwort Letzte Antwort
                    0
                    • mickymM mickym

                      @sborg sagte in HP Tintenfüllstände mit NodeRed und SNMP:

                      Der SNMP-Adapter ist zwar recht simple zu nutzen

                      Nachdem ich das nun nochmals nachvollzogen habe und ich in einem anderen Thread nun auch nochmal beschrieben habe, warum der SNMP Adapter in der jetzigen Version für mich nicht nutzbar ist - hier nochmal zum Nachvollziehen:

                      https://forum.iobroker.net/topic/44381/usv-per-snmp-auslesen/2

                      SBorgS Offline
                      SBorgS Offline
                      SBorg
                      Forum Testing Most Active
                      schrieb am zuletzt editiert von
                      #10

                      @mickym Ich mag jetzt weiß Gott nicht deinen NodeRED Thread hier mit SNMP zu müllen, mag aber auch nicht einfach so in den anderen Thread quer rein grätschen (zumal es da ja auch um eine USV geht).
                      Aber bei mir passiert fast dasselbe. Ein paar Werte gehen, kommt ein neuer dazu bekomme ich auch Fehler. Notiere ich jede OID mit einem Punkt davor, funktioniert alles. Auf den Punkt bin ich nicht von alleine gekommen, sondern hatte die kpl. OID (+ halt mit dem führenden Punkt) einfach per C&P aus dem MibBrowser gezogen --> läuft
                      Um so mehr war ich erstaunt, dass er mit dem Punkt bei NodeRED dann nix anfangen kann. Als SNMP-Neuling aber ehrlich gesagt mal Null Ahnung was nun eigentlich korrekt ist :upside_down_face:

                      LG SBorg ( SBorg auf GitHub)
                      Projekte: Lebensmittelwarnung.de | WLAN-Wetterstation | PimpMyStation

                      mickymM 1 Antwort Letzte Antwort
                      0
                      • SBorgS SBorg

                        @mickym Ich mag jetzt weiß Gott nicht deinen NodeRED Thread hier mit SNMP zu müllen, mag aber auch nicht einfach so in den anderen Thread quer rein grätschen (zumal es da ja auch um eine USV geht).
                        Aber bei mir passiert fast dasselbe. Ein paar Werte gehen, kommt ein neuer dazu bekomme ich auch Fehler. Notiere ich jede OID mit einem Punkt davor, funktioniert alles. Auf den Punkt bin ich nicht von alleine gekommen, sondern hatte die kpl. OID (+ halt mit dem führenden Punkt) einfach per C&P aus dem MibBrowser gezogen --> läuft
                        Um so mehr war ich erstaunt, dass er mit dem Punkt bei NodeRED dann nix anfangen kann. Als SNMP-Neuling aber ehrlich gesagt mal Null Ahnung was nun eigentlich korrekt ist :upside_down_face:

                        mickymM Online
                        mickymM Online
                        mickym
                        Most Active
                        schrieb am zuletzt editiert von
                        #11

                        @sborg Nun wenn Du den anderen Beitrag durchgelesen hast, dann siehst Du ja dass ich überall in dem Adapter den "." verwende.
                        Der Einzige Unterschied zwischen Cyan, Gelb, Schwarz und Magneta ist die letzte Ziffer. Aber egal.
                        Es ist ja nicht nur so, dass er Magenta nicht ausliest sondern in dem Fall auch alle anderen Werte zu diesem Host nicht.

                        Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                        SBorgS 1 Antwort Letzte Antwort
                        0
                        • mickymM mickym

                          @sborg Nun wenn Du den anderen Beitrag durchgelesen hast, dann siehst Du ja dass ich überall in dem Adapter den "." verwende.
                          Der Einzige Unterschied zwischen Cyan, Gelb, Schwarz und Magneta ist die letzte Ziffer. Aber egal.
                          Es ist ja nicht nur so, dass er Magenta nicht ausliest sondern in dem Fall auch alle anderen Werte zu diesem Host nicht.

                          SBorgS Offline
                          SBorgS Offline
                          SBorg
                          Forum Testing Most Active
                          schrieb am zuletzt editiert von
                          #12

                          @mickym Sorry, gelesen schon, auch die Bildchen betrachtet, aber beim maßgeblichen Pic glatt den/die "dämlichen" Punkt/e übersehen.
                          Nur btw: bei dem Pic mit der Fehlermeldung hast du deine interne IP noch drin stehen. Ist aber auch kein Beinbruch, denn wenn ich schon dein WPA2 etc. geknackt habe und in dein Netz eingebrochen bin, dauert es ungefähr 2 Sekunden deine sämtlichen IPs auszulesen. Dann hätte ich sie sowieso, und als "Aussenstehender" nutzen mir die internen IPs auch nix.

                          btt: jetzt erst mal wieder bei Zeit am flow weiter machen ;)

                          LG SBorg ( SBorg auf GitHub)
                          Projekte: Lebensmittelwarnung.de | WLAN-Wetterstation | PimpMyStation

                          mickymM 1 Antwort Letzte Antwort
                          0
                          • SBorgS SBorg

                            @mickym Sorry, gelesen schon, auch die Bildchen betrachtet, aber beim maßgeblichen Pic glatt den/die "dämlichen" Punkt/e übersehen.
                            Nur btw: bei dem Pic mit der Fehlermeldung hast du deine interne IP noch drin stehen. Ist aber auch kein Beinbruch, denn wenn ich schon dein WPA2 etc. geknackt habe und in dein Netz eingebrochen bin, dauert es ungefähr 2 Sekunden deine sämtlichen IPs auszulesen. Dann hätte ich sie sowieso, und als "Aussenstehender" nutzen mir die internen IPs auch nix.

                            btt: jetzt erst mal wieder bei Zeit am flow weiter machen ;)

                            mickymM Online
                            mickymM Online
                            mickym
                            Most Active
                            schrieb am zuletzt editiert von
                            #13

                            @sborg Danke, dass Du mich darauf aufmerksam gemacht hast. Irgendwas rutscht immer durch. Und im Prinzip hast ja Recht, dieses private C-Klasse Netz gibts millionenfach. Im Prinzip ist es deshalb egal - vielleicht ist es einfach nur, um ein gutes Gefühl zu haben.
                            Hoffe Du kommst nicht in meine Gegend zum WPA2 knacken. ;) ;)

                            Dann viel Spaß - muss mich auch mal wieder hinsetzen bin bissi faul - aber ich habe festgestellt, dass mit dem snmp sowohl auf Linux als auch auf Windows Maschinen standardisiert was auszulesen ist. Die CPU Temperatur ist immer in Problem, da lasse ich mein Windows Laptop nun über die simple API in den iobroker schreiben. ;)

                            Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                            1 Antwort Letzte Antwort
                            0
                            • mickymM mickym

                              Nachdem ja erst kürzlich eine Vorlage in JS vorgestellt wurde und es vielleicht auch NodeRed Fans in ihr Dashboard einfügen wollen, will ich hier auch mal meine Lösung mit SNMP vorstellen.

                              Leider hat bei mir der SNMP Adapter im iobroker nicht richtig funktioniert und manche OIDs einfach nicht genommen, deshalb habe ich das nun mit dem SNMP Nodes gemacht. Diese muss man vorher installieren, damit das Ganze funktioniert.

                              [
                                  {
                                      "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"
                                          ]
                                      ]
                                  }
                              ]
                              

                              Ist auch nochmal in der Beschreibung des Subflows enthalten:

                              e310b218-6a12-4e25-821e-1bce20166441-image.png

                              Mit dem Objekt was aus der Node rauskommt kann man mit dieser Node entweder wieder direkt die Objektstruktur im iobroker schreiben

                              b2eb1420-76ce-4d4d-9b40-e12355d71b25-image.png

                              oder direkt zur Ausgabe im NodeRed Dashboard weiterverwenden:

                              090f1fae-954d-427a-a75f-835bda6e5652-image.png

                              Für die - die das direkt im Dashboard weiterverarbeiten wollen habe ich deshalb mal hier den relevanten Teil, der das Objekt wieder zerlegt exportiert:

                              d15d0535-85ee-4ff4-99cd-aca7034fa11b-image.png

                              [
                                 {
                                     "id": "b71cb396.efc1b",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "Tintenfüllstand - Schwarz",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "ui_control.options.waveColor",
                                             "pt": "msg",
                                             "to": "#000000",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "move",
                                             "p": "payload.percent.black",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1830,
                                     "y": 780,
                                     "wires": [
                                         [
                                             "c89b286f.18ffd8"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "36f49445.afc2fc",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "Tintenfüllstand - Gelb",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "ui_control.options.waveColor",
                                             "pt": "msg",
                                             "to": "#bebe00",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "move",
                                             "p": "payload.percent.yellow",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1820,
                                     "y": 820,
                                     "wires": [
                                         [
                                             "e5b7ec8d.43f65"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "57304bae.5928b4",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "Tintenfüllstand - Cyan",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "ui_control.options.waveColor",
                                             "pt": "msg",
                                             "to": "#00bebe",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "move",
                                             "p": "payload.percent.cyan",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1820,
                                     "y": 860,
                                     "wires": [
                                         [
                                             "a99a650.604e598"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "2e1856a0.8b5aaa",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "Tintenfüllstand - Magenta",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "ui_control.options.waveColor",
                                             "pt": "msg",
                                             "to": "#be00be",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "move",
                                             "p": "payload.percent.magenta",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1830,
                                     "y": 900,
                                     "wires": [
                                         [
                                             "4cb57f47.e9cea"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "8cf2a9e7.f9af18",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "move",
                                             "p": "printer.cartridges",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1370,
                                     "y": 840,
                                     "wires": [
                                         [
                                             "3b2f5b0f.dfb1a4"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "3b2f5b0f.dfb1a4",
                                     "type": "switch",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "nempty"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 1,
                                     "x": 1590,
                                     "y": 840,
                                     "wires": [
                                         [
                                             "b71cb396.efc1b",
                                             "36f49445.afc2fc",
                                             "57304bae.5928b4",
                                             "2e1856a0.8b5aaa"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "fa736d59.32745",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "definiere status",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "status",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         },
                                         {
                                             "t": "move",
                                             "p": "printer.status",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         },
                                         {
                                             "t": "change",
                                             "p": "status",
                                             "pt": "msg",
                                             "from": "true",
                                             "fromt": "bool",
                                             "to": "online ",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "change",
                                             "p": "status",
                                             "pt": "msg",
                                             "from": "false",
                                             "fromt": "bool",
                                             "to": "offline ",
                                             "tot": "str"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1320,
                                     "y": 1000,
                                     "wires": [
                                         [
                                             "feb00bda.10e758"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "feb00bda.10e758",
                                     "type": "switch",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "nempty"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 1,
                                     "x": 1590,
                                     "y": 1000,
                                     "wires": [
                                         [
                                             "c4eecff0.c5575",
                                             "e7dc7a70.bbccb8",
                                             "875e8da5.62185"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "c4eecff0.c5575",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "move",
                                             "p": "payload.device",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1820,
                                     "y": 960,
                                     "wires": [
                                         [
                                             "57c27f0.211ca8"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "e7dc7a70.bbccb8",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "move",
                                             "p": "payload.printer",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1820,
                                     "y": 1000,
                                     "wires": [
                                         [
                                             "810ca229.e8a0a"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "875e8da5.62185",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "move",
                                             "p": "payload.since",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1820,
                                     "y": 1040,
                                     "wires": [
                                         [
                                             "e019bec8.f2d86"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "389eb98d.c1f386",
                                     "type": "change",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "move",
                                             "p": "printer.pages",
                                             "pt": "msg",
                                             "to": "payload",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1360,
                                     "y": 1100,
                                     "wires": [
                                         [
                                             "b79d4291.69da1"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "b79d4291.69da1",
                                     "type": "switch",
                                     "z": "99e1680f.414f18",
                                     "name": "",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "nnull"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 1,
                                     "x": 1590,
                                     "y": 1100,
                                     "wires": [
                                         [
                                             "181c20f2.f9fd1f"
                                         ]
                                     ]
                                 }
                              ]
                              

                              Wer wissen will - wie man die Farben grafisch in den Füllständen konfiguriert - ist ja nicht Standard - hier die Change Nodes betrachten:

                              habe das mal hier farbig markiert:

                              screen.png

                              Ob und bei welchen Druckern das nun funktioniert - kann ich leider nicht sagen. ;) Für die eine oder andere Rückmeldung wären deshalb manche sicherlich dankbar.

                              Noch eine Ergänzung:

                              Gestartet und beendet wird das Monitoring ja in dem man ein true oder false in die Node schickt (+ msg.host).
                              Wenn der Drucker offline geht bzw. nicht erreichbar ist - habe ich bewußt das Monitoring beendet, damit nicht sinnlos gepollt wird. Muss man dann also mit true wieder anstoßen. Deshalb muss man da ggf. den Flow drum rum etwas ausbauen. ;)

                              EDIT 28.05.2022:

                              Die Node wurde erweitert, um die IP-Adresse direkt in der Node zu spezifizieren:

                              ebf78330-8197-406e-82a5-79e448483b6f-image.png

                              JB_SullivanJ Offline
                              JB_SullivanJ Offline
                              JB_Sullivan
                              schrieb am zuletzt editiert von
                              #14

                              @mickym Hallo, wir "kennen" uns aus dem SNMP Thread bzgl. einer USV.

                              Der SNMP Adapter hat seit js-controller 3.3.x und Admin 5.x.x irgendwie komplett seinen Dienst eingestellt.

                              Darum versuche ich mich jetzt mal an Node-red, wo für mich schon die eigentliche Installation eine mitteschwere Herausforderung war. Um es vorweg zu nehmen - ich"kenne" Node-re seit exakt 2 Stunden.

                              Es ist installiert und ich bekomme Zugriff darauf. Auch der iobroker Adapter ist installiert und in ioB grün. In Node Red tauchen auch ioB "Button" auf. Soweit so gut.

                              Nun habe ich versucht das von dir oben verlinkte snmp "PlugIn" zu installieren.

                              Laut Konsole hat es es glaube ich geklappt, aber ich bekomme in node-red keine snmp Buttons angezeigt. Kannst du mir da ggf. weiter helfen?

                              Aber erwarte nicht zuviel, denn ich habe echt noch gar keine Richtige Ahnung von node-red und dessen Bedienung. Habe schon versucht node-red neu zu starten, aber unter Windows ist das wohl nicht so einfach.

                              274482c1-15d8-4055-a4cd-8edb7c82cd42-image.png

                              ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                              mickymM 2 Antworten Letzte Antwort
                              0
                              • JB_SullivanJ JB_Sullivan

                                @mickym Hallo, wir "kennen" uns aus dem SNMP Thread bzgl. einer USV.

                                Der SNMP Adapter hat seit js-controller 3.3.x und Admin 5.x.x irgendwie komplett seinen Dienst eingestellt.

                                Darum versuche ich mich jetzt mal an Node-red, wo für mich schon die eigentliche Installation eine mitteschwere Herausforderung war. Um es vorweg zu nehmen - ich"kenne" Node-re seit exakt 2 Stunden.

                                Es ist installiert und ich bekomme Zugriff darauf. Auch der iobroker Adapter ist installiert und in ioB grün. In Node Red tauchen auch ioB "Button" auf. Soweit so gut.

                                Nun habe ich versucht das von dir oben verlinkte snmp "PlugIn" zu installieren.

                                Laut Konsole hat es es glaube ich geklappt, aber ich bekomme in node-red keine snmp Buttons angezeigt. Kannst du mir da ggf. weiter helfen?

                                Aber erwarte nicht zuviel, denn ich habe echt noch gar keine Richtige Ahnung von node-red und dessen Bedienung. Habe schon versucht node-red neu zu starten, aber unter Windows ist das wohl nicht so einfach.

                                274482c1-15d8-4055-a4cd-8edb7c82cd42-image.png

                                mickymM Online
                                mickymM Online
                                mickym
                                Most Active
                                schrieb am zuletzt editiert von mickym
                                #15

                                @jb_sullivan Ich kann Dir schon helfen, aber erst mal folgende Fragen;

                                1. Warum hast Du denn mit Admin 5.x.x gearbeitet, das ist doch eine Beta Version und das ist es ggf. ganz normal dass noch nicht alles arbeitet?
                                2. Warum hast Du Dir denn nun eine eigene Installation von node-red angetan. Ich bin durchaus ein iobroker Fan und Du kannst doch beides nutzen, indem DUden Node-Red Adapter in iobroker installierst? Das ist doch das Schönen daran. Dann hast Du nämlich Zugriff auf Beides.
                                  Ich habe zwar auch eine Standalone Installation unter WIndows laufen, aber vielleicht möchtest Du ja den iobroker trotzdem nutzen, denn er bietet ausser den Adapter ja noch eine Reihe weiterer Vorteile.

                                Erst wenn wir das alles wirklich durch diskutiert haben, dass Du Dich wirklich vom iobroker verabschieden willst - dann können wir das versuchen.

                                Ich habe zwar als Testinstallation auch eine Standalone INstallation von NOde-Red auf meinem Windowsrechner, aber wie gesagt, ich würde ehrlich gerne wissen, warum Du NodeRed nicht unter dem iobroker nutzen willst?

                                Ich würde auf alle Fälle egal ob Du den SNMP Adapter nutzen willst, die Admin Version wieder downgraden.
                                Im stable arbeite ich mit JSAdapter: 3.2.16 und Admin 4.2.1

                                Ansonsten war der Link nur zu Node-BEschreibung gedacht nutzt Du zur Node Installation in Node Red den Palettenmanager:

                                60d239a6-4501-480a-91e8-746de6c86934-image.png

                                Dort gibst Du dann im Suchfeld auf die Überschrift zu den Nodes die ich verlinkt habe:

                                Also: node-red-node-snmp

                                Dann tauchen diese im Palettenmanager auf:

                                db4d3c24-c7d2-424b-9c30-78a3f46832ce-image.png

                                und dann nur noch auf installieren klicken:

                                dann taucht das unter den installierten Nodes im Palettenmanager auf:

                                12e83803-1ac9-4dbb-9f65-8a61ef144d19-image.png und stehen Dir in der network Kategorie zur Verfügung:

                                8920ef80-f026-45d7-8ce4-3fde1a4fbdfb-image.png

                                Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                JB_SullivanJ 1 Antwort Letzte Antwort
                                0
                                • JB_SullivanJ JB_Sullivan

                                  @mickym Hallo, wir "kennen" uns aus dem SNMP Thread bzgl. einer USV.

                                  Der SNMP Adapter hat seit js-controller 3.3.x und Admin 5.x.x irgendwie komplett seinen Dienst eingestellt.

                                  Darum versuche ich mich jetzt mal an Node-red, wo für mich schon die eigentliche Installation eine mitteschwere Herausforderung war. Um es vorweg zu nehmen - ich"kenne" Node-re seit exakt 2 Stunden.

                                  Es ist installiert und ich bekomme Zugriff darauf. Auch der iobroker Adapter ist installiert und in ioB grün. In Node Red tauchen auch ioB "Button" auf. Soweit so gut.

                                  Nun habe ich versucht das von dir oben verlinkte snmp "PlugIn" zu installieren.

                                  Laut Konsole hat es es glaube ich geklappt, aber ich bekomme in node-red keine snmp Buttons angezeigt. Kannst du mir da ggf. weiter helfen?

                                  Aber erwarte nicht zuviel, denn ich habe echt noch gar keine Richtige Ahnung von node-red und dessen Bedienung. Habe schon versucht node-red neu zu starten, aber unter Windows ist das wohl nicht so einfach.

                                  274482c1-15d8-4055-a4cd-8edb7c82cd42-image.png

                                  mickymM Online
                                  mickymM Online
                                  mickym
                                  Most Active
                                  schrieb am zuletzt editiert von mickym
                                  #16

                                  @jb_sullivan sagte in HP Tintenfüllstände mit NodeRed und SNMP:

                                  Aber erwarte nicht zuviel, denn ich habe echt noch gar keine Richtige Ahnung von node-red und dessen Bedienung. Habe schon versucht node-red neu zu starten, aber unter Windows ist das wohl nicht so einfach.

                                  Meine produktive Node-Red Installation läuft unter dem iobroker auf einem Raspberry. Für meine Windows-Installation, muss ich derzeit Node-Red immer manuell aufrufen bevor ich dann den Browser mit den Flows aufrufen kann.

                                  82335895-19ca-425e-91df-f862d91ac22f-image.png

                                  Meine produktive Node-Red Umgebung ist aber wie gesagt unter iobroker:

                                  d1fd7538-ab0c-4bc3-9d49-0d42ed1e67c6-image.png

                                  Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                  JB_SullivanJ 1 Antwort Letzte Antwort
                                  0
                                  • mickymM mickym

                                    @jb_sullivan sagte in HP Tintenfüllstände mit NodeRed und SNMP:

                                    Aber erwarte nicht zuviel, denn ich habe echt noch gar keine Richtige Ahnung von node-red und dessen Bedienung. Habe schon versucht node-red neu zu starten, aber unter Windows ist das wohl nicht so einfach.

                                    Meine produktive Node-Red Installation läuft unter dem iobroker auf einem Raspberry. Für meine Windows-Installation, muss ich derzeit Node-Red immer manuell aufrufen bevor ich dann den Browser mit den Flows aufrufen kann.

                                    82335895-19ca-425e-91df-f862d91ac22f-image.png

                                    Meine produktive Node-Red Umgebung ist aber wie gesagt unter iobroker:

                                    d1fd7538-ab0c-4bc3-9d49-0d42ed1e67c6-image.png

                                    JB_SullivanJ Offline
                                    JB_SullivanJ Offline
                                    JB_Sullivan
                                    schrieb am zuletzt editiert von JB_Sullivan
                                    #17

                                    @mickym

                                    Scheiße - nicht dein Ernst. Ich bin jetzt echt davon ausgegange, da es ja ein ioB ADAPTER ist, das dieser Daten einer externen Anwendung, so wie z.B. bei influxdb und dem entsprechenden ioB Adapter, auch bei Node-red, Daten von der Singel Installation in ioB adabtiert werden.

                                    Darum habe ich "brav" erst Node-Red als Stand alone Anwedung und im Anschluss den node-red ioBroker Adapter installiert.

                                    Habe mir einen Knopf an die Backe gefreut, das der Adapter gleich Grün wurde und Node-red quasi - für mein Verständiss - in gespiegelter Form auch in ioBroker auftaucht - Oh man bin ich ein Depp :face_palm: :face_palm: :face_palm: :face_palm:

                                    ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                                    mickymM 2 Antworten Letzte Antwort
                                    0
                                    • JB_SullivanJ JB_Sullivan

                                      @mickym

                                      Scheiße - nicht dein Ernst. Ich bin jetzt echt davon ausgegange, da es ja ein ioB ADAPTER ist, das dieser Daten einer externen Anwendung, so wie z.B. bei influxdb und dem entsprechenden ioB Adapter, auch bei Node-red, Daten von der Singel Installation in ioB adabtiert werden.

                                      Darum habe ich "brav" erst Node-Red als Stand alone Anwedung und im Anschluss den node-red ioBroker Adapter installiert.

                                      Habe mir einen Knopf an die Backe gefreut, das der Adapter gleich Grün wurde und Node-red quasi - für mein Verständiss - in gespiegelter Form auch in ioBroker auftaucht - Oh man bin ich ein Depp :face_palm: :face_palm: :face_palm: :face_palm:

                                      mickymM Online
                                      mickymM Online
                                      mickym
                                      Most Active
                                      schrieb am zuletzt editiert von
                                      #18

                                      @jb_sullivan Tja lesen sollte man manchmal können. ;)

                                      025b4828-22d5-47e3-a862-f63490e20b19-image.png

                                      30b1a490-475c-4d73-9865-fe490c82f026-image.png

                                      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                      1 Antwort Letzte Antwort
                                      0
                                      • mickymM mickym

                                        @jb_sullivan Ich kann Dir schon helfen, aber erst mal folgende Fragen;

                                        1. Warum hast Du denn mit Admin 5.x.x gearbeitet, das ist doch eine Beta Version und das ist es ggf. ganz normal dass noch nicht alles arbeitet?
                                        2. Warum hast Du Dir denn nun eine eigene Installation von node-red angetan. Ich bin durchaus ein iobroker Fan und Du kannst doch beides nutzen, indem DUden Node-Red Adapter in iobroker installierst? Das ist doch das Schönen daran. Dann hast Du nämlich Zugriff auf Beides.
                                          Ich habe zwar auch eine Standalone Installation unter WIndows laufen, aber vielleicht möchtest Du ja den iobroker trotzdem nutzen, denn er bietet ausser den Adapter ja noch eine Reihe weiterer Vorteile.

                                        Erst wenn wir das alles wirklich durch diskutiert haben, dass Du Dich wirklich vom iobroker verabschieden willst - dann können wir das versuchen.

                                        Ich habe zwar als Testinstallation auch eine Standalone INstallation von NOde-Red auf meinem Windowsrechner, aber wie gesagt, ich würde ehrlich gerne wissen, warum Du NodeRed nicht unter dem iobroker nutzen willst?

                                        Ich würde auf alle Fälle egal ob Du den SNMP Adapter nutzen willst, die Admin Version wieder downgraden.
                                        Im stable arbeite ich mit JSAdapter: 3.2.16 und Admin 4.2.1

                                        Ansonsten war der Link nur zu Node-BEschreibung gedacht nutzt Du zur Node Installation in Node Red den Palettenmanager:

                                        60d239a6-4501-480a-91e8-746de6c86934-image.png

                                        Dort gibst Du dann im Suchfeld auf die Überschrift zu den Nodes die ich verlinkt habe:

                                        Also: node-red-node-snmp

                                        Dann tauchen diese im Palettenmanager auf:

                                        db4d3c24-c7d2-424b-9c30-78a3f46832ce-image.png

                                        und dann nur noch auf installieren klicken:

                                        dann taucht das unter den installierten Nodes im Palettenmanager auf:

                                        12e83803-1ac9-4dbb-9f65-8a61ef144d19-image.png und stehen Dir in der network Kategorie zur Verfügung:

                                        8920ef80-f026-45d7-8ce4-3fde1a4fbdfb-image.png

                                        JB_SullivanJ Offline
                                        JB_SullivanJ Offline
                                        JB_Sullivan
                                        schrieb am zuletzt editiert von
                                        #19

                                        @mickym sagte in HP Tintenfüllstände mit NodeRed und SNMP:

                                        Warum hast Du denn mit Admin 5.x.x gearbeitet, das ist doch eine Beta Version und das ist es ggf. ganz normal dass noch nicht alles arbeitet?

                                        1.) Weil mein Produktiv System in gespiegelter Form auch als Test System her hält. Die ganzen Adapter Updates werden erst einmal auf dem "baugleichen" Testsystem ausprobiert. Wenn nach ein paar Wochen immer noch alles läuft, ziehe ich die latest Versionsnummern ja nach Bedarf (z.B. bei gravierenden Fehlerbehebungen oder bei neuen Funktionen) auf meinem Produktiv System hinterher.

                                        ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                                        1 Antwort Letzte Antwort
                                        0
                                        • JB_SullivanJ Offline
                                          JB_SullivanJ Offline
                                          JB_Sullivan
                                          schrieb am zuletzt editiert von
                                          #20

                                          OK, dann wäre das schonmal geklärt - dann schmeiße ich node-red als Standalone Version wieder von der Platte.

                                          Bliebe jetzt die nächste Frage - wie bekomme ich das node-red Plugin für snmp in ioBroker installiert. Bin in ioB auch auf Windows unterwegs.

                                          Normalerweise würde der Aufruf bei mir dann so aussehen

                                          c:/iobroker/glt/npm install node-red-node-snmp

                                          Führt das zum Ziel oder müssen spezielle Pfade von node-red angegeben werden?

                                          ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                                          mickymM 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          867

                                          Online

                                          32.6k

                                          Benutzer

                                          82.0k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe