iotredloop/flows/U.Home.json

528 lines
No EOL
10 KiB
JSON

[
{
"id": "e19f53e3dc7ab928",
"type": "tab",
"label": "U.Home",
"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": "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"
],
"x": 68,
"y": 353,
"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
},
{
"id": "2a1bd2a4837e01f7",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - ui select room",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true,
"stroke": "#6f2fa0"
},
"nodes": [
"601b5a75c014b306",
"29f190c009d9bd2b",
"6877b109cf50132e",
"fc901a06715c2d2a"
],
"x": 1054,
"y": 19,
"w": 562,
"h": 82
},
{
"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,
"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,
"w": 572,
"h": 82
},
{
"id": "d210ac6cc3e866c0",
"type": "change",
"z": "e19f53e3dc7ab928",
"g": "e6f586ce062979fb",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "home",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
},
{
"t": "set",
"p": "telegram_message",
"pt": "flow",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"fb0afb89fb191395"
]
]
},
{
"id": "ef0d3b8996ec469c",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "e6f586ce062979fb",
"name": "home - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"d210ac6cc3e866c0"
]
]
},
{
"id": "fb0afb89fb191395",
"type": "link out",
"z": "e19f53e3dc7ab928",
"g": "e6f586ce062979fb",
"name": "home - bucket",
"mode": "link",
"links": [
"2e7bb0e6e6079d56",
"ab6d3d1be0d9ea74",
"ce3cbb4ae72bbc14"
],
"x": 395,
"y": 60,
"wires": []
},
{
"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,
"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,
"wires": [
[
"3bd22b1740d9d8b2"
]
]
},
{
"id": "b3f5b970a9b03119",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "04de52a5f5237233",
"name": "home - ui - chart outdoor temperature",
"links": [
"004bb30c27c94fb4"
],
"x": 135,
"y": 420,
"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,
"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,
"wires": [
[
"53e61734d5875604"
]
]
},
{
"id": "50bc182c3569008c",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "84416ebc7a349dd4",
"name": "home - ui - chart outdoor humidity",
"links": [
"004bb30c27c94fb4"
],
"x": 135,
"y": 540,
"wires": [
[
"f9ae231f709aa135"
]
]
},
{
"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"
]
]
}
]