Moin,
soweit ich es verstanden habe, kannst du in Node-Red nicht direkt auf ioBroker-Objekte zugreifen. Du müsstest also zuerst den Wert deines ioBroker-Objektes (node-red.0.UserData.MaxBat) in Node-Red einlesen und dann dort weiterverarbeiten.
Könnte es das sein was du benötigst?
Du müsstest das Topic des ioBroker-get-Nodes noch anpassen.
[
{
"id": "21bc3a0a.07fcc6",
"type": "inject",
"z": "ea637c16.c6b6f",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "90",
"payloadType": "num",
"x": 90,
"y": 220,
"wires": [
[
"958d5445.8a3ff8"
]
]
},
{
"id": "bc8a7625.508f58",
"type": "switch",
"z": "ea637c16.c6b6f",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lte",
"v": "76",
"vt": "num"
},
{
"t": "gte",
"v": "MaxBat",
"vt": "msg"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 870,
"y": 220,
"wires": [
[
"914e33e6.5d56b"
],
[
"d07ca42.7a2ab58"
],
[
"97ccfc25.b4e91"
]
]
},
{
"id": "914e33e6.5d56b",
"type": "debug",
"z": "ea637c16.c6b6f",
"name": "<=76",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1410,
"y": 180,
"wires": []
},
{
"id": "d07ca42.7a2ab58",
"type": "debug",
"z": "ea637c16.c6b6f",
"name": ">= MaxBat",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1430,
"y": 220,
"wires": []
},
{
"id": "97ccfc25.b4e91",
"type": "debug",
"z": "ea637c16.c6b6f",
"name": "alle anderen Werte ",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1450,
"y": 260,
"wires": []
},
{
"id": "958d5445.8a3ff8",
"type": "ioBroker get",
"z": "ea637c16.c6b6f",
"name": "",
"topic": "0_userdata.0.MaxBat",
"attrname": "MaxBat",
"payloadType": "value",
"x": 320,
"y": 220,
"wires": [
[
"bc8a7625.508f58"
]
]
}
]