[
{
"id": "85395d3e7d299c24",
"type": "inject",
"z": "517cd16e4d7e6ae4",
"name": "Eingangswerte",
"props": [
{
"p": "input",
"v": "{\"scriptVersion\":\"0.1\",\"src\":\"shellies/Pro3_EM\",\"srcBle\":{\"mac\":\"b4:35:22:fe:56:ad\"},\"payload\":{\"encryption\":false,\"BTHome_version\":2,\"pid\":253,\"battery\":100,\"button\":2,\"rssi\":-79,\"address\":\"b4:35:22:fe:56:ad\"}}",
"vt": "json"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 180,
"y": 780,
"wires": [
[
"9ac0c724ea2285d2",
"71622aabe05c1ac5"
]
]
},
{
"id": "9ac0c724ea2285d2",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "konstruiere OriginalObjekt",
"rules": [
{
"t": "move",
"p": "input.scriptVersion",
"pt": "msg",
"to": "scriptVersion",
"tot": "msg"
},
{
"t": "move",
"p": "input.src",
"pt": "msg",
"to": "src",
"tot": "msg"
},
{
"t": "move",
"p": "input.srcBle",
"pt": "msg",
"to": "srcBle",
"tot": "msg"
},
{
"t": "move",
"p": "input.payload",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "delete",
"p": "input",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 780,
"wires": [
[
"dbf5c78009b4f581",
"f19cc6f7778c2633"
]
]
},
{
"id": "71622aabe05c1ac5",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Eingabewert",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 370,
"y": 740,
"wires": []
},
{
"id": "dbf5c78009b4f581",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Originalobjekt",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 620,
"y": 740,
"wires": []
},
{
"id": "831875c3be845a77",
"type": "split",
"z": "517cd16e4d7e6ae4",
"name": "teile Objekt in Einzelnachrichten",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "topic",
"x": 790,
"y": 840,
"wires": [
[
"4e6bbe32dfcc7c5d"
]
]
},
{
"id": "f19cc6f7778c2633",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Ändere srcBle",
"rules": [
{
"t": "change",
"p": "srcBle.mac",
"pt": "msg",
"from": ":",
"fromt": "str",
"to": "-",
"tot": "str"
},
{
"t": "set",
"p": "srcBle",
"pt": "msg",
"to": "\"0_userdata.0.Wohnung.Status.Shelly.Shelly-BLE-Geraete.\" & srcBle.mac",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 240,
"y": 840,
"wires": [
[
"c1cac0b6dc174190"
]
]
},
{
"id": "c1cac0b6dc174190",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Entferne payload-Eigenschaften",
"rules": [
{
"t": "delete",
"p": "payload.address",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 490,
"y": 840,
"wires": [
[
"831875c3be845a77"
]
]
},
{
"id": "4e6bbe32dfcc7c5d",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "erstelle topic",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "srcBle & \".\" & topic",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1030,
"y": 840,
"wires": [
[
"15bab36dddd209ed",
"474c1b7582b85047"
]
]
},
{
"id": "474c1b7582b85047",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Einzelnachrichten",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1230,
"y": 800,
"wires": []
},
{
"id": "15bab36dddd209ed",
"type": "ioBroker out",
"z": "517cd16e4d7e6ae4",
"name": "schreibe Werte",
"topic": "",
"ack": "true",
"autoCreate": "true",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "false",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1220,
"y": 840,
"wires": []
}
]