Hi,
I just wanted to let you know, that I managed to do most of my wanted "actions"!
Thank you very much!
[
{
"id": "5ec0b74d01a77dd8",
"type": "mqtt in",
"z": "da74aa24b406fbc1",
"name": "BKW DTU ALLE",
"topic": "bkw/dtu/#",
"qos": "0",
"datatype": "auto-detect",
"broker": "db6aefa0851d099a",
"nl": false,
"rap": false,
"rh": 0,
"inputs": 0,
"x": 140,
"y": 580,
"wires": [
[
"b40b67f22656bf77",
"a7296ea9a7ba391c"
]
]
},
{
"id": "b40b67f22656bf77",
"type": "switch",
"z": "da74aa24b406fbc1",
"name": "",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bkw/dtu/ip",
"vt": "str"
},
{
"t": "eq",
"v": "bkw/dtu/hostname",
"vt": "str"
},
{
"t": "eq",
"v": "bkw/dtu/rssi",
"vt": "str"
},
{
"t": "eq",
"v": "bkw/dtu/status",
"vt": "str"
},
{
"t": "eq",
"v": "bkw/dtu/uptime",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 5,
"x": 370,
"y": 580,
"wires": [
[
"7a5b68dbe1b8c06f",
"7e6712ba8219810f"
],
[
"df2bb614e77dd845",
"7e6712ba8219810f"
],
[
"d4199abcd9bb9528",
"7e6712ba8219810f"
],
[
"f1f84751f7c1540d",
"7e6712ba8219810f"
],
[
"148c2e510cd68245",
"7e6712ba8219810f"
]
]
},
{
"id": "7a5b68dbe1b8c06f",
"type": "change",
"z": "da74aa24b406fbc1",
"name": "ip",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "ip",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 500,
"wires": [
[
"ba1b631d46011df3",
"19282e7f290e0f87"
]
]
},
{
"id": "df2bb614e77dd845",
"type": "change",
"z": "da74aa24b406fbc1",
"name": "hostname",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "hostname",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 620,
"y": 540,
"wires": [
[
"ba1b631d46011df3",
"b41a2d6af5cb2e52"
]
]
},
{
"id": "d4199abcd9bb9528",
"type": "change",
"z": "da74aa24b406fbc1",
"name": "RSSI",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "rssi",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 640,
"wires": [
[
"ba1b631d46011df3",
"3ad39f65f46f252a"
]
]
},
{
"id": "f1f84751f7c1540d",
"type": "change",
"z": "da74aa24b406fbc1",
"name": "status",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "status",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 580,
"wires": [
[
"ba1b631d46011df3",
"3cadef2b36f2b9ab"
]
]
},
{
"id": "148c2e510cd68245",
"type": "change",
"z": "da74aa24b406fbc1",
"name": "uptime",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "uptime",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 680,
"wires": [
[
"ba1b631d46011df3",
"0b3e01c369b4472c"
]
]
},
{
"id": "52a5eba435b1e589",
"type": "join",
"z": "da74aa24b406fbc1",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": true,
"timeout": "",
"count": "6",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1210,
"y": 580,
"wires": [
[
"211cb5852700edad",
"a454653198085fdf"
]
]
},
{
"id": "211cb5852700edad",
"type": "debug",
"z": "da74aa24b406fbc1",
"name": "BKW Debug DTU",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1430,
"y": 520,
"wires": []
},
{
"id": "a7296ea9a7ba391c",
"type": "debug",
"z": "da74aa24b406fbc1",
"name": "BKW DTU Debug MQTT",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 310,
"y": 760,
"wires": []
},
{
"id": "7e6712ba8219810f",
"type": "debug",
"z": "da74aa24b406fbc1",
"name": "BKW DTU SWITCH Debug",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 760,
"wires": []
},
{
"id": "ba1b631d46011df3",
"type": "debug",
"z": "da74aa24b406fbc1",
"name": "BKW DTU TOPIC Debug",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 760,
"wires": []
},
{
"id": "a454653198085fdf",
"type": "file",
"z": "da74aa24b406fbc1",
"name": "energie-pv-dtu.json",
"filename": "/home/antoniobeemax/web-data/energie/data/energie-pv-dtu.json",
"filenameType": "str",
"appendNewline": true,
"createDir": false,
"overwriteFile": "true",
"encoding": "utf8",
"x": 1630,
"y": 580,
"wires": [
[]
]
},
{
"id": "a1b650a2eff912f3",
"type": "debug",
"z": "da74aa24b406fbc1",
"name": "BKW Debug DTU JSON",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1650,
"y": 640,
"wires": []
},
{
"id": "0b3e01c369b4472c",
"type": "delay",
"z": "da74aa24b406fbc1",
"name": "Maximal alle 15min",
"pauseType": "timed",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "15",
"rateUnits": "minute",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"allowrate": false,
"outputs": 1,
"x": 930,
"y": 680,
"wires": [
[
"52a5eba435b1e589"
]
]
},
{
"id": "3ad39f65f46f252a",
"type": "delay",
"z": "da74aa24b406fbc1",
"name": "Maximal alle 15min",
"pauseType": "timed",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "15",
"rateUnits": "minute",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"allowrate": false,
"outputs": 1,
"x": 930,
"y": 640,
"wires": [
[
"52a5eba435b1e589"
]
]
},
{
"id": "f161e82a45270adc",
"type": "change",
"z": "da74aa24b406fbc1",
"name": "Zeit",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "",
"tot": "date"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 970,
"y": 900,
"wires": [
[
"52a5eba435b1e589",
"d46609672595eacd",
"63e6e930bd4811cf",
"3ad98406e84e7654"
]
]
},
{
"id": "ae2e308d25b37df2",
"type": "inject",
"z": "da74aa24b406fbc1",
"name": "Alle 5 Minuten",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "300",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "timestamp",
"payload": "",
"payloadType": "date",
"x": 600,
"y": 900,
"wires": [
[
"f161e82a45270adc"
]
]
},
{
"id": "3cadef2b36f2b9ab",
"type": "delay",
"z": "da74aa24b406fbc1",
"name": "Maximal alle 15min",
"pauseType": "timed",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "15",
"rateUnits": "minute",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"allowrate": false,
"outputs": 1,
"x": 930,
"y": 580,
"wires": [
[
"52a5eba435b1e589"
]
]
},
{
"id": "b41a2d6af5cb2e52",
"type": "delay",
"z": "da74aa24b406fbc1",
"name": "Maximal alle 15min",
"pauseType": "timed",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "15",
"rateUnits": "minute",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"allowrate": false,
"outputs": 1,
"x": 930,
"y": 540,
"wires": [
[
"52a5eba435b1e589"
]
]
},
{
"id": "19282e7f290e0f87",
"type": "delay",
"z": "da74aa24b406fbc1",
"name": "Maximal alle 15min",
"pauseType": "timed",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "15",
"rateUnits": "minute",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"allowrate": false,
"outputs": 1,
"x": 930,
"y": 500,
"wires": [
[
"52a5eba435b1e589"
]
]
},
{
"id": "db6aefa0851d099a",
"type": "mqtt-broker",
"name": "MQTT collector",
"broker": "localhost",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "2",
"birthRetain": "true",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]
There are still some questions open and I may ask deeper as soon as I have time to check and dig for solutions here - but my main question is answered and it works - thank you again.
best regards
A. B.