iotredloop/flows/U.Home.json

809 lines
No EOL
16 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": "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": 19,
"w": 492,
"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",
"638b6d92fcb75ad5",
"2bdcefabbf93c852"
],
"x": 68,
"y": 353,
"w": 644,
"h": 494
},
{
"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": "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": "638b6d92fcb75ad5",
"type": "group",
"z": "e19f53e3dc7ab928",
"g": "df46e2504e16fc3e",
"name": "home - ui - chart linky power",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"3abfeada773a5af2",
"ae8ac7965d6fb684",
"47316bf97f84b277"
],
"x": 94,
"y": 619,
"w": 552,
"h": 82
},
{
"id": "e221264ccaca42a1",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - device - auto",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"ce3cbb4ae72bbc14",
"5edfa91275f58882",
"fad822d4d6bc47a2",
"9beae381e402ac2c"
],
"x": 94,
"y": 199,
"w": 642,
"h": 82
},
{
"id": "2bdcefabbf93c852",
"type": "group",
"z": "e19f53e3dc7ab928",
"g": "df46e2504e16fc3e",
"name": "home - ui - chart photovoltaic power",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"c4bb801a22f7f669",
"6c11220b26097fc3",
"a2bfb1feb168f963"
],
"x": 94,
"y": 739,
"w": 592,
"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": [
"ab6d3d1be0d9ea74",
"ec3cc0db88098e5c",
"15d5a5183a81d250",
"ce3cbb4ae72bbc14"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "d1f40d903ba49ae7",
"type": "ui-notification",
"z": "e19f53e3dc7ab928",
"g": "c76679b82b664526",
"ui": "2d75e4809d2a6fbf",
"position": "center center",
"colorDefault": true,
"color": "#000000",
"displayTime": "2",
"showCountdown": true,
"outputs": 0,
"allowDismiss": true,
"dismissText": "Close",
"raw": false,
"className": "",
"name": "",
"x": 1430,
"y": 60,
"wires": []
},
{
"id": "c32288ec6571a37f",
"type": "switch",
"z": "e19f53e3dc7ab928",
"g": "c76679b82b664526",
"name": "!empty",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "istype",
"v": "string",
"vt": "string"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1230,
"y": 60,
"wires": [
[
"d1f40d903ba49ae7"
]
]
},
{
"id": "32eb12f106b8c786",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "c76679b82b664526",
"name": "home - ui - notification",
"links": [
"1ff5fd68e1799ae5",
"057cd27350be1d0e",
"522b6c161afcb47e",
"fdea9ff531a587a8",
"72f3d70342e83655",
"1d9d8c969ccdf2be"
],
"x": 1095,
"y": 60,
"wires": [
[
"c32288ec6571a37f"
]
]
},
{
"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": "3abfeada773a5af2",
"type": "ui-chart",
"z": "e19f53e3dc7ab928",
"g": "638b6d92fcb75ad5",
"group": "3f3bb7d3a3b206d0",
"name": "ui chart linky power",
"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": 530,
"y": 660,
"wires": [
[]
]
},
{
"id": "ae8ac7965d6fb684",
"type": "influxdb in",
"z": "e19f53e3dc7ab928",
"g": "638b6d92fcb75ad5",
"influxdb": "e408b55d1dc6870d",
"name": "",
"query": "from(bucket: \"home\")\n |> range(start: -1d, stop: now())\n |> aggregateWindow(every: 15m, fn: last, createEmpty: false)\n |> filter(fn: (r) =>\n r._measurement == \"linky\" and r._field == \"power\"\n )",
"rawOutput": false,
"precision": "",
"retentionPolicy": "",
"org": "iotredloop",
"x": 300,
"y": 660,
"wires": [
[
"3abfeada773a5af2"
]
]
},
{
"id": "47316bf97f84b277",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "638b6d92fcb75ad5",
"name": "home - ui - chart linky power",
"links": [
"004bb30c27c94fb4"
],
"x": 135,
"y": 660,
"wires": [
[
"ae8ac7965d6fb684"
]
]
},
{
"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": "ce3cbb4ae72bbc14",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "e221264ccaca42a1",
"name": "home - device- auto",
"links": [
"fb0afb89fb191395"
],
"x": 135,
"y": 240,
"wires": [
[
"5edfa91275f58882"
]
]
},
{
"id": "5edfa91275f58882",
"type": "credentials",
"z": "e19f53e3dc7ab928",
"g": "e221264ccaca42a1",
"name": "id",
"props": [
{
"value": "id",
"type": "msg"
}
],
"x": 270,
"y": 240,
"wires": [
[
"fad822d4d6bc47a2"
]
]
},
{
"id": "fad822d4d6bc47a2",
"type": "change",
"z": "e19f53e3dc7ab928",
"g": "e221264ccaca42a1",
"name": "ecu-c / xxx / photovoltaic / url",
"rules": [
{
"t": "set",
"p": "model",
"pt": "msg",
"to": "ecu-c",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 500,
"y": 240,
"wires": [
[
"9beae381e402ac2c"
]
]
},
{
"id": "9beae381e402ac2c",
"type": "link out",
"z": "e19f53e3dc7ab928",
"g": "e221264ccaca42a1",
"name": "home - device - auto",
"mode": "link",
"links": [
"d85fe6335a6eae7b"
],
"x": 695,
"y": 240,
"wires": []
},
{
"id": "c4bb801a22f7f669",
"type": "ui-chart",
"z": "e19f53e3dc7ab928",
"g": "2bdcefabbf93c852",
"group": "2e025331300821aa",
"name": "ui chart photovoltac power",
"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": 780,
"wires": [
[]
]
},
{
"id": "6c11220b26097fc3",
"type": "influxdb in",
"z": "e19f53e3dc7ab928",
"g": "2bdcefabbf93c852",
"influxdb": "e408b55d1dc6870d",
"name": "",
"query": "from(bucket: \"home\")\n |> range(start: -1d, stop: now())\n |> aggregateWindow(every: 15m, fn: last, createEmpty: false)\n |> filter(fn: (r) =>\n r._measurement == \"photovoltaic\" and r._field == \"production power\"\n )",
"rawOutput": false,
"precision": "",
"retentionPolicy": "",
"org": "iotredloop",
"x": 300,
"y": 780,
"wires": [
[
"c4bb801a22f7f669"
]
]
},
{
"id": "a2bfb1feb168f963",
"type": "link in",
"z": "e19f53e3dc7ab928",
"g": "2bdcefabbf93c852",
"name": "home - ui - chart linky power",
"links": [
"004bb30c27c94fb4"
],
"x": 135,
"y": 780,
"wires": [
[
"6c11220b26097fc3"
]
]
}
]