Extend Fritz Config

This commit is contained in:
nodered-awetrix 2025-10-31 22:36:13 +01:00
parent e763d4a007
commit eb9de0584e

View File

@ -7,6 +7,14 @@
"info": "", "info": "",
"env": [] "env": []
}, },
{
"id": "1b69961e4c6ff4eb",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{ {
"id": "ad11af5d5835415a", "id": "ad11af5d5835415a",
"type": "fritzbox-config", "type": "fritzbox-config",
@ -91,7 +99,9 @@
"wires": [ "wires": [
[ [
"156c0331c926b697", "156c0331c926b697",
"566257d96f364db1" "566257d96f364db1",
"eb1f5da4684a1882",
"9bafe73d95c7ac14"
] ]
] ]
}, },
@ -100,7 +110,7 @@
"type": "debug", "type": "debug",
"z": "40aabaff57950a4d", "z": "40aabaff57950a4d",
"name": "DSL SPEEDINFO", "name": "DSL SPEEDINFO",
"active": true, "active": false,
"tosidebar": true, "tosidebar": true,
"console": false, "console": false,
"tostatus": false, "tostatus": false,
@ -135,7 +145,7 @@
"type": "debug", "type": "debug",
"z": "40aabaff57950a4d", "z": "40aabaff57950a4d",
"name": "DSL Connection Info", "name": "DSL Connection Info",
"active": true, "active": false,
"tosidebar": true, "tosidebar": true,
"console": false, "console": false,
"tostatus": false, "tostatus": false,
@ -180,7 +190,7 @@
"type": "debug", "type": "debug",
"z": "40aabaff57950a4d", "z": "40aabaff57950a4d",
"name": "mqtt speeds", "name": "mqtt speeds",
"active": true, "active": false,
"tosidebar": true, "tosidebar": true,
"console": false, "console": false,
"tostatus": false, "tostatus": false,
@ -217,7 +227,7 @@
"type": "debug", "type": "debug",
"z": "40aabaff57950a4d", "z": "40aabaff57950a4d",
"name": "mqtt uptime", "name": "mqtt uptime",
"active": true, "active": false,
"tosidebar": true, "tosidebar": true,
"console": false, "console": false,
"tostatus": false, "tostatus": false,
@ -252,7 +262,7 @@
"type": "debug", "type": "debug",
"z": "40aabaff57950a4d", "z": "40aabaff57950a4d",
"name": "upstream", "name": "upstream",
"active": true, "active": false,
"tosidebar": true, "tosidebar": true,
"console": false, "console": false,
"tostatus": false, "tostatus": false,
@ -269,7 +279,7 @@
"type": "debug", "type": "debug",
"z": "40aabaff57950a4d", "z": "40aabaff57950a4d",
"name": "downstream", "name": "downstream",
"active": true, "active": false,
"tosidebar": true, "tosidebar": true,
"console": false, "console": false,
"tostatus": false, "tostatus": false,
@ -298,5 +308,383 @@
"x": 890, "x": 890,
"y": 240, "y": 240,
"wires": [] "wires": []
},
{
"id": "eb1f5da4684a1882",
"type": "fritzbox-in",
"z": "40aabaff57950a4d",
"device": "ad11af5d5835415a",
"name": "MKBOX Connection",
"service": "urn:schemas-upnp-org:service:WANIPConnection:1",
"action": "GetExternalIPAddress",
"arguments": "{}",
"x": 360,
"y": 780,
"wires": [
[
"af4aa5471cb85eb5"
]
]
},
{
"id": "af4aa5471cb85eb5",
"type": "debug",
"z": "40aabaff57950a4d",
"name": "External IP Info",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 800,
"y": 780,
"wires": []
},
{
"id": "9bafe73d95c7ac14",
"type": "fritzbox-in",
"z": "40aabaff57950a4d",
"device": "ad11af5d5835415a",
"name": "MKBOX Connection",
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos",
"arguments": "{}",
"x": 360,
"y": 860,
"wires": [
[
"e9f1dfb093966413",
"afc629a01d206b95",
"68d1d99af9a0ddcb"
]
]
},
{
"id": "e9f1dfb093966413",
"type": "debug",
"z": "40aabaff57950a4d",
"name": "External Data Rate",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 870,
"y": 860,
"wires": []
},
{
"id": "6bd7e54058f69e92",
"type": "function",
"z": "40aabaff57950a4d",
"name": "Bytes-2-kb",
"func": "msg.payload = (msg.payload / 1024 ).toFixed(2);\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 630,
"y": 1000,
"wires": [
[
"05ac3a237b5c7556"
]
]
},
{
"id": "481fbd7857191cde",
"type": "function",
"z": "40aabaff57950a4d",
"name": "Bytes-2-kb",
"func": "msg.payload = (msg.payload / 1024 ).toFixed(2);\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 630,
"y": 940,
"wires": [
[
"a61fc3e1f84ba7fb"
]
]
},
{
"id": "afc629a01d206b95",
"type": "change",
"z": "40aabaff57950a4d",
"name": "receiveRate",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.NewByteReceiveRate",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 940,
"wires": [
[
"481fbd7857191cde"
]
]
},
{
"id": "68d1d99af9a0ddcb",
"type": "change",
"z": "40aabaff57950a4d",
"name": "sendRate",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.NewByteSendRate",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 380,
"y": 1000,
"wires": [
[
"6bd7e54058f69e92"
]
]
},
{
"id": "a61fc3e1f84ba7fb",
"type": "debug",
"z": "40aabaff57950a4d",
"name": "ReceiveRate",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 850,
"y": 940,
"wires": []
},
{
"id": "05ac3a237b5c7556",
"type": "debug",
"z": "40aabaff57950a4d",
"name": "SendRate",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 840,
"y": 1000,
"wires": []
},
{
"id": "cf98613.60e11a",
"type": "comment",
"z": "1b69961e4c6ff4eb",
"name": "AnwesenheitHandy1",
"info": "",
"x": 190,
"y": 220,
"wires": []
},
{
"id": "eedc08fb.12b8f8",
"type": "inject",
"z": "1b69961e4c6ff4eb",
"name": "AnwesenheitHandy1",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "60",
"crontab": "",
"once": true,
"onceDelay": "1",
"topic": "",
"payload": "{'NewMACAddress': 'D8:3A:DD:99:FA:18'}",
"payloadType": "jsonata",
"x": 240,
"y": 280,
"wires": [
[
"38b70c39.68f504"
]
]
},
{
"id": "c546f3f1.387d1",
"type": "debug",
"z": "1b69961e4c6ff4eb",
"name": "AnwesenheitHandy1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.NewActive",
"x": 660,
"y": 200,
"wires": []
},
{
"id": "1c07ae94.c6b621",
"type": "trigger",
"z": "1b69961e4c6ff4eb",
"name": "",
"op1": "AnwesenheitHandy1 ist im Netzwerk angemeldet",
"op2": "0",
"op1type": "str",
"op2type": "str",
"duration": "0",
"extend": false,
"units": "ms",
"reset": "0",
"bytopic": "all",
"outputs": 1,
"x": 930,
"y": 280,
"wires": [
[
"bbba3d1e1a2efe3b"
]
]
},
{
"id": "3c25ea32.a803d6",
"type": "change",
"z": "1b69961e4c6ff4eb",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.NewActive",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 650,
"y": 340,
"wires": [
[
"1c07ae94.c6b621",
"379d6bd2.312594",
"0d835eeb041711cd"
]
]
},
{
"id": "379d6bd2.312594",
"type": "trigger",
"z": "1b69961e4c6ff4eb",
"name": "",
"op1": "AnwesenheitHandy1 ist nicht mehr im Netzwerk angemeldet",
"op2": "0",
"op1type": "str",
"op2type": "str",
"duration": "0",
"extend": false,
"units": "ms",
"reset": "1",
"bytopic": "all",
"outputs": 1,
"x": 940,
"y": 420,
"wires": [
[
"bbba3d1e1a2efe3b"
]
]
},
{
"id": "38b70c39.68f504",
"type": "fritzbox-in",
"z": "1b69961e4c6ff4eb",
"device": "ad11af5d5835415a",
"name": "",
"service": "urn:dslforum-org:service:Hosts:1",
"action": "GetSpecificHostEntry",
"arguments": "{'NewMACAddress':'value'}",
"x": 440,
"y": 280,
"wires": [
[
"c546f3f1.387d1",
"3c25ea32.a803d6"
]
]
},
{
"id": "0d835eeb041711cd",
"type": "debug",
"z": "1b69961e4c6ff4eb",
"name": "Triiger BLock",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 930,
"y": 340,
"wires": []
},
{
"id": "bbba3d1e1a2efe3b",
"type": "debug",
"z": "1b69961e4c6ff4eb",
"name": "SendData",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1200,
"y": 340,
"wires": []
} }
] ]