iotredloop/flows/U.Home.json

618 lines
12 KiB
JSON
Raw Normal View History

2024-04-27 12:52:59 +00:00
[
{
"id": "e19f53e3dc7ab928",
"type": "tab",
2024-04-28 20:43:49 +00:00
"label": "U.Home",
2024-04-27 12:52:59 +00:00
"disabled": false,
"info": "",
"env": []
},
{
"id": "e6f586ce062979fb",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"d210ac6cc3e866c0",
"ef0d3b8996ec469c",
"fb0afb89fb191395"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "c76679b82b664526",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - ui - notification",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true,
"stroke": "#6f2fa0"
},
"nodes": [
"d1f40d903ba49ae7",
"c32288ec6571a37f",
"32eb12f106b8c786"
],
"x": 1054,
"y": 139,
2024-04-27 12:52:59 +00:00
"w": 492,
"h": 82
},
2024-04-28 12:55:01 +00:00
{
"id": "df46e2504e16fc3e",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - ui - chart (customized to my needs)",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"04de52a5f5237233",
"84416ebc7a349dd4"
2024-04-28 12:55:01 +00:00
],
"x": 68,
"y": 353,
2024-04-28 12:55:01 +00:00
"w": 644,
"h": 254
},
{
"id": "c520bebe00c3589e",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"e01f4a19b0701f2c",
"61d20690dde8a991",
"bc345ebb0941581d"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
2024-04-28 12:55:01 +00:00
},
2024-05-07 19:10:02 +00:00
{
"id": "2a1bd2a4837e01f7",
2024-05-07 19:10:02 +00:00
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - ui select room",
2024-05-07 19:10:02 +00:00
"style": {
"fill": "#6f2fa0",
2024-05-07 19:10:02 +00:00
"fill-opacity": "0.05",
"label": true,
"stroke": "#6f2fa0"
2024-05-07 19:10:02 +00:00
},
"nodes": [
"601b5a75c014b306",
"29f190c009d9bd2b",
"6877b109cf50132e",
"fc901a06715c2d2a"
2024-05-07 19:10:02 +00:00
],
"x": 1054,
"y": 19,
"w": 562,
2024-05-07 19:10:02 +00:00
"h": 82
},
2024-04-27 17:08:13 +00:00
{
"id": "04de52a5f5237233",
"type": "group",
"z": "e19f53e3dc7ab928",
"g": "df46e2504e16fc3e",
"name": "home - ui - chart outdoor temperature",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"3bd22b1740d9d8b2",
"43e68c058a7661d6",
"b3f5b970a9b03119"
],
"x": 94,
"y": 379,
2024-04-27 17:08:13 +00:00
"w": 592,
"h": 82
},
{
"id": "84416ebc7a349dd4",
"type": "group",
"z": "e19f53e3dc7ab928",
"g": "df46e2504e16fc3e",
"name": "home - ui - chart outdoor humidity",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"53e61734d5875604",
"f9ae231f709aa135",
"50bc182c3569008c"
],
"x": 94,
"y": 499,
2024-04-27 17:08:13 +00:00
"w": 572,
"h": 82
},
2024-04-27 16:06:32 +00:00
{
2024-04-29 22:55:00 +00:00
"id": "d210ac6cc3e866c0",
2024-04-27 16:06:32 +00:00
"type": "change",
"z": "e19f53e3dc7ab928",
2024-04-29 22:55:00 +00:00
"g": "e6f586ce062979fb",
"name": "bucket",
2024-04-27 16:06:32 +00:00
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
2024-04-29 22:55:00 +00:00
"to": "home",
"tot": "str"
2024-04-27 16:06:32 +00:00
},
{
"t": "set",
2024-04-29 22:55:00 +00:00
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
2024-04-27 16:06:32 +00:00
},
{
"t": "set",
2024-04-29 22:55:00 +00:00
"p": "telegram_message",
"pt": "flow",
"to": "",
"tot": "str"
2024-04-27 16:06:32 +00:00
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
2024-04-29 22:55:00 +00:00
"x": 270,
"y": 60,
2024-04-27 16:06:32 +00:00
"wires": [
[
2024-04-29 22:55:00 +00:00
"fb0afb89fb191395"
2024-04-27 16:06:32 +00:00
]
]
},
{
2024-04-29 22:55:00 +00:00
"id": "ef0d3b8996ec469c",
2024-04-27 16:06:32 +00:00
"type": "link in",
"z": "e19f53e3dc7ab928",
2024-04-29 22:55:00 +00:00
"g": "e6f586ce062979fb",
"name": "home - bucket",
2024-04-27 16:06:32 +00:00
"links": [
"25445f5a9b787a0a"
],
2024-04-29 22:55:00 +00:00
"x": 135,
"y": 60,
2024-04-27 16:06:32 +00:00
"wires": [
[
2024-04-29 22:55:00 +00:00
"d210ac6cc3e866c0"
2024-04-27 16:06:32 +00:00
]
]
},
{
2024-04-29 22:55:00 +00:00
"id": "fb0afb89fb191395",
"type": "link out",
2024-04-27 16:06:32 +00:00
"z": "e19f53e3dc7ab928",
2024-04-29 22:55:00 +00:00
"g": "e6f586ce062979fb",
"name": "home - bucket",
"mode": "link",
"links": [
"2e7bb0e6e6079d56",
"ab6d3d1be0d9ea74",
"ce3cbb4ae72bbc14"
2024-04-27 16:06:32 +00:00
],
2024-04-29 22:55:00 +00:00
"x": 395,
"y": 60,
2024-04-27 16:06:32 +00:00
"wires": []
},
{
2024-04-29 22:55:00 +00:00
"id": "d1f40d903ba49ae7",
"type": "ui-notification",
2024-04-27 16:06:32 +00:00
"z": "e19f53e3dc7ab928",
2024-04-29 22:55:00 +00:00
"g": "c76679b82b664526",
"ui": "2d75e4809d2a6fbf",
"position": "center center",
"colorDefault": true,
"color": "#000000",
"displayTime": "2",
"showCountdown": true,
"outputs": 0,
"allowDismiss": true,
"dismissText": "Close",
"raw": false,
2024-04-27 16:06:32 +00:00
"className": "",
"name": "",
2024-04-29 22:55:00 +00:00
"x": 1430,
"y": 180,
2024-04-29 22:55:00 +00:00
"wires": []
2024-04-27 16:06:32 +00:00
},
{
2024-04-29 22:55:00 +00:00
"id": "c32288ec6571a37f",
2024-04-27 16:06:32 +00:00
"type": "switch",
"z": "e19f53e3dc7ab928",
2024-04-29 22:55:00 +00:00
"g": "c76679b82b664526",
"name": "!empty",
2024-04-27 16:06:32 +00:00
"property": "payload",
"propertyType": "msg",
"rules": [
{
2024-04-29 22:55:00 +00:00
"t": "istype",
"v": "string",
"vt": "string"
2024-04-27 16:06:32 +00:00
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
2024-04-29 22:55:00 +00:00
"x": 1230,
"y": 180,
2024-04-27 16:06:32 +00:00
"wires": [
[
2024-04-29 22:55:00 +00:00
"d1f40d903ba49ae7"
2024-04-27 16:06:32 +00:00
]
]
},
{
2024-04-29 22:55:00 +00:00
"id": "32eb12f106b8c786",
"type": "link in",
2024-04-27 16:06:32 +00:00
"z": "e19f53e3dc7ab928",
2024-04-29 22:55:00 +00:00
"g": "c76679b82b664526",
"name": "home - ui - notification",
"links": [
"1ff5fd68e1799ae5",
"057cd27350be1d0e",
"522b6c161afcb47e",
"fdea9ff531a587a8",
"72f3d70342e83655",
"1d9d8c969ccdf2be"
2024-04-27 16:06:32 +00:00
],
2024-04-29 22:55:00 +00:00
"x": 1095,
"y": 180,
2024-04-27 16:06:32 +00:00
"wires": [
[
2024-04-29 22:55:00 +00:00
"c32288ec6571a37f"
2024-04-27 16:06:32 +00:00
]
]
2024-04-27 17:08:13 +00:00
},
{
"id": "3bd22b1740d9d8b2",
"type": "ui-chart",
"z": "e19f53e3dc7ab928",
"g": "04de52a5f5237233",
"group": "8bdaa1ba3eb700cc",
"name": "chart outdoor temperature",
"label": "",
"order": 9007199254740991,
"chartType": "line",
"category": "_field",
"categoryType": "property",
"xAxisProperty": "_time",
"xAxisPropertyType": "msg",
"xAxisType": "time",
"yAxisProperty": "_value",
"ymin": "",
"ymax": "",
"action": "replace",
"pointShape": "false",
"pointRadius": "2",
"showLegend": false,
"removeOlder": 1,
"removeOlderUnit": "86400",
"removeOlderPoints": "100",
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"width": 6,
"height": "6",
"className": "",
"x": 550,
"y": 420,
2024-04-27 17:08:13 +00:00
"wires": [
[]
]
},
{
"id": "43e68c058a7661d6",
"type": "influxdb in",
"z": "e19f53e3dc7ab928",
"g": "04de52a5f5237233",
"influxdb": "e408b55d1dc6870d",
"name": "",
"query": "from(bucket: \"resume\")\n |> range(start: -1d, stop: now())\n |> aggregateWindow(every: 30m, fn: last, createEmpty: false)\n |> filter(fn: (r) =>\n r._measurement == \"temperature\" and (r._field == \"parking probe\" or r._field == \"jardin probe\")\n )",
"rawOutput": false,
"precision": "",
"retentionPolicy": "",
"org": "iotredloop",
"x": 300,
"y": 420,
2024-04-27 17:08:13 +00:00
"wires": [
[
"3bd22b1740d9d8b2"
]
]
},
{
"id": "b3f5b970a9b03119",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "04de52a5f5237233",
"name": "home - ui - chart outdoor temperature",
"links": [
"004bb30c27c94fb4"
],
"x": 135,
"y": 420,
2024-04-27 17:08:13 +00:00
"wires": [
[
"43e68c058a7661d6"
]
]
},
{
"id": "53e61734d5875604",
"type": "ui-chart",
"z": "e19f53e3dc7ab928",
"g": "84416ebc7a349dd4",
"group": "7f89503f8062898b",
"name": "chart outdoor humidity",
"label": "",
"order": 9007199254740991,
"chartType": "line",
"category": "_field",
"categoryType": "property",
"xAxisProperty": "_time",
"xAxisPropertyType": "msg",
"xAxisType": "time",
"yAxisProperty": "_value",
"ymin": "",
"ymax": "",
"action": "replace",
"pointShape": "false",
"pointRadius": "2",
"showLegend": false,
"removeOlder": 1,
"removeOlderUnit": "86400",
"removeOlderPoints": "100",
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"width": 6,
"height": "6",
"className": "",
"x": 540,
"y": 540,
2024-04-27 17:08:13 +00:00
"wires": [
[]
]
},
{
"id": "f9ae231f709aa135",
"type": "influxdb in",
"z": "e19f53e3dc7ab928",
"g": "84416ebc7a349dd4",
"influxdb": "e408b55d1dc6870d",
"name": "",
"query": "from(bucket: \"resume\")\n |> range(start: -1d, stop: now())\n |> aggregateWindow(every: 30m, fn: last, createEmpty: false)\n |> filter(fn: (r) =>\n r._measurement == \"humidity\" and (r._field == \"parking probe\" or r._field == \"jardin probe\")\n )",
"rawOutput": false,
"precision": "",
"retentionPolicy": "",
"org": "iotredloop",
"x": 300,
"y": 540,
2024-04-27 17:08:13 +00:00
"wires": [
[
"53e61734d5875604"
]
]
},
{
"id": "50bc182c3569008c",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "84416ebc7a349dd4",
"name": "home - ui - chart outdoor humidity",
"links": [
"004bb30c27c94fb4"
],
"x": 135,
"y": 540,
2024-04-27 17:08:13 +00:00
"wires": [
[
"f9ae231f709aa135"
]
]
},
2024-04-29 22:28:34 +00:00
{
"id": "e01f4a19b0701f2c",
"type": "catch",
"z": "e19f53e3dc7ab928",
"g": "c520bebe00c3589e",
"name": "catch error",
"scope": null,
"uncaught": false,
"x": 620,
"y": 60,
"wires": [
[
"61d20690dde8a991"
]
]
},
{
"id": "61d20690dde8a991",
"type": "change",
"z": "e19f53e3dc7ab928",
"g": "c520bebe00c3589e",
"name": "topic",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "home",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 790,
"y": 60,
"wires": [
[
"bc345ebb0941581d"
]
]
},
{
"id": "bc345ebb0941581d",
"type": "link out",
"z": "e19f53e3dc7ab928",
"g": "c520bebe00c3589e",
"name": "catch error",
"mode": "link",
"links": [
"a52f0e788cd4dca3"
],
"x": 915,
"y": 60,
"wires": []
},
{
"id": "601b5a75c014b306",
"type": "link out",
"z": "e19f53e3dc7ab928",
"g": "2a1bd2a4837e01f7",
"name": "home - ui select room",
"mode": "link",
"links": [
"1be6ca3c2b8615a2"
],
"x": 1575,
"y": 60,
"wires": []
},
{
"id": "29f190c009d9bd2b",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "2a1bd2a4837e01f7",
"name": "home - ui select room",
"links": [
"74172837e07ab80d"
],
"x": 1095,
"y": 60,
"wires": [
[
"6877b109cf50132e"
]
]
},
{
"id": "6877b109cf50132e",
"type": "change",
"z": "e19f53e3dc7ab928",
"g": "2a1bd2a4837e01f7",
"name": "enabled button",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "enabled",
"pt": "msg",
"to": "msg.payload != msg.room",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1260,
"y": 60,
"wires": [
[
"fc901a06715c2d2a"
]
]
},
{
"id": "fc901a06715c2d2a",
"type": "ui-button",
"z": "e19f53e3dc7ab928",
"g": "2a1bd2a4837e01f7",
"group": "36396f5285df476c",
"name": "",
"label": "Maison",
"order": 2,
"width": "2",
"height": "1",
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "bucket",
"payloadType": "flow",
"topic": "topic",
"topicType": "msg",
"x": 1460,
"y": 60,
"wires": [
[
"601b5a75c014b306"
]
]
2024-04-27 12:52:59 +00:00
}
]