centralized thermostats devices metrics

This commit is contained in:
JcDenis 2024-05-12 10:59:07 +02:00
parent efc0ba8a7d
commit dd45ed3a6f
11 changed files with 3108 additions and 5376 deletions

View file

@ -454,19 +454,6 @@
"visible": "true",
"disabled": "false"
},
{
"id": "403aaeef14cd4c8f",
"type": "ui-group",
"name": "Thermostats",
"page": "90601eed5215748f",
"width": "6",
"height": "1",
"order": 3,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "75a98516fdcdf832",
"type": "ui-group",

File diff suppressed because one or more lines are too long

View file

@ -484,7 +484,8 @@
"2dedf503efee73c8",
"bfa594bf1f876c92",
"94c79b8f52f0b6ba",
"2ba23548e87b0292"
"2ba23548e87b0292",
"f1898b7dbc641cd6"
],
"x": 94,
"y": 679,
@ -516,7 +517,7 @@
],
"x": 94,
"y": 199,
"w": 812,
"w": 1152,
"h": 202
},
{
@ -4172,7 +4173,9 @@
"2b543f5a91575995",
"86a1031c97fd1f24",
"a4d8eac11d9627da",
"32eb12f106b8c786"
"32eb12f106b8c786",
"7837b5fcc1432bfa",
"1d1dc560168d0284"
],
"x": 5195,
"y": 1260,
@ -4259,7 +4262,9 @@
"72f3d70342e83655",
"1d9d8c969ccdf2be",
"1ff5fd68e1799ae5",
"d2194c4dad790ec4"
"d2194c4dad790ec4",
"6632e88ee0633e4c",
"5484e74403bbb7d8"
],
"x": 135,
"y": 1260,
@ -5095,9 +5100,9 @@
"type": "comment",
"z": "ab51b1e8cad7b700",
"g": "9ea365cc69a1f2bf",
"name": "launch complete cycle",
"name": "launch complete cycle. This kept existing metrics",
"info": "",
"x": 600,
"x": 680,
"y": 300,
"wires": []
},
@ -5106,9 +5111,9 @@
"type": "comment",
"z": "ab51b1e8cad7b700",
"g": "9ea365cc69a1f2bf",
"name": "reset all global variables and launch complete cycle",
"name": "reset all global variables and launch complete cycle. This erases all devices configurations made from UI !!!",
"info": "",
"x": 690,
"x": 860,
"y": 240,
"wires": []
},
@ -5240,10 +5245,11 @@
"05e8fa641a3e8478",
"8f8a3cf8eff18bc0",
"ec9a2ee558dee047",
"f9007d094495cf1e"
"f9007d094495cf1e",
"3006243d30270236"
],
"x": 135,
"y": 780,
"y": 840,
"wires": [
[
"fabb645e0d88c91c"
@ -5278,7 +5284,7 @@
"op2": "true",
"op1type": "nul",
"op2type": "bool",
"duration": "50",
"duration": "100",
"extend": true,
"overrideDelay": false,
"units": "ms",
@ -5359,7 +5365,7 @@
"statusVal": "",
"statusType": "auto",
"x": 540,
"y": 720,
"y": 780,
"wires": []
},
{
@ -5383,11 +5389,12 @@
"to": "",
"reg": false,
"x": 550,
"y": 780,
"y": 840,
"wires": [
[
"c1d2a5b213c6568a",
"e5f9a77af592fc78"
"e5f9a77af592fc78",
"f1898b7dbc641cd6"
]
]
},
@ -5405,7 +5412,7 @@
"finalize": "\n",
"libs": [],
"x": 290,
"y": 780,
"y": 840,
"wires": [
[
"6d65af0eaae695a3"
@ -6924,5 +6931,19 @@
"3308d2aa53cd0bbd"
]
]
},
{
"id": "f1898b7dbc641cd6",
"type": "link out",
"z": "ab51b1e8cad7b700",
"g": "bbf7bb18989048e1",
"name": "kernel - device - catch",
"mode": "link",
"links": [
"949a8ee5f18f108a"
],
"x": 755,
"y": 720,
"wires": []
}
]

File diff suppressed because it is too large Load diff

View file

