@m-schmidt Ja leider ist der NodeRed Adapter hier in der Funktionalität dem Javascript bzw. Blockly unterlegen.
Was Du machen kannst ist über die States der einzelnen Adapter suchen.
f7bf57d2-6f8e-4274-a22a-03b77cb6b8da-image.png
In den Objekten der List Node siehst Du dann die enums, die Du dann halt rausfilterst.
{
"_id": "0_userdata.0.homekit.devices.BaDeckenlampen.On",
"type": "state",
"common": {
"name": "On",
"role": "switch",
"type": "boolean",
"desc": "Manuell erzeugt",
"read": true,
"write": true
},
"native": {},
"acl": {
"object": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"state": 1636
},
"from": "system.adapter.admin.0",
"user": "system.user.admin",
"ts": 1636298968573,
"enums": {
"enum.functions.light": "Licht",
"enum.rooms.bath": "Bad"
}
}
Also zum Beispiel:
"enum.functions.light": "Licht",
Spoiler
[
{
"id": "2c1d6b5ab9e8b3e2",
"type": "ioBroker list",
"z": "7e6af0015415146d",
"name": "",
"topic": "alias.0.*",
"objType": "state",
"regex": "",
"asArray": "true",
"onlyIDs": "false",
"withValues": "false",
"x": 400,
"y": 6580,
"wires": [
[
"e61bef46d27e04a2"
]
]
},
{
"id": "7d34bc936e3f2938",
"type": "inject",
"z": "7e6af0015415146d",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 190,
"y": 6580,
"wires": [
[
"2c1d6b5ab9e8b3e2"
]
]
},
{
"id": "67d1a39ebccbdb7b",
"type": "debug",
"z": "7e6af0015415146d",
"name": "Objekte",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 780,
"y": 6620,
"wires": []
},
{
"id": "e61bef46d27e04a2",
"type": "change",
"z": "7e6af0015415146d",
"name": "functions Licht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload[enums.'enum.functions.light'=\"Licht\"]",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 600,
"y": 6620,
"wires": [
[
"67d1a39ebccbdb7b"
]
]
},
{
"id": "164c160778beafe1",
"type": "ioBroker list",
"z": "7e6af0015415146d",
"name": "",
"topic": "0_userdata.0.*",
"objType": "state",
"regex": "",
"asArray": "true",
"onlyIDs": "false",
"withValues": "false",
"x": 380,
"y": 6660,
"wires": [
[
"e61bef46d27e04a2"
]
]
},
{
"id": "be9f12cdbbef48bd",
"type": "inject",
"z": "7e6af0015415146d",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 190,
"y": 6660,
"wires": [
[
"164c160778beafe1"
]
]
}
]
Die Arrays aus den einzelnen Adaptern kannst, ja dann ggf. wieder mergen.