[
{
"id": "44d25d1b10b4fdc7",
"type": "group",
"z": "7e6af0015415146d",
"name": "Only IDs",
"style": {
"label": true
},
"nodes": [
"750e461453f800f9",
"f6fd573ff1603ead",
"29cb8341265af84f",
"0fa964dcba3accf5",
"6e680242a1f6e19e",
"7ac2b919939c4d42",
"9311df4790cdbe04",
"80b7ca2866737936",
"0c8bec3d3be48173",
"b976bef4126c177a"
],
"x": 54,
"y": 2439,
"w": 952,
"h": 262
},
{
"id": "750e461453f800f9",
"type": "inject",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "Nur topic als Selector",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"topic\":\"(functions=light) [state.id=alias.0.schalter.*.on]\"}",
"payloadType": "json",
"x": 240,
"y": 2480,
"wires": [
[
"f6fd573ff1603ead"
]
]
},
{
"id": "f6fd573ff1603ead",
"type": "json",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 430,
"y": 2480,
"wires": [
[
"29cb8341265af84f"
]
]
},
{
"id": "29cb8341265af84f",
"type": "ioBroker out",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"topic": "0_userdata.0.NodeRed.selector",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 650,
"y": 2480,
"wires": []
},
{
"id": "0fa964dcba3accf5",
"type": "ioBroker in",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"topic": "0_userdata.0.NodeRed.selector",
"payloadType": "value",
"onlyack": "update",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 210,
"y": 2540,
"wires": [
[
"6e680242a1f6e19e"
]
]
},
{
"id": "6e680242a1f6e19e",
"type": "json",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 430,
"y": 2540,
"wires": [
[
"7ac2b919939c4d42",
"9311df4790cdbe04"
]
]
},
{
"id": "7ac2b919939c4d42",
"type": "debug",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "IDs von Selector",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 2540,
"wires": []
},
{
"id": "9311df4790cdbe04",
"type": "split",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 590,
"y": 2600,
"wires": [
[
"0c8bec3d3be48173"
]
]
},
{
"id": "80b7ca2866737936",
"type": "ioBroker get",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"topic": "",
"attrname": "payload",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 580,
"y": 2660,
"wires": [
[
"b976bef4126c177a"
]
]
},
{
"id": "0c8bec3d3be48173",
"type": "change",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "",
"rules": [
{
"t": "move",
"p": "payload",
"pt": "msg",
"to": "topic",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 780,
"y": 2600,
"wires": [
[
"80b7ca2866737936"
]
]
},
{
"id": "b976bef4126c177a",
"type": "debug",
"z": "7e6af0015415146d",
"g": "44d25d1b10b4fdc7",
"name": "Gelesene Werte vom Selektor",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 830,
"y": 2660,
"wires": []
},
{
"id": "66cd713bd728bf0b",
"type": "group",
"z": "7e6af0015415146d",
"name": "Subscribe Selector",
"style": {
"label": true
},
"nodes": [
"ce94710ba9138d5f",
"b42a36143bf213d8",
"9715126f03f7caba",
"139ada8b966f92f4",
"349a1def489caede",
"832e54742b28340b",
"98ee845ca189c433",
"0b6c8da8ee75d1a4",
"0fc809759e3593a2"
],
"x": 54,
"y": 2739,
"w": 952,
"h": 242
},
{
"id": "ce94710ba9138d5f",
"type": "inject",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "Subscribe Selector",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"topic\":\"(functions=light) [state.id=alias.0.schalter.*.on]\",\"payload\":true,\"events\":\"0_userdata.0.mwhelper.events\"}",
"payloadType": "json",
"x": 250,
"y": 2820,
"wires": [
[
"b42a36143bf213d8"
]
]
},
{
"id": "b42a36143bf213d8",
"type": "json",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 510,
"y": 2800,
"wires": [
[
"9715126f03f7caba"
]
]
},
{
"id": "9715126f03f7caba",
"type": "ioBroker out",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "",
"topic": "0_userdata.0.NodeRed.selector",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 750,
"y": 2800,
"wires": []
},
{
"id": "139ada8b966f92f4",
"type": "ioBroker in",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "",
"topic": "0_userdata.0.mwhelper.events",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 210,
"y": 2880,
"wires": [
[
"349a1def489caede"
]
]
},
{
"id": "349a1def489caede",
"type": "json",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 450,
"y": 2880,
"wires": [
[
"832e54742b28340b",
"98ee845ca189c433"
]
]
},
{
"id": "832e54742b28340b",
"type": "debug",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "Geändertes Objekt",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 630,
"y": 2880,
"wires": []
},
{
"id": "98ee845ca189c433",
"type": "change",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "iobroker IN",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "payload.id",
"tot": "msg"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.state.val",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 2940,
"wires": [
[
"0b6c8da8ee75d1a4"
]
]
},
{
"id": "0b6c8da8ee75d1a4",
"type": "debug",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "triggered nach Selector",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 850,
"y": 2940,
"wires": []
},
{
"id": "0fc809759e3593a2",
"type": "inject",
"z": "7e6af0015415146d",
"g": "66cd713bd728bf0b",
"name": "Unubscribe Selector",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"topic\":\"(functions=light) [state.id=alias.0.schalter.*.on]\",\"payload\":false}",
"payloadType": "json",
"x": 250,
"y": 2780,
"wires": [
[
"b42a36143bf213d8"
]
]
}
]