@ -84,7 +84,7 @@
"0bcc12317f704d00"
],
"x": 68,
"y": 1013,
"y": 593,
"w": 1534,
"h": 261.5
},
@ -99,14 +99,12 @@
"label": true
},
"nodes": [
"7588dc8563233dd0",
"35b625755a3e0460",
"dc97d115c73345bc"
"7588dc8563233dd0"
],
"x": 68,
"y": 593,
"w": 1854,
"h": 374
"y": 885.5,
"w": 1174,
"h": 209
},
{
"id": "e8f4a92ebb6cf506",
@ -219,7 +217,7 @@
"7f0b17be16628023"
],
"x": 714,
"y": 1039,
"y": 619,
"w": 862,
"h": 209.5
},
@ -241,7 +239,7 @@
"d39bf4e7d227b64a"
],
"x": 94,
"y": 1039,
"y": 619,
"w": 522,
"h": 142
},
@ -268,58 +266,11 @@
"0d69fef38ca34a4c",
"a2a8a9a71afb5ea7"
],
"x": 774,
"y": 671.5,
"x": 94,
"y": 911.5,
"w": 1122,
"h": 157
},
{
"id": "35b625755a3e0460",
"type": "group",
"z": "7b8b61c2b3de438c",
"g": "f5227a609c5c5182",
"name": "ambre - source - thermostat aperture",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"0b2a82c8c72139f4",
"8fdc0ab2b7fadb49",
"173e0da8e8278c08",
"7993168529c40611"
],
"x": 774,
"y": 859,
"w": 502,
"h": 82
},
{
"id": "dc97d115c73345bc",
"type": "group",
"z": "7b8b61c2b3de438c",
"g": "f5227a609c5c5182",
"name": "ambre - device - thermostat partial (see flow Thermostat)",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"2c593aa5c3cc64ad",
"f31baa24aeac69bd",
"eb178403b0453389",
"e54e9dfdc3b312ec",
"9fc89d4f93b076e1",
"a57dadebc90cb6a7",
"71f88edd928fa13a"
],
"x": 94,
"y": 619,
"w": 582,
"h": 322
},
{
"id": "7952d4c5ec3d3baf",
"type": "group",
@ -1090,7 +1041,7 @@
"odd": false,
"even": false,
"x": 1240,
"y": 1140,
"y": 720,
"wires": [
[
"ce1a4efb5352db26"
@ -1141,7 +1092,7 @@
"to": "",
"reg": false,
"x": 1410,
"y": 1140,
"y": 720,
"wires": [
[
"0341dba34c381ced"
@ -1159,7 +1110,7 @@
"206c1fb4a48067df"
],
"x": 1535,
"y": 1140,
"y": 720,
"wires": []
},
{
@ -1172,7 +1123,7 @@
"074a67bf0fcf09ad"
],
"x": 755,
"y": 1080,
"y": 660,
"wires": [
[
"1d012568a67e2708",
@ -1201,7 +1152,7 @@
"to": "",
"reg": false,
"x": 1250,
"y": 1080,
"y": 660,
"wires": [
[
"ce1a4efb5352db26",
@ -1228,7 +1179,7 @@
"allowrate": false,
"outputs": 1,
"x": 900,
"y": 1140,
"y": 720,
"wires": [
[
"7f0b17be16628023"
@ -1361,7 +1312,7 @@
"odd": false,
"even": false,
"x": 1240,
"y": 1200,
"y": 780,
"wires": [
[
"111a586617b6e513"
@ -1412,7 +1363,7 @@
"to": "",
"reg": false,
"x": 1410,
"y": 1200,
"y": 780,
"wires": [
[
"0341dba34c381ced"
@ -1440,7 +1391,7 @@
"to": "",
"reg": false,
"x": 1070,
"y": 1140,
"y": 720,
"wires": [
[
"3c821a2ed1fb5b4b",
@ -1497,7 +1448,7 @@
"to": "",
"reg": false,
"x": 350,
"y": 1080,
"y": 660,
"wires": [
[
"d47a5d29139aca1c"
@ -1515,7 +1466,7 @@
"bfa594bf1f876c92"
],
"x": 575,
"y": 1080,
"y": 660,
"wires": []
},
{
@ -1528,7 +1479,7 @@
"5a8db78f84b2088e"
],
"x": 135,
"y": 1080,
"y": 660,
"wires": [
[
"4cdc594a062b6204",
@ -1585,7 +1536,7 @@
"to": "",
"reg": false,
"x": 350,
"y": 1140,
"y": 720,
"wires": [
[
"d47a5d29139aca1c"
@ -1601,8 +1552,8 @@
"links": [
"5a8db78f84b2088e"
],
"x": 815,
"y": 720,
"x": 135,
"y": 960,
"wires": [
[
"f58f803cd183fe23"
@ -1629,8 +1580,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 720,
"x": 430,
"y": 960,
"wires": [
[
"a695670fa9127502",
@ -1648,8 +1599,8 @@
"links": [
"d1c7f4810b12afe2"
],
"x": 1855,
"y": 720,
"x": 1175,
"y": 960,
"wires": []
},
{
@ -1679,8 +1630,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1550,
"y": 720,
"x": 870,
"y": 960,
"wires": [
[
"02c07a0cc8b4cceb"
@ -1705,8 +1656,8 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 950,
"y": 720,
"x": 270,
"y": 960,
"wires": [
[
"5aa1466e5d029218"
@ -1838,8 +1789,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1330,
"y": 720,
"x": 650,
"y": 960,
"wires": [
[],
[
@ -1973,8 +1924,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1320,
"y": 780,
"x": 640,
"y": 1020,
"wires": [
[],
[
@ -1999,8 +1950,8 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1720,
"y": 720,
"x": 1040,
"y": 960,
"wires": [
[
"438b7d7c7b096219"
@ -2023,8 +1974,8 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1700,
"y": 780,
"x": 1020,
"y": 1020,
"wires": [
[
"438b7d7c7b096219"
@ -2051,401 +2002,14 @@
"from": "",
"to": "",
"reg": false,
"x": 1530,
"y": 780,
"x": 850,
"y": 1020,
"wires": [
[
"0d69fef38ca34a4c"
]
]
},
{
"id": "0b2a82c8c72139f4",
"type": "link in",
"z": "7b8b61c2b3de438c",
"g": "35b625755a3e0460",
"name": "ambre - source - thermostat aperture",
"links": [
"031a6afd8300356a"
],
"x": 815,
"y": 900,
"wires": [
[
"7993168529c40611"
]
]
},
{
"id": "8fdc0ab2b7fadb49",
"type": "link out",
"z": "7b8b61c2b3de438c",
"g": "35b625755a3e0460",
"name": "ambre - source - thermostat aperture",
"mode": "link",
"links": [
"206c1fb4a48067df"
],
"x": 1235,
"y": 900,
"wires": []
},
{
"id": "173e0da8e8278c08",
"type": "change",
"z": "7b8b61c2b3de438c",
"g": "35b625755a3e0460",
"name": "metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "aperture opened",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 900,
"wires": [
[
"8fdc0ab2b7fadb49"
]
]
},
{
"id": "7993168529c40611",
"type": "switch",
"z": "7b8b61c2b3de438c",
"g": "35b625755a3e0460",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "ambre/aperture/door",
"vt": "str"
},
{
"t": "eq",
"v": "ambre/aperture/window",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 950,
"y": 900,
"wires": [
[
"173e0da8e8278c08"
],
[
"173e0da8e8278c08"
]
]
},
{
"id": "2c593aa5c3cc64ad",
"type": "change",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "thermostat / cycle time / number / 60",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "cycle time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "60",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 780,
"wires": [
[
"a57dadebc90cb6a7"
]
]
},
{
"id": "f31baa24aeac69bd",
"type": "change",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "thermostat / oudoor coefficient/ number / 12",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "outdoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "12",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 720,
"wires": [
[
"a57dadebc90cb6a7"
]
]
},
{
"id": "eb178403b0453389",
"type": "change",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "thermostat / indoor coefficient / number / 103",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "indoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "103",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 660,
"wires": [
[
"a57dadebc90cb6a7"
]
]
},
{
"id": "e54e9dfdc3b312ec",
"type": "change",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "chauffage / preheat time / number / 10",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "preheat time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "10",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 840,
"wires": [
[
"a57dadebc90cb6a7"
]
]
},
{
"id": "9fc89d4f93b076e1",
"type": "link in",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "ambre - device - thermostat",
"links": [
"5a8db78f84b2088e"
],
"x": 135,
"y": 660,
"wires": [
[
"eb178403b0453389",
"f31baa24aeac69bd",
"2c593aa5c3cc64ad",
"e54e9dfdc3b312ec",
"71f88edd928fa13a"
]
]
},
{
"id": "a57dadebc90cb6a7",
"type": "link out",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "ambre - device - thermostat",
"mode": "link",
"links": [
"d8585174fdd6097c"
],
"x": 635,
"y": 660,
"wires": []
},
{
"id": "71f88edd928fa13a",
"type": "change",
"z": "7b8b61c2b3de438c",
"g": "dc97d115c73345bc",
"name": "thermostat / offloading power / number / 500",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "offloading power",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "500",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 900,
"wires": [
[
"a57dadebc90cb6a7"
]
]
},
{
"id": "e909099a38791a7c",
"type": "link out",

View file

@ -80,14 +80,12 @@
"label": true
},
"nodes": [
"65a983f3098b03d6",
"543119fcfc92825a",
"16b7cb956bc0326a"
"543119fcfc92825a"
],
"x": 68,
"y": 593,
"w": 1774,
"h": 374
"y": 585.5,
"w": 1094,
"h": 149
},
{
"id": "0f7d999eb3b798e6",
@ -176,31 +174,6 @@
"w": 662,
"h": 82
},
{
"id": "65a983f3098b03d6",
"type": "group",
"z": "854a244e296fdb4d",
"g": "584ba08358e13ed4",
"name": "couloir - device - thermostat partial (see flow Thermostat)",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"0392facae287f1c1",
"c1de47361f28be60",
"14b341398068e50a",
"950c7e41be3b431f",
"c0e1011957abf44a",
"4b367a6794c1c02b",
"fa5497688eb8ee35"
],
"x": 94,
"y": 619,
"w": 582,
"h": 322
},
{
"id": "543119fcfc92825a",
"type": "group",
@ -221,35 +194,11 @@
"2df681beb21344f6",
"0d372b0e4b2f2360"
],
"x": 774,
"y": 651.5,
"x": 94,
"y": 611.5,
"w": 1042,
"h": 97
},
{
"id": "16b7cb956bc0326a",
"type": "group",
"z": "854a244e296fdb4d",
"g": "584ba08358e13ed4",
"name": "couloir - source - thermostat aperture",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"8b5a0b89f12ce487",
"983accefa965ae3b",
"2fc967e63de4e547",
"a907c7cf0dc2321a",
"03917a36af4d68b4",
"2429a24772c36d60"
],
"x": 774,
"y": 776.5,
"w": 882,
"h": 127
},
{
"id": "38252693eb7888ce",
"type": "group",
@ -854,286 +803,6 @@
"y": 360,
"wires": []
},
{
"id": "0392facae287f1c1",
"type": "change",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "thermostat / cycle time / number / 60",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "cycle time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "60",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 780,
"wires": [
[
"4b367a6794c1c02b"
]
]
},
{
"id": "c1de47361f28be60",
"type": "change",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "thermostat / outdoor coefficient/ number / 5.5",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "outdoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "5.5",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 720,
"wires": [
[
"4b367a6794c1c02b"
]
]
},
{
"id": "14b341398068e50a",
"type": "change",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "thermostat / indoor coefficient / number / 162",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "indoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "162",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 660,
"wires": [
[
"4b367a6794c1c02b"
]
]
},
{
"id": "950c7e41be3b431f",
"type": "change",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "thermostat / preheat time / number / 30",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "preheat time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "30",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 840,
"wires": [
[
"4b367a6794c1c02b"
]
]
},
{
"id": "c0e1011957abf44a",
"type": "link in",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "thermostat device",
"links": [
"65462b7ee4a5168d"
],
"x": 135,
"y": 660,
"wires": [
[
"14b341398068e50a",
"c1de47361f28be60",
"0392facae287f1c1",
"950c7e41be3b431f",
"fa5497688eb8ee35"
]
]
},
{
"id": "4b367a6794c1c02b",
"type": "link out",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "couloir - device - thermostat",
"mode": "link",
"links": [
"d8585174fdd6097c"
],
"x": 635,
"y": 660,
"wires": []
},
{
"id": "fa5497688eb8ee35",
"type": "change",
"z": "854a244e296fdb4d",
"g": "65a983f3098b03d6",
"name": "thermostat / offloading power / number / 1500",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "offloading power",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "1500",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 900,
"wires": [
[
"4b367a6794c1c02b"
]
]
},
{
"id": "c39d452224c976fc",
"type": "link in",
@ -1143,8 +812,8 @@
"links": [
"65462b7ee4a5168d"
],
"x": 815,
"y": 700,
"x": 135,
"y": 660,
"wires": [
[
"a3905f1dcacd55e8"
@ -1171,8 +840,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 700,
"x": 430,
"y": 660,
"wires": [
[
"33e547c06606c98d"
@ -1199,8 +868,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1650,
"y": 700,
"x": 970,
"y": 660,
"wires": [
[
"2df681beb21344f6"
@ -1332,8 +1001,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1300,
"y": 700,
"x": 620,
"y": 660,
"wires": [
[],
[
@ -1360,8 +1029,8 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 950,
"y": 700,
"x": 270,
"y": 660,
"wires": [
[
"f5924745dcabad19"
@ -1378,8 +1047,8 @@
"links": [
"d1c7f4810b12afe2"
],
"x": 1775,
"y": 700,
"x": 1095,
"y": 660,
"wires": []
},
{
@ -1400,234 +1069,14 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1490,
"y": 700,
"x": 810,
"y": 660,
"wires": [
[
"db361792222e4bb7"
]
]
},
{
"id": "8b5a0b89f12ce487",
"type": "switch",
"z": "854a244e296fdb4d",
"g": "16b7cb956bc0326a",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "cuisine/aperture/window",
"vt": "str"
},
{
"t": "eq",
"v": "diner/aperture/door",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/right bay",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/left bay",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/window",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 950,
"y": 840,
"wires": [
[
"983accefa965ae3b"
],
[
"983accefa965ae3b"
],
[
"983accefa965ae3b"
],
[
"983accefa965ae3b"
],
[
"983accefa965ae3b"
]
]
},
{
"id": "983accefa965ae3b",
"type": "trigger",
"z": "854a244e296fdb4d",
"g": "16b7cb956bc0326a",
"name": "wait 5 s",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "5",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1120,
"y": 840,
"wires": [
[
"2fc967e63de4e547"
]
]
},
{
"id": "2fc967e63de4e547",
"type": "change",
"z": "854a244e296fdb4d",
"g": "16b7cb956bc0326a",
"name": "payload",
"rules": [
{
"t": "set",
"p": "door",
"pt": "msg",
"to": "metrics.diner.aperture.door",
"tot": "global"
},
{
"t": "set",
"p": "window",
"pt": "msg",
"to": "metrics.salon.aperture.window",
"tot": "global"
},
{
"t": "set",
"p": "cuisine",
"pt": "msg",
"to": "metrics.cuisine.aperture.window",
"tot": "global"
},
{
"t": "set",
"p": "right",
"pt": "msg",
"to": "stmetricsck.salon.aperture['right bay']",
"tot": "global"
},
{
"t": "set",
"p": "gauche",
"pt": "msg",
"to": "metrics.salon.aperture['left bay']",
"tot": "global"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$boolean(msg.door) or $boolean(msg.window) or $boolean(msg.cuisine) or $boolean(msg.right) or $boolean(msg.left)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1300,
"y": 840,
"wires": [
[
"03917a36af4d68b4"
]
]
},
{
"id": "a907c7cf0dc2321a",
"type": "link in",
"z": "854a244e296fdb4d",
"g": "16b7cb956bc0326a",
"name": "couloir - soruce - thermostat aperture",
"links": [
"031a6afd8300356a"
],
"x": 815,
"y": 840,
"wires": [
[
"8b5a0b89f12ce487"
]
]
},
{
"id": "03917a36af4d68b4",
"type": "change",
"z": "854a244e296fdb4d",
"g": "16b7cb956bc0326a",
"name": "set metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "aperture opened",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1480,
"y": 840,
"wires": [
[
"2429a24772c36d60"
]
]
},
{
"id": "2429a24772c36d60",
"type": "link out",
"z": "854a244e296fdb4d",
"g": "16b7cb956bc0326a",
"name": "couloir - soruce - thermostat aperture",
"mode": "link",
"links": [
"206c1fb4a48067df"
],
"x": 1615,
"y": 840,
"wires": []
},
{
"id": "ed1ae61e8d69a9aa",
"type": "link out",

View file

@ -80,14 +80,12 @@
"label": true
},
"nodes": [
"bc2f5f0fdf3a95b1",
"1aae9b0388d3b77d",
"56f91a15dd1455d7"
"bc2f5f0fdf3a95b1"
],
"x": 68,
"y": 653,
"w": 1774,
"h": 374
"y": 645.5,
"w": 1094,
"h": 149
},
{
"id": "1e26da4be4f8adc8",
@ -216,60 +214,11 @@
"0857f7c3fc012063",
"e6615272da1c215c"
],
"x": 774,
"y": 711.5,
"x": 94,
"y": 671.5,
"w": 1042,
"h": 97
},
{
"id": "1aae9b0388d3b77d",
"type": "group",
"z": "83779166f14173f8",
"g": "9e0ecda168e420f6",
"name": "cuisine - source - thermostat aperture",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"0628e9848bdd1852",
"bd8ce1c1b118deca",
"3303b4e8e608541b",
"41c360fc4fbb160a",
"c40ff844dd2331be",
"f7dcd2b0b67ae95c"
],
"x": 774,
"y": 836.5,
"w": 882,
"h": 127
},
{
"id": "56f91a15dd1455d7",
"type": "group",
"z": "83779166f14173f8",
"g": "9e0ecda168e420f6",
"name": "cuisine - device - thermostat partial (see flow Thermostat)",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"b6797740ddbfdc31",
"9e172dccc52202e9",
"ce356d0dbca4f157",
"ad06c3265ca316c5",
"ecdb89989bc6cfda",
"3f8eedb7511f6d4b",
"402b3bacddd7969e"
],
"x": 94,
"y": 679,
"w": 582,
"h": 322
},
{
"id": "4e85de651f8c65da",
"type": "group",
@ -1027,8 +976,8 @@
"links": [
"35e382c59a86017f"
],
"x": 815,
"y": 760,
"x": 135,
"y": 720,
"wires": [
[
"229c7cd129b5b39e"
@ -1055,8 +1004,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 760,
"x": 430,
"y": 720,
"wires": [
[
"eee1367b24f15bfe"
@ -1083,8 +1032,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1650,
"y": 760,
"x": 970,
"y": 720,
"wires": [
[
"0857f7c3fc012063"
@ -1216,8 +1165,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1300,
"y": 760,
"x": 620,
"y": 720,
"wires": [
[],
[
@ -1244,8 +1193,8 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 950,
"y": 760,
"x": 270,
"y": 720,
"wires": [
[
"887c96a79a17ae77"
@ -1262,8 +1211,8 @@
"links": [
"d1c7f4810b12afe2"
],
"x": 1775,
"y": 760,
"x": 1095,
"y": 720,
"wires": []
},
{
@ -1284,514 +1233,14 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1490,
"y": 760,
"x": 810,
"y": 720,
"wires": [
[
"8c4f101eaabd11ac"
]
]
},
{
"id": "0628e9848bdd1852",
"type": "switch",
"z": "83779166f14173f8",
"g": "1aae9b0388d3b77d",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "cuisine/aperture/window",
"vt": "str"
},
{
"t": "eq",
"v": "diner/aperture/door",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/right bay",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/left bay",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/window",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 950,
"y": 900,
"wires": [
[
"bd8ce1c1b118deca"
],
[
"bd8ce1c1b118deca"
],
[
"bd8ce1c1b118deca"
],
[
"bd8ce1c1b118deca"
],
[
"bd8ce1c1b118deca"
]
]
},
{
"id": "bd8ce1c1b118deca",
"type": "trigger",
"z": "83779166f14173f8",
"g": "1aae9b0388d3b77d",
"name": "wait 5 s",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "5",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1120,
"y": 900,
"wires": [
[
"3303b4e8e608541b"
]
]
},
{
"id": "3303b4e8e608541b",
"type": "change",
"z": "83779166f14173f8",
"g": "1aae9b0388d3b77d",
"name": "payload",
"rules": [
{
"t": "set",
"p": "door",
"pt": "msg",
"to": "metrics.diner.aperture.door",
"tot": "global"
},
{
"t": "set",
"p": "window",
"pt": "msg",
"to": "metrics.salon.aperture.window",
"tot": "global"
},
{
"t": "set",
"p": "cuisine",
"pt": "msg",
"to": "metrics.cuisine.aperture.window",
"tot": "global"
},
{
"t": "set",
"p": "right",
"pt": "msg",
"to": "metrics.salon.aperture['right bay']",
"tot": "global"
},
{
"t": "set",
"p": "left",
"pt": "msg",
"to": "metrics.salon.aperture['left bay']",
"tot": "global"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$boolean(msg.door) or $boolean(msg.window) or $boolean(msg.cuisine) or $boolean(msg.right) or $boolean(msg.left)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1300,
"y": 900,
"wires": [
[
"c40ff844dd2331be"
]
]
},
{
"id": "41c360fc4fbb160a",
"type": "link in",
"z": "83779166f14173f8",
"g": "1aae9b0388d3b77d",
"name": "cuisine - source - thermostat aperture",
"links": [
"031a6afd8300356a"
],
"x": 815,
"y": 900,
"wires": [
[
"0628e9848bdd1852"
]
]
},
{
"id": "c40ff844dd2331be",
"type": "change",
"z": "83779166f14173f8",
"g": "1aae9b0388d3b77d",
"name": "set metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "aperture opened",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1480,
"y": 900,
"wires": [
[
"f7dcd2b0b67ae95c"
]
]
},
{
"id": "f7dcd2b0b67ae95c",
"type": "link out",
"z": "83779166f14173f8",
"g": "1aae9b0388d3b77d",
"name": "cuisine - source - thermostat aperture",
"mode": "link",
"links": [
"206c1fb4a48067df"
],
"x": 1615,
"y": 900,
"wires": []
},
{
"id": "b6797740ddbfdc31",
"type": "change",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "thermostat / cycle time / number / 60",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "cycle time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "60",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 840,
"wires": [
[
"3f8eedb7511f6d4b"
]
]
},
{
"id": "9e172dccc52202e9",
"type": "change",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "thermostat / outdoor coefficient / number / 5.5",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "outdoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "5.5",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 780,
"wires": [
[
"3f8eedb7511f6d4b"
]
]
},
{
"id": "ce356d0dbca4f157",
"type": "change",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "thermostat / indoor coefficient / number / 115",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "indoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "115",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 720,
"wires": [
[
"3f8eedb7511f6d4b"
]
]
},
{
"id": "ad06c3265ca316c5",
"type": "change",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "chauffage / preheat time / number / 30",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "preheat time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "30",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 900,
"wires": [
[
"3f8eedb7511f6d4b"
]
]
},
{
"id": "ecdb89989bc6cfda",
"type": "link in",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "cuisine - device - thermostat",
"links": [
"35e382c59a86017f"
],
"x": 135,
"y": 720,
"wires": [
[
"ce356d0dbca4f157",
"9e172dccc52202e9",
"b6797740ddbfdc31",
"ad06c3265ca316c5",
"402b3bacddd7969e"
]
]
},
{
"id": "3f8eedb7511f6d4b",
"type": "link out",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "cuisine - device - thermostat",
"mode": "link",
"links": [
"d8585174fdd6097c"
],
"x": 635,
"y": 720,
"wires": []
},
{
"id": "402b3bacddd7969e",
"type": "change",
"z": "83779166f14173f8",
"g": "56f91a15dd1455d7",
"name": "thermostat / offloading power / number / 1500",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "offloading power",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "1500",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 960,
"wires": [
[
"3f8eedb7511f6d4b"
]
]
},
{
"id": "408a51c88533e506",
"type": "link out",

View file

@ -80,14 +80,12 @@
"label": true
},
"nodes": [
"6a0383dcf1a806c2",
"aa0810b6b2b387aa",
"236196c013460cd6"
"6a0383dcf1a806c2"
],
"x": 68,
"y": 593,
"w": 1854,
"h": 374
"y": 885.5,
"w": 1174,
"h": 209
},
{
"id": "b2b12ab5c8e153c9",
@ -104,7 +102,7 @@
"2881c2862153c497"
],
"x": 68,
"y": 1013,
"y": 593,
"w": 1514,
"h": 261.5
},
@ -219,58 +217,11 @@
"8a002e685540bdff",
"ea402d03b6273db8"
],
"x": 774,
"y": 671.5,
"x": 94,
"y": 911.5,
"w": 1122,
"h": 157
},
{
"id": "aa0810b6b2b387aa",
"type": "group",
"z": "82d1583d2c5dfc80",
"g": "21de2f6b8276705d",
"name": "oriane - sousrce - thermostat aperture",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"7237fd47764d31cf",
"352ea3978e6f1b59",
"0b5962b210d1a6fc",
"ca44b774d9e89aba"
],
"x": 774,
"y": 859,
"w": 502,
"h": 82
},
{
"id": "236196c013460cd6",
"type": "group",
"z": "82d1583d2c5dfc80",
"g": "21de2f6b8276705d",
"name": "oriane - device - thermostat partial (see flow Thermostat)",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"bb0963914ef620fa",
"c2c9a78b237f4d38",
"419d975a116f259f",
"35a561a02c7394cd",
"48350e3084957111",
"ab8491370b4f3838",
"cc50048d622c3510"
],
"x": 94,
"y": 619,
"w": 582,
"h": 322
},
{
"id": "6426cf468533a94a",
"type": "group",
@ -294,7 +245,7 @@
"eb043e4efb3b1c52"
],
"x": 694,
"y": 1039,
"y": 619,
"w": 862,
"h": 209.5
},
@ -316,7 +267,7 @@
"3443dfbd6f1f63b4"
],
"x": 94,
"y": 1039,
"y": 619,
"w": 502,
"h": 142
},
@ -973,8 +924,8 @@
"links": [
"8407471b62e3c9e6"
],
"x": 815,
"y": 720,
"x": 135,
"y": 960,
"wires": [
[
"4a4601fc68652bd4"
@ -1001,8 +952,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 720,
"x": 430,
"y": 960,
"wires": [
[
"2250bd89d8d43c5d",
@ -1020,8 +971,8 @@
"links": [
"d1c7f4810b12afe2"
],
"x": 1855,
"y": 720,
"x": 1175,
"y": 960,
"wires": []
},
{
@ -1051,8 +1002,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1550,
"y": 720,
"x": 870,
"y": 960,
"wires": [
[
"0d802f81bc344203"
@ -1077,8 +1028,8 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 950,
"y": 720,
"x": 270,
"y": 960,
"wires": [
[
"1c655633eb533a22"
@ -1210,8 +1161,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1330,
"y": 720,
"x": 650,
"y": 960,
"wires": [
[],
[
@ -1345,8 +1296,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1320,
"y": 780,
"x": 640,
"y": 1020,
"wires": [
[],
[
@ -1371,8 +1322,8 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1720,
"y": 720,
"x": 1040,
"y": 960,
"wires": [
[
"4a2c85990a2b061e"
@ -1395,8 +1346,8 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1700,
"y": 780,
"x": 1020,
"y": 1020,
"wires": [
[
"4a2c85990a2b061e"
@ -1423,401 +1374,14 @@
"from": "",
"to": "",
"reg": false,
"x": 1530,
"y": 780,
"x": 850,
"y": 1020,
"wires": [
[
"8a002e685540bdff"
]
]
},
{
"id": "7237fd47764d31cf",
"type": "link in",
"z": "82d1583d2c5dfc80",
"g": "aa0810b6b2b387aa",
"name": "oriane - source- thermostat aperture",
"links": [
"031a6afd8300356a"
],
"x": 815,
"y": 900,
"wires": [
[
"ca44b774d9e89aba"
]
]
},
{
"id": "352ea3978e6f1b59",
"type": "link out",
"z": "82d1583d2c5dfc80",
"g": "aa0810b6b2b387aa",
"name": "oriane - source - thermostat aperture",
"mode": "link",
"links": [
"206c1fb4a48067df"
],
"x": 1235,
"y": 900,
"wires": []
},
{
"id": "0b5962b210d1a6fc",
"type": "change",
"z": "82d1583d2c5dfc80",
"g": "aa0810b6b2b387aa",
"name": "metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "aperture opened",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 900,
"wires": [
[
"352ea3978e6f1b59"
]
]
},
{
"id": "ca44b774d9e89aba",
"type": "switch",
"z": "82d1583d2c5dfc80",
"g": "aa0810b6b2b387aa",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "oriane/aperture/door",
"vt": "str"
},
{
"t": "eq",
"v": "oriane/aperture/window",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 950,
"y": 900,
"wires": [
[
"0b5962b210d1a6fc"
],
[
"0b5962b210d1a6fc"
]
]
},
{
"id": "bb0963914ef620fa",
"type": "change",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "thermostat / cycle time / number / 60",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "cycle time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "60",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 780,
"wires": [
[
"ab8491370b4f3838"
]
]
},
{
"id": "c2c9a78b237f4d38",
"type": "change",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "thermostat / outdoor coefficient / number / 2",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "outdoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "2",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 720,
"wires": [
[
"ab8491370b4f3838"
]
]
},
{
"id": "419d975a116f259f",
"type": "change",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "thermostat / indoor coefficient / number / 18",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "indoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "18",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 660,
"wires": [
[
"ab8491370b4f3838"
]
]
},
{
"id": "35a561a02c7394cd",
"type": "change",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "thermostat / preheat time / number / 10",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "preheat time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "10",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 840,
"wires": [
[
"ab8491370b4f3838"
]
]
},
{
"id": "48350e3084957111",
"type": "link in",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "oriane - device - thermostat",
"links": [
"8407471b62e3c9e6"
],
"x": 135,
"y": 660,
"wires": [
[
"419d975a116f259f",
"c2c9a78b237f4d38",
"bb0963914ef620fa",
"35a561a02c7394cd",
"cc50048d622c3510"
]
]
},
{
"id": "ab8491370b4f3838",
"type": "link out",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "oriane - device - thermostat",
"mode": "link",
"links": [
"d8585174fdd6097c"
],
"x": 635,
"y": 660,
"wires": []
},
{
"id": "cc50048d622c3510",
"type": "change",
"z": "82d1583d2c5dfc80",
"g": "236196c013460cd6",
"name": "thermostat / offloading power / number / 500",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "offloading power",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "500",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 900,
"wires": [
[
"ab8491370b4f3838"
]
]
},
{
"id": "b3f12c566ff3d0eb",
"type": "bigtimer",
@ -1944,7 +1508,7 @@
"odd": false,
"even": false,
"x": 1220,
"y": 1140,
"y": 720,
"wires": [
[
"4be887eea8fda77b"
@ -1995,7 +1559,7 @@
"to": "",
"reg": false,
"x": 1390,
"y": 1140,
"y": 720,
"wires": [
[
"e0395c593211c049"
@ -2013,7 +1577,7 @@
"206c1fb4a48067df"
],
"x": 1515,
"y": 1140,
"y": 720,
"wires": []
},
{
@ -2026,7 +1590,7 @@
"074a67bf0fcf09ad"
],
"x": 735,
"y": 1080,
"y": 660,
"wires": [
[
"5d21d54e34a502e0",
@ -2055,7 +1619,7 @@
"to": "",
"reg": false,
"x": 1230,
"y": 1080,
"y": 660,
"wires": [
[
"4be887eea8fda77b",
@ -2082,7 +1646,7 @@
"allowrate": false,
"outputs": 1,
"x": 880,
"y": 1140,
"y": 720,
"wires": [
[
"eb043e4efb3b1c52"
@ -2215,7 +1779,7 @@
"odd": false,
"even": false,
"x": 1220,
"y": 1200,
"y": 780,
"wires": [
[
"dbeb8c9d35d9e43c"
@ -2266,7 +1830,7 @@
"to": "",
"reg": false,
"x": 1390,
"y": 1200,
"y": 780,
"wires": [
[
"e0395c593211c049"
@ -2294,7 +1858,7 @@
"to": "",
"reg": false,
"x": 1050,
"y": 1140,
"y": 720,
"wires": [
[
"b3f12c566ff3d0eb",
@ -2351,7 +1915,7 @@
"to": "",
"reg": false,
"x": 350,
"y": 1080,
"y": 660,
"wires": [
[
"021ed4766414be0d"
@ -2369,7 +1933,7 @@
"bfa594bf1f876c92"
],
"x": 555,
"y": 1080,
"y": 660,
"wires": []
},
{
@ -2382,7 +1946,7 @@
"8407471b62e3c9e6"
],
"x": 135,
"y": 1080,
"y": 660,
"wires": [
[
"284778f82ecffc1f",
@ -2439,7 +2003,7 @@
"to": "",
"reg": false,
"x": 350,
"y": 1140,
"y": 720,
"wires": [
[
"021ed4766414be0d"

View file

@ -61,14 +61,12 @@
"label": true
},
"nodes": [
"72f6a150361b45dd",
"7675dd03f941bc9a",
"5f8004f897ab3f15"
"7675dd03f941bc9a"
],
"x": 68,
"y": 913,
"w": 1614,
"h": 374
"y": 905.5,
"w": 934,
"h": 149
},
{
"id": "28edba1c5e66d39d",
@ -135,31 +133,6 @@
"w": 422,
"h": 82
},
{
"id": "72f6a150361b45dd",
"type": "group",
"z": "4ae92a5d07f513ee",
"g": "76531242ed6d1af4",
"name": "parents - device - thermostat partial (see flow Thermostat)",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"ca1c62b04152ce23",
"0862c7e7b6e0e8f5",
"a1caab01fd87a271",
"fd74eaebfa73edb4",
"daf2739ddbaea6e5",
"1249dc707643b70f",
"ebfb19cd6c05434b"
],
"x": 94,
"y": 939,
"w": 582,
"h": 322
},
{
"id": "7675dd03f941bc9a",
"type": "group",
@ -179,34 +152,11 @@
"ab8f732932d99b17",
"10dddc528a72d52c"
],
"x": 774,
"y": 991.5,
"x": 94,
"y": 931.5,
"w": 882,
"h": 97
},
{
"id": "5f8004f897ab3f15",
"type": "group",
"z": "4ae92a5d07f513ee",
"g": "76531242ed6d1af4",
"name": "parents - source - thermostat aperture",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"013bf83f6e610dc9",
"a8efaaef95728c79",
"c12b11a9133c451d",
"b8efcf0879efb924",
"ae21c95b725bcdac"
],
"x": 774,
"y": 1119,
"w": 682,
"h": 82
},
{
"id": "0b5e3bfbf0fb13c7",
"type": "group",
@ -613,286 +563,6 @@
]
]
},
{
"id": "ca1c62b04152ce23",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "thermostat / cycle time / number / 45",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "cycle time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "45",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 1100,
"wires": [
[
"1249dc707643b70f"
]
]
},
{
"id": "0862c7e7b6e0e8f5",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "thermostat / outdoor coefficient/ number / 11",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "outdoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "11",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 1040,
"wires": [
[
"1249dc707643b70f"
]
]
},
{
"id": "a1caab01fd87a271",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "thermostat / indoor coefficient / number / 119",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "indoor coefficient",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "119",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 980,
"wires": [
[
"1249dc707643b70f"
]
]
},
{
"id": "fd74eaebfa73edb4",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "thermostat / preheat time / number / 10",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "preheat time",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "10",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 1160,
"wires": [
[
"1249dc707643b70f"
]
]
},
{
"id": "daf2739ddbaea6e5",
"type": "link in",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "parents - device - thermostat",
"links": [
"cc68069930b2479b"
],
"x": 135,
"y": 980,
"wires": [
[
"a1caab01fd87a271",
"0862c7e7b6e0e8f5",
"ca1c62b04152ce23",
"fd74eaebfa73edb4",
"ebfb19cd6c05434b"
]
]
},
{
"id": "1249dc707643b70f",
"type": "link out",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "parents - device - thermostat",
"mode": "link",
"links": [
"d8585174fdd6097c"
],
"x": 635,
"y": 980,
"wires": []
},
{
"id": "ebfb19cd6c05434b",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "72f6a150361b45dd",
"name": "thermostat / oofloading power / number / 500",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "offloading power",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "500",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 1220,
"wires": [
[
"1249dc707643b70f"
]
]
},
{
"id": "30a4c71f8d02384d",
"type": "link in",
@ -902,8 +572,8 @@
"links": [
"cc68069930b2479b"
],
"x": 815,
"y": 1040,
"x": 135,
"y": 980,
"wires": [
[
"ab8f732932d99b17"
@ -930,8 +600,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 1040,
"x": 430,
"y": 980,
"wires": [
[
"10dddc528a72d52c"
@ -948,8 +618,8 @@
"links": [
"d1c7f4810b12afe2"
],
"x": 1615,
"y": 1040,
"x": 935,
"y": 980,
"wires": []
},
{
@ -972,8 +642,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1490,
"y": 1040,
"x": 810,
"y": 980,
"wires": [
[
"377374bc3cc49bc5"
@ -998,8 +668,8 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 950,
"y": 1040,
"x": 270,
"y": 980,
"wires": [
[
"663171ca016f7dc9"
@ -1131,8 +801,8 @@
"atstart": false,
"odd": false,
"even": false,
"x": 1300,
"y": 1040,
"x": 620,
"y": 980,
"wires": [
[],
[
@ -1141,155 +811,6 @@
[]
]
},
{
"id": "013bf83f6e610dc9",
"type": "link in",
"z": "4ae92a5d07f513ee",
"g": "5f8004f897ab3f15",
"name": "parents - source - thermostat aperture",
"links": [
"031a6afd8300356a"
],
"x": 815,
"y": 1160,
"wires": [
[
"b8efcf0879efb924"
]
]
},
{
"id": "a8efaaef95728c79",
"type": "link out",
"z": "4ae92a5d07f513ee",
"g": "5f8004f897ab3f15",
"name": "parents - source - thermostat ouvrant",
"mode": "link",
"links": [
"206c1fb4a48067df"
],
"x": 1415,
"y": 1160,
"wires": []
},
{
"id": "c12b11a9133c451d",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "5f8004f897ab3f15",
"name": "metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "thermostat",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "aperture opened",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1290,
"y": 1160,
"wires": [
[
"a8efaaef95728c79"
]
]
},
{
"id": "b8efcf0879efb924",
"type": "switch",
"z": "4ae92a5d07f513ee",
"g": "5f8004f897ab3f15",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "parents/aperture/door",
"vt": "str"
},
{
"t": "eq",
"v": "parents/aperture/window",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 950,
"y": 1160,
"wires": [
[
"ae21c95b725bcdac"
],
[
"ae21c95b725bcdac"
]
]
},
{
"id": "ae21c95b725bcdac",
"type": "change",
"z": "4ae92a5d07f513ee",
"g": "5f8004f897ab3f15",
"name": "payload",
"rules": [
{
"t": "set",
"p": "door",
"pt": "msg",
"to": "metrics[msg.bucket]aperture.door",
"tot": "global"
},
{
"t": "set",
"p": "window",
"pt": "msg",
"to": "metrics[msg.bucket]aperture.window",
"tot": "global"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$boolean(msg.door) or $boolean(msg.window)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1120,
"y": 1160,
"wires": [
[
"c12b11a9133c451d"
]
]
},
{
"id": "7e8d0f8ce92a7afe",
"type": "change",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff