Skip to content

Commit

Permalink
Add catch all
Browse files Browse the repository at this point in the history
  • Loading branch information
theautomation committed Aug 30, 2024
1 parent 5e79518 commit c21c2b3
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 148 deletions.
98 changes: 70 additions & 28 deletions src/data/flows/automation_climate_graph_input_select_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,65 @@
"nodes": [
"1216fc8eb38d5547",
"344cbd55957359b6",
"3bb7516008d0f0ca"
"3bb7516008d0f0ca",
"9e895cf92217d0d8",
"d96e500b8264b91c"
],
"x": 14,
"y": 39,
"w": 382,
"w": 682,
"h": 82
},
{
"id": "3bb7516008d0f0ca",
"type": "link out",
"z": "1adcdebcdc8e5c39",
"g": "37ce07449a33a2f1",
"name": "link_out_notify_1",
"mode": "link",
"links": [
"a97f87cfab413716"
],
"x": 655,
"y": 80,
"wires": []
},
{
"id": "344cbd55957359b6",
"type": "template",
"z": "1adcdebcdc8e5c39",
"g": "37ce07449a33a2f1",
"name": "messsage",
"field": "notify.message",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "message: {{error.message}} \\nid: {{error.source.id}} \\nsource type: {{error.source.type}} \\nsource name: {{error.source.name}} \\nsource count: {{error.source.count}}",
"output": "str",
"x": 250,
"y": 80,
"wires": [
[
"9e895cf92217d0d8"
]
]
},
{
"id": "1216fc8eb38d5547",
"type": "catch",
"z": "1adcdebcdc8e5c39",
"g": "37ce07449a33a2f1",
"name": "",
"scope": null,
"uncaught": false,
"x": 100,
"y": 80,
"wires": [
[
"344cbd55957359b6"
]
]
},
{
"id": "6c70289470244d20",
"type": "ha-get-entities",
Expand Down Expand Up @@ -157,55 +209,45 @@
]
},
{
"id": "1216fc8eb38d5547",
"type": "catch",
"id": "9e895cf92217d0d8",
"type": "template",
"z": "1adcdebcdc8e5c39",
"g": "37ce07449a33a2f1",
"name": "",
"scope": null,
"uncaught": false,
"x": 100,
"name": "title",
"field": "notify.title",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Node-RED",
"output": "str",
"x": 390,
"y": 80,
"wires": [
[
"344cbd55957359b6"
"d96e500b8264b91c"
]
]
},
{
"id": "344cbd55957359b6",
"id": "d96e500b8264b91c",
"type": "template",
"z": "1adcdebcdc8e5c39",
"g": "37ce07449a33a2f1",
"name": "messsage",
"field": "message",
"name": "notification_id",
"field": "notify.notification_id",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "message: {{{error.message}}}\nSource:\n id: {{error.source.id}}\n type: {{error.source.type}}\n name: {{error.source.name}}\n count: {{error.source.count}}",
"template": "node-redError",
"output": "str",
"x": 250,
"x": 540,
"y": 80,
"wires": [
[
"3bb7516008d0f0ca"
]
]
},
{
"id": "3bb7516008d0f0ca",
"type": "link out",
"z": "1adcdebcdc8e5c39",
"g": "37ce07449a33a2f1",
"name": "link_out_notify_1",
"mode": "link",
"links": [
"82031c40df5c41e6"
],
"x": 355,
"y": 80,
"wires": []
},
{
"id": "4ba92433.2478cc",
"type": "server",
Expand Down
76 changes: 59 additions & 17 deletions src/data/flows/automation_doorbell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"info": ""
},
{
"id": "e03ae4faf7d59fd6",
"id": "b189508993904947",
"type": "group",
"z": "3637eeb0.d96232",
"style": {
Expand All @@ -20,13 +20,15 @@
"color": "#a4a4a4"
},
"nodes": [
"3fe16bce635a440f",
"8b928975c2ab5068",
"eb0870c7be26407f"
"ca96ab2b5ee83be0",
"1817757d44df9ab3",
"d9c305f5d3a90eeb",
"4b5032dba0ee7717",
"ac9e1209773b9b26"
],
"x": 14,
"y": 39,
"w": 382,
"w": 682,
"h": 82
},
{
Expand Down Expand Up @@ -479,55 +481,95 @@
"wires": []
},
{
"id": "3fe16bce635a440f",
"id": "ca96ab2b5ee83be0",
"type": "catch",
"z": "3637eeb0.d96232",
"g": "e03ae4faf7d59fd6",
"g": "b189508993904947",
"name": "",
"scope": null,
"uncaught": false,
"x": 100,
"y": 80,
"wires": [
[
"8b928975c2ab5068"
"1817757d44df9ab3"
]
]
},
{
"id": "8b928975c2ab5068",
"id": "1817757d44df9ab3",
"type": "template",
"z": "3637eeb0.d96232",
"g": "e03ae4faf7d59fd6",
"g": "b189508993904947",
"name": "messsage",
"field": "message",
"field": "notify.message",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "message: {{{error.message}}}\nSource:\n id: {{error.source.id}}\n type: {{error.source.type}}\n name: {{error.source.name}}\n count: {{error.source.count}}",
"template": "message: {{error.message}} \\nid: {{error.source.id}} \\nsource type: {{error.source.type}} \\nsource name: {{error.source.name}} \\nsource count: {{error.source.count}}",
"output": "str",
"x": 250,
"y": 80,
"wires": [
[
"eb0870c7be26407f"
"4b5032dba0ee7717"
]
]
},
{
"id": "eb0870c7be26407f",
"id": "d9c305f5d3a90eeb",
"type": "link out",
"z": "3637eeb0.d96232",
"g": "e03ae4faf7d59fd6",
"g": "b189508993904947",
"name": "link_out_notify_1",
"mode": "link",
"links": [
"82031c40df5c41e6"
"a97f87cfab413716"
],
"x": 355,
"x": 655,
"y": 80,
"wires": []
},
{
"id": "4b5032dba0ee7717",
"type": "template",
"z": "3637eeb0.d96232",
"g": "b189508993904947",
"name": "title",
"field": "notify.title",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Node-RED",
"output": "str",
"x": 390,
"y": 80,
"wires": [
[
"ac9e1209773b9b26"
]
]
},
{
"id": "ac9e1209773b9b26",
"type": "template",
"z": "3637eeb0.d96232",
"g": "b189508993904947",
"name": "notification_id",
"field": "notify.notification_id",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "node-redError",
"output": "str",
"x": 540,
"y": 80,
"wires": [
[
"d9c305f5d3a90eeb"
]
]
},
{
"id": "4ba92433.2478cc",
"type": "server",
Expand Down
Loading

0 comments on commit c21c2b3

Please sign in to comment.