Fritz!Box Incoming Call
Whenever a call is inbound to the Fritz!Box, a notification is shown on the Awtrix.
About this flow
| System | Node-RED |
|---|---|
| AWTRIX version | AWTRIX 3 |
| Topic | Smarthome |
| Built by | electric-m |
| File | gkVBon3YOn4x.json · 2.5 KB |
| Icons | 1 |
| Published | 22 Dec 2023 · updated 20 Jan 2024 |
| Downloads | 43 |
Is this your flow?
If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.
Flow description
The Symbol is a ringing phone, the text is the number of the caller.
The Fritzbox Node needs to be properly configured, as well as your own MQTT Server.
Adjust the Awtrix topic to your needing.
The notification would actually repeat 10 times. That is, to keep it up long enough. Conveniently though, when the caller hangs up, the notification is dismissed through the second output.
gkVBon3YOn4x.json
[
{
"id": "73c5d9d0d102eb2a",
"type": "tab",
"label": "Awtrix incoming call",
"disabled": false,
"info": "",
"env": []
},
{
"id": "6d1ba29c2fa36ae8",
"type": "function",
"z": "73c5d9d0d102eb2a",
"name": "create caller-id message",
"func": "var caller = \"\";\n\nif (msg.payload && msg.payload.type === \"INBOUND\") {\n caller = msg.payload.caller;\n\n msg.payload = {\n \"text\": caller,\n \"icon\": 1232,\n \"repeat\": 10,\n \"pushIcon\": 0,\n \"save\": true,\n \"textCase\": 2\n };\n\n return [{ payload: msg.payload }, null];\n} else {\n caller = ''; // or set it to some default value\n msg.payload = \"\";\n return [null, { payload: 1 }]; // Adjust the value as needed for output 2\n}\n\nnode.status({ fill: 'green', shape: 'ring', text: \"Call from\" + ' : ' + caller });\nreturn msg;\n",
"outputs": 2,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 650,
"y": 280,
"wires": [
[
"1eb36040e542b763"
],
[
"a43a9ef28c04d848"
]
]
},
{
"id": "1eb36040e542b763",
"type": "mqtt out",
"z": "73c5d9d0d102eb2a",
"name": "Notify Incoming Call",
"topic": "awtrix_ip/notify",
"qos": "1",
"retain": "false",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "",
"x": 900,
"y": 260,
"wires": []
},
{
"id": "a43a9ef28c04d848",
"type": "mqtt out",
"z": "73c5d9d0d102eb2a",
"name": "Dismiss Notification",
"topic": "awtrix_ip/notify/dismiss",
"qos": "1",
"retain": "false",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "",
"x": 900,
"y": 320,
"wires": []
},
{
"id": "0630a4323d4ad39e",
"type": "fritzbox-callmonitor",
"z": "73c5d9d0d102eb2a",
"device": "",
"name": "",
"topic": "",
"x": 380,
"y": 280,
"wires": [
[
"6d1ba29c2fa36ae8"
]
]
}
]
This flow uses the following icons. Add them to your AWTRIX along with the flow.
8×8 px
Sign in to download these icons or send them to your AWTRIX.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
Have an idea?
Sign in to ask questions and join the conversation.