Hallo @ni-ti ,
hier der Import, mittlerweile etwas erweitert und ggf. selbsterklärend.
[
{
"id": "f71670b91591eca0",
"type": "group",
"z": "5d5d89d9ce771768",
"name": "",
"style": {
"stroke": "#ffC000",
"label": true
},
"nodes": [
"f417588e2bba90d7",
"712ca043d65fba0b",
"58372d3ff7998cde",
"1c2ac0354ed8ee7b",
"69bfb8c35dce4308",
"2b5b0236de2f4c5f",
"eff00a8750990abd",
"6f5bbb48c407fe9d",
"901cf9debadb669d",
"04a241f0d95b7580",
"9872eb9b35e16aed",
"059625bf7dcd268d",
"8f11c6fa81f80f7e",
"fedac691d504abe7",
"f9e10c1341c43df1",
"d38dc54aadbe1fe2",
"a4837f2834a51ae5",
"3f82a61a9706629d",
"34f2c34f90db0ed0",
"afa123e4e3f2c3ce",
"caedd9eebaed41d4"
],
"x": 34,
"y": 5279,
"w": 1838,
"h": 648
},
{
"id": "f417588e2bba90d7",
"type": "tcp in",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "FritzBox Call Monitor",
"server": "client",
"host": "fritz.box",
"port": "1012",
"datamode": "stream",
"datatype": "utf8",
"newline": "",
"topic": "",
"trim": false,
"base64": false,
"tls": "",
"x": 170,
"y": 5500,
"wires": [
[
"712ca043d65fba0b"
]
]
},
{
"id": "712ca043d65fba0b",
"type": "csv",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "CSV Parser",
"sep": ";",
"hdrin": false,
"hdrout": "none",
"multi": "one",
"ret": "\\n",
"temp": "",
"skip": 0,
"strings": true,
"x": 370,
"y": 5500,
"wires": [
[
"58372d3ff7998cde"
]
]
},
{
"id": "58372d3ff7998cde",
"type": "switch",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "RING - CALL - CONNECT - DISCONNECT ?",
"property": "payload.col2",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "RING",
"vt": "str"
},
{
"t": "eq",
"v": "CALL",
"vt": "str"
},
{
"t": "eq",
"v": "CONNECT",
"vt": "str"
},
{
"t": "eq",
"v": "DISCONNECT",
"vt": "str"
}
],
"checkall": true,
"repair": false,
"outputs": 4,
"x": 270,
"y": 5580,
"wires": [
[
"4edfc620084155ef",
"f852246743d76955",
"17d087bf19366754"
],
[
"d38dc54aadbe1fe2",
"17d087bf19366754"
],
[
"ff862d522ef06d98"
],
[
"ff862d522ef06d98"
]
]
},
{
"id": "1c2ac0354ed8ee7b",
"type": "function",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Anrufernummer",
"func": "const callerNumber = msg.payload.col4;\nconst callerName = global.get('sensor.fritzbox_callmonitor.attributes.' + callerNumber) || callerNumber;\nmsg.payload = `Eingehender Anruf von ${callerName}`;\nreturn msg;\n",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1020,
"y": 5580,
"wires": [
[
"34f2c34f90db0ed0"
]
]
},
{
"id": "69bfb8c35dce4308",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "TCP-Input Port 1012",
"info": "",
"x": 170,
"y": 5460,
"wires": []
},
{
"id": "2b5b0236de2f4c5f",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Datenzerlegung",
"info": "",
"x": 380,
"y": 5420,
"wires": []
},
{
"id": "eff00a8750990abd",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "CSV-Parser",
"info": "",
"x": 370,
"y": 5380,
"wires": []
},
{
"id": "6f5bbb48c407fe9d",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Arrayerzeugung",
"info": "",
"x": 380,
"y": 5460,
"wires": []
},
{
"id": "901cf9debadb669d",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Staus",
"info": "",
"x": 270,
"y": 5640,
"wires": []
},
{
"id": "04a241f0d95b7580",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Eingehende Nummer",
"info": "",
"x": 1020,
"y": 5540,
"wires": []
},
{
"id": "9872eb9b35e16aed",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Changelist Nummer >>> Name",
"info": "",
"x": 1350,
"y": 5540,
"wires": []
},
{
"id": "059625bf7dcd268d",
"type": "group",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "",
"style": {
"fill": "none",
"label": true,
"stroke": "#0070c0"
},
"nodes": [
"4edfc620084155ef",
"ff862d522ef06d98",
"ac49ef098a766dd3",
"f852246743d76955",
"ccd6e89579b9759c"
],
"x": 564,
"y": 5359,
"w": 292,
"h": 262
},
{
"id": "4edfc620084155ef",
"type": "change",
"z": "5d5d89d9ce771768",
"g": "059625bf7dcd268d",
"name": "Setze flow.loop = true",
"rules": [
{
"t": "set",
"p": "flow.loop",
"pt": "flow",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "flow.lastCaller",
"pt": "flow",
"to": "payload.col4",
"tot": "msg"
}
],
"x": 700,
"y": 5440,
"wires": [
[]
]
},
{
"id": "ff862d522ef06d98",
"type": "change",
"z": "5d5d89d9ce771768",
"g": "059625bf7dcd268d",
"name": "Setze flow.loop = false",
"rules": [
{
"t": "set",
"p": "flow.loop",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"x": 700,
"y": 5480,
"wires": [
[]
]
},
{
"id": "ac49ef098a766dd3",
"type": "switch",
"z": "5d5d89d9ce771768",
"g": "059625bf7dcd268d",
"name": "loop true?",
"property": "flow.loop",
"propertyType": "flow",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 700,
"y": 5520,
"wires": [
[
"f852246743d76955"
]
]
},
{
"id": "f852246743d76955",
"type": "trigger",
"z": "5d5d89d9ce771768",
"g": "059625bf7dcd268d",
"name": "Wiederholen 7s",
"op1": "",
"op2": "",
"op1type": "pay",
"op2type": "pay",
"duration": "7",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 2,
"x": 700,
"y": 5580,
"wires": [
[
"1c2ac0354ed8ee7b"
],
[
"ac49ef098a766dd3"
]
]
},
{
"id": "ccd6e89579b9759c",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "059625bf7dcd268d",
"name": "Wiederholung (nur bei RING)",
"info": "",
"x": 710,
"y": 5400,
"wires": []
},
{
"id": "8f11c6fa81f80f7e",
"type": "group",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "",
"style": {
"fill": "none",
"label": true,
"stroke": "#0070c0"
},
"nodes": [
"17d087bf19366754",
"9b8257d999969b48",
"f20c369faba89d5e",
"9378d51559ddb6e6",
"c9e3487c901d441e",
"cafb22a32cbedfea",
"1db72a1d5e7e6320"
],
"x": 914,
"y": 5739,
"w": 912,
"h": 162
},
{
"id": "17d087bf19366754",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "Anruf aktiv",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "input_boolean.turn_on",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"input_boolean.anrufer_aktiv"
],
"labelId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "input_boolean",
"service": "turn_on",
"x": 1010,
"y": 5860,
"wires": [
[
"f20c369faba89d5e"
]
]
},
{
"id": "9b8257d999969b48",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "Anruf inaktiv",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "input_boolean.turn_off",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"input_boolean.anrufer_aktiv"
],
"labelId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "input_boolean",
"service": "turn_off",
"x": 1430,
"y": 5860,
"wires": [
[]
]
},
{
"id": "f20c369faba89d5e",
"type": "delay",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "60s",
"pauseType": "delay",
"timeout": "60",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1210,
"y": 5860,
"wires": [
[
"9b8257d999969b48"
]
]
},
{
"id": "9378d51559ddb6e6",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "Boolean-Helfer für Dashboardanzeige bei Anruf AN, nach 60s AUS (Sichtbarkeit)",
"info": "",
"x": 1220,
"y": 5820,
"wires": []
},
{
"id": "c9e3487c901d441e",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "HA Set Anrufer Name",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "input_text.set_value",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"input_text.anrufinformation"
],
"labelId": [],
"data": "{\"value\": \"{{payload}}\"}",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": false,
"domain": "input_text",
"service": "set_value",
"service_domain": "input_text",
"mergecontext": "",
"x": 1700,
"y": 5780,
"wires": [
[]
]
},
{
"id": "cafb22a32cbedfea",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "Text-Helfer für Dashboard",
"info": "",
"x": 1050,
"y": 5780,
"wires": []
},
{
"id": "1db72a1d5e7e6320",
"type": "inject",
"z": "5d5d89d9ce771768",
"g": "8f11c6fa81f80f7e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 1700,
"y": 5860,
"wires": [
[
"9b8257d999969b48"
]
]
},
{
"id": "e5c22e49.d93e4",
"type": "server",
"name": "Home Assistant",
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "",
"connectionDelay": false,
"cacheJson": false,
"heartbeat": false,
"heartbeatInterval": "",
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": "",
"enableGlobalContextStore": false
},
{
"id": "fedac691d504abe7",
"type": "group",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "",
"style": {
"fill": "none",
"label": true,
"stroke": "#0070c0"
},
"nodes": [
"3c3bc348ad324c04",
"37fbb7198ea4080f",
"a34e7e75423818d7",
"20e22e9159a89bef",
"8d985235c775a287",
"814020e2602feb3c"
],
"x": 1574,
"y": 5339,
"w": 272,
"h": 362
},
{
"id": "3c3bc348ad324c04",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "fedac691d504abe7",
"name": "ALEXA 1",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "notify.alexa_media_xyz",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{ \"message\": \"{{payload}}\", \"data\": { \"type\": \"announce\" } }",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "data"
}
],
"queue": "none",
"blockInputOverrides": false,
"domain": "notify",
"service": "alexa_media_xyz",
"x": 1660,
"y": 5420,
"wires": [
[]
]
},
{
"id": "37fbb7198ea4080f",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "fedac691d504abe7",
"name": "ALEXA - Sprachansagen",
"info": "",
"x": 1710,
"y": 5380,
"wires": []
},
{
"id": "a34e7e75423818d7",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "fedac691d504abe7",
"name": "ALEXA 4",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "notify.alexa_media_xyz",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{ \"message\": \"{{payload}}\", \"data\": { \"type\": \"announce\" } }",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "data"
}
],
"queue": "none",
"blockInputOverrides": false,
"domain": "notify",
"service": "alexa_media_xyz",
"x": 1660,
"y": 5600,
"wires": [
[]
]
},
{
"id": "20e22e9159a89bef",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "fedac691d504abe7",
"name": "ALEXA 5",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "notify.alexa_media_xyz",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{ \"message\": \"{{payload}}\", \"data\": { \"type\": \"announce\" } }",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "data"
}
],
"queue": "none",
"blockInputOverrides": false,
"domain": "notify",
"service": "alexa_media_xyz",
"x": 1660,
"y": 5660,
"wires": [
[]
]
},
{
"id": "8d985235c775a287",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "fedac691d504abe7",
"name": "ALEXA 3",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "notify.alexa_media_xyz",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{ \"message\": \"{{payload}}\", \"data\": { \"type\": \"announce\" } }",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "data"
}
],
"queue": "none",
"blockInputOverrides": false,
"domain": "notify",
"service": "alexa_media_xyz",
"x": 1660,
"y": 5540,
"wires": [
[]
]
},
{
"id": "814020e2602feb3c",
"type": "api-call-service",
"z": "5d5d89d9ce771768",
"g": "fedac691d504abe7",
"name": "ALEXA 2",
"server": "e5c22e49.d93e4",
"version": 7,
"debugenabled": false,
"action": "notify.alexa_media_xyz",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{ \"message\": \"{{payload}}\", \"data\": { \"type\": \"announce\" } }",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "data"
}
],
"queue": "none",
"blockInputOverrides": false,
"domain": "notify",
"service": "alexa_media_xyz",
"x": 1660,
"y": 5480,
"wires": [
[]
]
},
{
"id": "f9e10c1341c43df1",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Festnetz-Anrufansage ___________________________________________________________________________________________________________________________________________________________",
"info": "",
"x": 760,
"y": 5320,
"wires": []
},
{
"id": "d38dc54aadbe1fe2",
"type": "function",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Angerufene Nummer",
"func": "const calledNumber = msg.payload.col6;\nconst calledName = global.get('sensor.fritzbox_callmonitor.attributes.' + calledNumber) || calledNumber;\nmsg.payload = `Ausgehender Anruf an : ${calledName}`;\nreturn msg;\n",
"outputs": 1,
"timeout": "0",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1020,
"y": 5680,
"wires": [
[
"caedd9eebaed41d4"
]
]
},
{
"id": "a4837f2834a51ae5",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Ausgehende Nummer",
"info": "",
"x": 1020,
"y": 5640,
"wires": []
},
{
"id": "3f82a61a9706629d",
"type": "comment",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Changelist Nummer >>> Name",
"info": "",
"x": 1350,
"y": 5640,
"wires": []
},
{
"id": "34f2c34f90db0ed0",
"type": "change",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Regeln (Nummer -> Name)",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "01761111111",
"fromt": "num",
"to": "Name Handy",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "0157111111",
"fromt": "num",
"to": "Name 2 Handy",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "usw.",
"fromt": "str",
"to": "usw.",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1340,
"y": 5580,
"wires": [
[
"3c3bc348ad324c04",
"c9e3487c901d441e",
"814020e2602feb3c",
"8d985235c775a287",
"a34e7e75423818d7",
"20e22e9159a89bef"
]
]
},
{
"id": "afa123e4e3f2c3ce",
"type": "inject",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Test",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 1010,
"y": 5460,
"wires": [
[
"1c2ac0354ed8ee7b"
]
]
},
{
"id": "caedd9eebaed41d4",
"type": "change",
"z": "5d5d89d9ce771768",
"g": "f71670b91591eca0",
"name": "Regeln (Nummer -> Name)",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "017611111111",
"fromt": "num",
"to": "Name Handy",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "015711111111",
"fromt": "num",
"to": "Name 2 Handy",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "usw.",
"fromt": "str",
"to": "usw.",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1340,
"y": 5680,
"wires": [
[
"c9e3487c901d441e"
]
]
},
{
"id": "4611e0ad980ef34f",
"type": "global-config",
"env": [],
"modules": {
"node-red-contrib-home-assistant-websocket": "0.80.3"
}
}
]