add ui configration for cumulus related electric meter tariff

This commit is contained in:
JcDenis 2024-05-09 11:31:19 +02:00
parent 138060cc35
commit 42e96551f0
3 changed files with 500 additions and 105 deletions

File diff suppressed because one or more lines are too long

View file

@ -64,7 +64,7 @@
"e8fbf877572c810c" "e8fbf877572c810c"
], ],
"x": 68, "x": 68,
"y": 1493, "y": 1553,
"w": 814, "w": 814,
"h": 494 "h": 494
}, },
@ -103,8 +103,8 @@
], ],
"x": 68, "x": 68,
"y": 593, "y": 593,
"w": 1334, "w": 1494,
"h": 314 "h": 374
}, },
{ {
"id": "f8d0942e587ff2f0", "id": "f8d0942e587ff2f0",
@ -123,7 +123,7 @@
"1be2396c5ede7eef" "1be2396c5ede7eef"
], ],
"x": 68, "x": 68,
"y": 953, "y": 1013,
"w": 1394, "w": 1394,
"h": 494 "h": 494
}, },
@ -178,7 +178,7 @@
"1abdcd583acf98b3" "1abdcd583acf98b3"
], ],
"x": 94, "x": 94,
"y": 1519, "y": 1579,
"w": 762, "w": 762,
"h": 442 "h": 442
}, },
@ -245,11 +245,12 @@
"1dee4c1bfd86f78c", "1dee4c1bfd86f78c",
"c11de5fcb0565144", "c11de5fcb0565144",
"d60df3cdcb5355ed", "d60df3cdcb5355ed",
"a5610da475c5e78e" "a5610da475c5e78e",
"f4d397304d1643d4"
], ],
"x": 694, "x": 694,
"y": 724, "y": 724,
"w": 682, "w": 842,
"h": 112 "h": 112
}, },
{ {
@ -269,12 +270,13 @@
"cf6474d8d06d0270", "cf6474d8d06d0270",
"b986d701532491f9", "b986d701532491f9",
"d8f18951a98cd40c", "d8f18951a98cd40c",
"216fcd9d7b66d1b0" "216fcd9d7b66d1b0",
"8c211879313393ab"
], ],
"x": 94, "x": 94,
"y": 619, "y": 619,
"w": 502, "w": 502,
"h": 262 "h": 322
}, },
{ {
"id": "0fd00a5d28108c93", "id": "0fd00a5d28108c93",
@ -297,7 +299,7 @@
"89735cb301bdea99" "89735cb301bdea99"
], ],
"x": 94, "x": 94,
"y": 979, "y": 1039,
"w": 1342, "w": 1342,
"h": 82 "h": 82
}, },
@ -320,7 +322,7 @@
"3762437c4d4b168c" "3762437c4d4b168c"
], ],
"x": 94, "x": 94,
"y": 1099, "y": 1159,
"w": 952, "w": 952,
"h": 82 "h": 82
}, },
@ -343,7 +345,7 @@
"ac6b4421c7675b8f" "ac6b4421c7675b8f"
], ],
"x": 94, "x": 94,
"y": 1219, "y": 1279,
"w": 952, "w": 952,
"h": 82 "h": 82
}, },
@ -366,7 +368,7 @@
"938259965bdd9849" "938259965bdd9849"
], ],
"x": 94, "x": 94,
"y": 1339, "y": 1399,
"w": 892, "w": 892,
"h": 82 "h": 82
}, },
@ -556,7 +558,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 510, "x": 510,
"y": 1740, "y": 1800,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -584,7 +586,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 520, "x": 520,
"y": 1560, "y": 1620,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -633,7 +635,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 500, "x": 500,
"y": 1620, "y": 1680,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -661,7 +663,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 500, "x": 500,
"y": 1680, "y": 1740,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -703,7 +705,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 510, "x": 510,
"y": 1800, "y": 1860,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -720,7 +722,7 @@
"e035e232e2747fed" "e035e232e2747fed"
], ],
"x": 135, "x": 135,
"y": 1560, "y": 1620,
"wires": [ "wires": [
[ [
"665497a5770702cc", "665497a5770702cc",
@ -744,7 +746,7 @@
"d85fe6335a6eae7b" "d85fe6335a6eae7b"
], ],
"x": 815, "x": 815,
"y": 1560, "y": 1620,
"wires": [] "wires": []
}, },
{ {
@ -789,7 +791,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 510, "x": 510,
"y": 1860, "y": 1920,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -817,7 +819,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 500, "x": 500,
"y": 1920, "y": 1980,
"wires": [ "wires": [
[ [
"4c67090f1c608d32" "4c67090f1c608d32"
@ -1281,8 +1283,8 @@
"rules": [ "rules": [
{ {
"t": "eq", "t": "eq",
"v": "home/tariff/electric meter", "v": "metrics[msg.scene.bucket]cumulus['electric meter']",
"vt": "str" "vt": "global"
}, },
{ {
"t": "eq", "t": "eq",
@ -1296,14 +1298,14 @@
}, },
{ {
"t": "eq", "t": "eq",
"v": "cave/power/balloon", "v": "msg.scene.bucket&'/power/balloon'",
"vt": "str" "vt": "jsonata"
} }
], ],
"checkall": "false", "checkall": "false",
"repair": false, "repair": false,
"outputs": 4, "outputs": 4,
"x": 870, "x": 1030,
"y": 780, "y": 780,
"wires": [ "wires": [
[ [
@ -1327,13 +1329,6 @@
"g": "729d745d2f78ab73", "g": "729d745d2f78ab73",
"name": "scene cumulus / balloon / boolean", "name": "scene cumulus / balloon / boolean",
"rules": [ "rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{ {
"t": "set", "t": "set",
"p": "scene.measurement", "p": "scene.measurement",
@ -1382,7 +1377,7 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 1120, "x": 1280,
"y": 780, "y": 780,
"wires": [ "wires": [
[ [
@ -1403,7 +1398,7 @@
"y": 780, "y": 780,
"wires": [ "wires": [
[ [
"1dee4c1bfd86f78c" "f4d397304d1643d4"
] ]
] ]
}, },
@ -1486,7 +1481,8 @@
"ab0e0267be067354", "ab0e0267be067354",
"b986d701532491f9", "b986d701532491f9",
"d8f18951a98cd40c", "d8f18951a98cd40c",
"216fcd9d7b66d1b0" "216fcd9d7b66d1b0",
"8c211879313393ab"
] ]
] ]
}, },
@ -1532,7 +1528,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 350, "x": 350,
"y": 720, "y": 780,
"wires": [ "wires": [
[ [
"6d8b9ac84c8dc897" "6d8b9ac84c8dc897"
@ -1581,7 +1577,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 350, "x": 350,
"y": 780, "y": 840,
"wires": [ "wires": [
[ [
"6d8b9ac84c8dc897" "6d8b9ac84c8dc897"
@ -1630,7 +1626,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 350, "x": 350,
"y": 840, "y": 900,
"wires": [ "wires": [
[ [
"6d8b9ac84c8dc897" "6d8b9ac84c8dc897"
@ -1648,7 +1644,7 @@
"df6a69e3a774eebc" "df6a69e3a774eebc"
], ],
"x": 1395, "x": 1395,
"y": 1020, "y": 1080,
"wires": [] "wires": []
}, },
{ {
@ -1661,7 +1657,7 @@
"abd3bb3b24dd961a" "abd3bb3b24dd961a"
], ],
"x": 135, "x": 135,
"y": 1020, "y": 1080,
"wires": [ "wires": [
[ [
"90c2212a5870ab4d" "90c2212a5870ab4d"
@ -1687,7 +1683,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 430, "x": 430,
"y": 1020, "y": 1080,
"wires": [ "wires": [
[ [
"7a48d3b28afb9335" "7a48d3b28afb9335"
@ -1713,7 +1709,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 270, "x": 270,
"y": 1020, "y": 1080,
"wires": [ "wires": [
[ [
"3bb670b7c782d0fe" "3bb670b7c782d0fe"
@ -1737,7 +1733,7 @@
"filterTopic": false, "filterTopic": false,
"plan": "free", "plan": "free",
"x": 930, "x": 930,
"y": 1020, "y": 1080,
"wires": [ "wires": [
[ [
"89735cb301bdea99" "89735cb301bdea99"
@ -1756,7 +1752,7 @@
"linkType": "static", "linkType": "static",
"timeout": "30", "timeout": "30",
"x": 660, "x": 660,
"y": 1020, "y": 1080,
"wires": [ "wires": [
[ [
"40a1233e15703902" "40a1233e15703902"
@ -1775,7 +1771,7 @@
"linkType": "static", "linkType": "static",
"timeout": "30", "timeout": "30",
"x": 1200, "x": 1200,
"y": 1020, "y": 1080,
"wires": [ "wires": [
[ [
"a72c1a80a1c23c90" "a72c1a80a1c23c90"
@ -1792,7 +1788,7 @@
"a66c6d1f8e271921" "a66c6d1f8e271921"
], ],
"x": 135, "x": 135,
"y": 1140, "y": 1200,
"wires": [ "wires": [
[ [
"0ff0fadc83ac38d1" "0ff0fadc83ac38d1"
@ -1818,7 +1814,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 270, "x": 270,
"y": 1140, "y": 1200,
"wires": [ "wires": [
[ [
"c86c464bb9aa4ec7" "c86c464bb9aa4ec7"
@ -1837,7 +1833,7 @@
"linkType": "static", "linkType": "static",
"timeout": "30", "timeout": "30",
"x": 650, "x": 650,
"y": 1140, "y": 1200,
"wires": [ "wires": [
[ [
"3762437c4d4b168c" "3762437c4d4b168c"
@ -1865,7 +1861,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 430, "x": 430,
"y": 1140, "y": 1200,
"wires": [ "wires": [
[ [
"cf514e4790cf30b2" "cf514e4790cf30b2"
@ -1889,7 +1885,7 @@
"filterTopic": false, "filterTopic": false,
"plan": "free", "plan": "free",
"x": 920, "x": 920,
"y": 1140, "y": 1200,
"wires": [ "wires": [
[] []
] ]
@ -1913,7 +1909,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 270, "x": 270,
"y": 1260, "y": 1320,
"wires": [ "wires": [
[ [
"c952edfa67754b49" "c952edfa67754b49"
@ -1930,7 +1926,7 @@
"8f6b9cabcee961b9" "8f6b9cabcee961b9"
], ],
"x": 135, "x": 135,
"y": 1260, "y": 1320,
"wires": [ "wires": [
[ [
"76fff1f1e6767cb1" "76fff1f1e6767cb1"
@ -1958,7 +1954,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 430, "x": 430,
"y": 1260, "y": 1320,
"wires": [ "wires": [
[ [
"5bdae1b3b0632ad1" "5bdae1b3b0632ad1"
@ -1977,7 +1973,7 @@
"linkType": "static", "linkType": "static",
"timeout": "30", "timeout": "30",
"x": 650, "x": 650,
"y": 1260, "y": 1320,
"wires": [ "wires": [
[ [
"ac6b4421c7675b8f" "ac6b4421c7675b8f"
@ -2001,7 +1997,7 @@
"filterTopic": false, "filterTopic": false,
"plan": "free", "plan": "free",
"x": 920, "x": 920,
"y": 1260, "y": 1320,
"wires": [ "wires": [
[] []
] ]
@ -2016,7 +2012,7 @@
"c961c347fd2d14b5" "c961c347fd2d14b5"
], ],
"x": 135, "x": 135,
"y": 1380, "y": 1440,
"wires": [ "wires": [
[ [
"151c6168bcca45e8" "151c6168bcca45e8"
@ -2042,7 +2038,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 270, "x": 270,
"y": 1380, "y": 1440,
"wires": [ "wires": [
[ [
"ce088fb02cc8d95e" "ce088fb02cc8d95e"
@ -2068,7 +2064,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 430, "x": 430,
"y": 1380, "y": 1440,
"wires": [ "wires": [
[ [
"938259965bdd9849" "938259965bdd9849"
@ -2092,7 +2088,7 @@
"filterTopic": false, "filterTopic": false,
"plan": "free", "plan": "free",
"x": 880, "x": 880,
"y": 1380, "y": 1440,
"wires": [ "wires": [
[] []
] ]
@ -2109,7 +2105,7 @@
"linkType": "static", "linkType": "static",
"timeout": "30", "timeout": "30",
"x": 640, "x": 640,
"y": 1380, "y": 1440,
"wires": [ "wires": [
[ [
"b178cd11693d5684" "b178cd11693d5684"
@ -2129,7 +2125,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1920, "y": 1980,
"wires": [ "wires": [
[] []
] ]
@ -2147,7 +2143,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1860, "y": 1920,
"wires": [ "wires": [
[] []
] ]
@ -2165,7 +2161,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1800, "y": 1860,
"wires": [ "wires": [
[] []
] ]
@ -2183,7 +2179,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1740, "y": 1800,
"wires": [ "wires": [
[] []
] ]
@ -2201,7 +2197,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1680, "y": 1740,
"wires": [ "wires": [
[] []
] ]
@ -2219,7 +2215,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1620, "y": 1680,
"wires": [ "wires": [
[] []
] ]
@ -2237,7 +2233,7 @@
} }
], ],
"x": 270, "x": 270,
"y": 1560, "y": 1620,
"wires": [ "wires": [
[] []
] ]
@ -2310,8 +2306,85 @@
"links": [ "links": [
"97c76b46acec597a" "97c76b46acec597a"
], ],
"x": 1335, "x": 1495,
"y": 780, "y": 780,
"wires": [] "wires": []
},
{
"id": "8c211879313393ab",
"type": "change",
"z": "2b225e03b149417d",
"g": "297b2d3fd56440f9",
"name": "cumulus / electric meter / text / ",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "cumulus",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "electric meter",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "text",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 720,
"wires": [
[
"6d8b9ac84c8dc897"
]
]
},
{
"id": "f4d397304d1643d4",
"type": "change",
"z": "2b225e03b149417d",
"g": "729d745d2f78ab73",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 870,
"y": 780,
"wires": [
[
"1dee4c1bfd86f78c"
]
]
} }
] ]

View file

@ -170,9 +170,9 @@
"48dd7d439fba9eda" "48dd7d439fba9eda"
], ],
"x": 5048, "x": 5048,
"y": 953, "y": 833,
"w": 1364, "w": 2414,
"h": 5554 "h": 5674
}, },
{ {
"id": "f68e8c6415aca870", "id": "f68e8c6415aca870",
@ -786,12 +786,21 @@
"5aa2370542c80557", "5aa2370542c80557",
"417fbb2eb3a923ed", "417fbb2eb3a923ed",
"57e410937624c3d6", "57e410937624c3d6",
"c17dc35aca46f82c" "c17dc35aca46f82c",
"5c7542a83bbabb35",
"c35b2b2e8f2b4219",
"92754828aa30243d",
"473d6854093e32df",
"109b8b2fe8df33cb",
"98eb7016dea145b8",
"d51ca92136da8ea4",
"56484d472a10cece",
"e67a8cdad7117ce2"
], ],
"x": 5074, "x": 5074,
"y": 979, "y": 859,
"w": 1102, "w": 2362,
"h": 442 "h": 562
}, },
{ {
"id": "db185d30e93f616d", "id": "db185d30e93f616d",
@ -8588,6 +8597,11 @@
"v": "night", "v": "night",
"vt": "str" "vt": "str"
}, },
{
"t": "eq",
"v": "electric meter",
"vt": "str"
},
{ {
"t": "eq", "t": "eq",
"v": "balloon", "v": "balloon",
@ -8596,9 +8610,9 @@
], ],
"checkall": "false", "checkall": "false",
"repair": false, "repair": false,
"outputs": 5, "outputs": 6,
"x": 5630, "x": 5630,
"y": 1320, "y": 1260,
"wires": [ "wires": [
[ [
"f1a67acc80e7df25" "f1a67acc80e7df25"
@ -8612,6 +8626,9 @@
[ [
"57e410937624c3d6" "57e410937624c3d6"
], ],
[
"c35b2b2e8f2b4219"
],
[ [
"417fbb2eb3a923ed" "417fbb2eb3a923ed"
] ]
@ -8638,7 +8655,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 5630, "x": 5630,
"y": 1200, "y": 1080,
"wires": [ "wires": [
[ [
"a734f97d04983224" "a734f97d04983224"
@ -8666,7 +8683,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 5630, "x": 5630,
"y": 1140, "y": 1020,
"wires": [ "wires": [
[ [
"f1a67acc80e7df25", "f1a67acc80e7df25",
@ -8696,8 +8713,8 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 6000, "x": 7260,
"y": 1140, "y": 1200,
"wires": [ "wires": [
[ [
"f1cc0ee7d294d743" "f1cc0ee7d294d743"
@ -8714,12 +8731,13 @@
"9e4bfee0db3051d4" "9e4bfee0db3051d4"
], ],
"x": 5115, "x": 5115,
"y": 1020, "y": 900,
"wires": [ "wires": [
[ [
"bf71f08c103ab9bf", "bf71f08c103ab9bf",
"1db8267958aa8d3c", "1db8267958aa8d3c",
"3fbe41cfcb30b29f" "3fbe41cfcb30b29f",
"5c7542a83bbabb35"
] ]
] ]
}, },
@ -8733,7 +8751,7 @@
"b6323e1460f6f50c" "b6323e1460f6f50c"
], ],
"x": 5115, "x": 5115,
"y": 1080, "y": 960,
"wires": [ "wires": [
[ [
"a2ed4c3380f63344" "a2ed4c3380f63344"
@ -8750,8 +8768,8 @@
"links": [ "links": [
"2690f4e06626ebda" "2690f4e06626ebda"
], ],
"x": 6135, "x": 7395,
"y": 1140, "y": 1200,
"wires": [] "wires": []
}, },
{ {
@ -8774,7 +8792,7 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 5980, "x": 7260,
"y": 1380, "y": 1380,
"wires": [ "wires": [
[ [
@ -8801,7 +8819,7 @@
"repair": false, "repair": false,
"outputs": 1, "outputs": 1,
"x": 5280, "x": 5280,
"y": 1080, "y": 960,
"wires": [ "wires": [
[ [
"8a877a1f0ad96a9f", "8a877a1f0ad96a9f",
@ -8828,7 +8846,7 @@
"color": "#717171", "color": "#717171",
"className": "", "className": "",
"x": 5970, "x": 5970,
"y": 1020, "y": 900,
"wires": [] "wires": []
}, },
{ {
@ -8852,7 +8870,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 5800, "x": 5800,
"y": 1020, "y": 900,
"wires": [ "wires": [
[ [
"d66a556c8804aa96" "d66a556c8804aa96"
@ -8894,7 +8912,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 5630, "x": 5630,
"y": 1020, "y": 900,
"wires": [ "wires": [
[ [
"5a3cf6eb82112299", "5a3cf6eb82112299",
@ -8930,7 +8948,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 5630, "x": 5630,
"y": 1080, "y": 960,
"wires": [ "wires": [
[ [
"86bf6614eaaed4fb", "86bf6614eaaed4fb",
@ -8947,7 +8965,7 @@
"ui": "2d75e4809d2a6fbf", "ui": "2d75e4809d2a6fbf",
"events": "all", "events": "all",
"x": 5800, "x": 5800,
"y": 1080, "y": 960,
"wires": [ "wires": [
[] []
] ]
@ -8977,7 +8995,7 @@
"officon": "", "officon": "",
"offcolor": "", "offcolor": "",
"x": 5790, "x": 5790,
"y": 1140, "y": 1020,
"wires": [ "wires": [
[ [
"6d4b70fa6bba8616" "6d4b70fa6bba8616"
@ -8993,7 +9011,7 @@
"name": "timer", "name": "timer",
"label": "Minuterie", "label": "Minuterie",
"tooltip": "", "tooltip": "",
"order": 3, "order": 4,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": false, "passthru": false,
@ -9006,7 +9024,7 @@
"step": "10", "step": "10",
"className": "", "className": "",
"x": 5790, "x": 5790,
"y": 1200, "y": 1080,
"wires": [ "wires": [
[ [
"6d4b70fa6bba8616" "6d4b70fa6bba8616"
@ -9021,7 +9039,7 @@
"name": "daily", "name": "daily",
"label": "Exécuté", "label": "Exécuté",
"group": "d9226f161296ef5d", "group": "d9226f161296ef5d",
"order": 4, "order": 5,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": false, "passthru": false,
@ -9038,7 +9056,7 @@
"officon": "", "officon": "",
"offcolor": "", "offcolor": "",
"x": 5790, "x": 5790,
"y": 1260, "y": 1140,
"wires": [ "wires": [
[ [
"6d4b70fa6bba8616" "6d4b70fa6bba8616"
@ -9053,7 +9071,7 @@
"name": "balloon", "name": "balloon",
"label": "Etat", "label": "Etat",
"group": "d9226f161296ef5d", "group": "d9226f161296ef5d",
"order": 6, "order": 7,
"width": "6", "width": "6",
"height": "1", "height": "1",
"passthru": false, "passthru": false,
@ -9085,7 +9103,7 @@
"name": "night", "name": "night",
"label": "Nocturne", "label": "Nocturne",
"group": "d9226f161296ef5d", "group": "d9226f161296ef5d",
"order": 5, "order": 6,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": false, "passthru": false,
@ -9102,7 +9120,7 @@
"officon": "", "officon": "",
"offcolor": "", "offcolor": "",
"x": 5790, "x": 5790,
"y": 1320, "y": 1200,
"wires": [ "wires": [
[ [
"6d4b70fa6bba8616" "6d4b70fa6bba8616"
@ -9128,7 +9146,7 @@
"allowrate": false, "allowrate": false,
"outputs": 1, "outputs": 1,
"x": 5470, "x": 5470,
"y": 1320, "y": 1260,
"wires": [ "wires": [
[ [
"3ea1bb4e5ff3e53a" "3ea1bb4e5ff3e53a"
@ -16512,5 +16530,309 @@
"dac472279b8e26a6" "dac472279b8e26a6"
] ]
] ]
},
{
"id": "5c7542a83bbabb35",
"type": "change",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "reset",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "",
"tot": "num"
},
{
"t": "set",
"p": "options[0]",
"pt": "msg",
"to": "{'label':'select','value':''}",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 5630,
"y": 1140,
"wires": [
[
"e67a8cdad7117ce2"
]
]
},
{
"id": "c35b2b2e8f2b4219",
"type": "change",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "from global",
"rules": [
{
"t": "set",
"p": "old_payload",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "metrics",
"tot": "global"
},
{
"t": "set",
"p": "cumulus.options",
"pt": "flow",
"to": "[]",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 5810,
"y": 1300,
"wires": [
[
"92754828aa30243d"
]
]
},
{
"id": "92754828aa30243d",
"type": "split",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "bucket",
"x": 5990,
"y": 1300,
"wires": [
[
"473d6854093e32df"
]
]
},
{
"id": "473d6854093e32df",
"type": "switch",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "measurement",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "hask",
"v": "current",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 6180,
"y": 1300,
"wires": [
[
"109b8b2fe8df33cb"
],
[
"d51ca92136da8ea4"
]
]
},
{
"id": "109b8b2fe8df33cb",
"type": "switch",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "field",
"property": "payload.current",
"propertyType": "msg",
"rules": [
{
"t": "hask",
"v": "electric meter",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 6370,
"y": 1240,
"wires": [
[
"98eb7016dea145b8"
],
[
"d51ca92136da8ea4"
]
]
},
{
"id": "98eb7016dea145b8",
"type": "change",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "add",
"rules": [
{
"t": "set",
"p": "cumulus_options",
"pt": "msg",
"to": "cumulus.options",
"tot": "flow"
},
{
"t": "set",
"p": "cumulus_count",
"pt": "msg",
"to": "$count(msg.cumulus_options)-1",
"tot": "jsonata"
},
{
"t": "set",
"p": "cumulus_count",
"pt": "msg",
"to": "msg.cumulus_count+1",
"tot": "jsonata"
},
{
"t": "set",
"p": "cumulus_options[msg.cumulus_count]",
"pt": "msg",
"to": "{\t 'label': msg.bucket&'/current/electric meter',\t 'value': msg.bucket&'/current/electric meter'\t}",
"tot": "jsonata"
},
{
"t": "set",
"p": "cumulus.options",
"pt": "flow",
"to": "cumulus_options",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 6530,
"y": 1240,
"wires": [
[
"d51ca92136da8ea4"
]
]
},
{
"id": "d51ca92136da8ea4",
"type": "join",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 6690,
"y": 1300,
"wires": [
[
"56484d472a10cece"
]
]
},
{
"id": "56484d472a10cece",
"type": "change",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"name": "options",
"rules": [
{
"t": "set",
"p": "options",
"pt": "msg",
"to": "cumulus.options",
"tot": "flow"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "old_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 6860,
"y": 1300,
"wires": [
[
"e67a8cdad7117ce2"
]
]
},
{
"id": "e67a8cdad7117ce2",
"type": "ui-dropdown",
"z": "aab0c030de7df5cc",
"g": "9b11e3a85026957b",
"group": "d9226f161296ef5d",
"name": "electric meter",
"label": "Compteur électrique :",
"tooltip": "",
"order": 3,
"width": "6",
"height": "1",
"passthru": false,
"multiple": false,
"options": [],
"payload": "",
"topic": "electric meter",
"topicType": "str",
"className": "",
"x": 7060,
"y": 1240,
"wires": [
[
"6d4b70fa6bba8616"
]
]
} }
] ]