translate scene type (wip)

This commit is contained in:
JcDenis 2024-08-21 18:27:58 +02:00
parent 29784e4928
commit ba5d0beb5a
5 changed files with 1229 additions and 665 deletions

File diff suppressed because one or more lines are too long

View file

@ -134,7 +134,7 @@
],
"x": 68,
"y": 173,
"w": 3384,
"w": 3684,
"h": 2174
},
{
@ -481,11 +481,13 @@
"b74bf0ca5e271336",
"f914f5311d82ce56",
"e0613fa53ec99a7d",
"b0670866409f1f18"
"b0670866409f1f18",
"e6d722a527fd1dc8",
"ea1b7dbf3573fd5e"
],
"x": 1334,
"y": 199,
"w": 2092,
"w": 2392,
"h": 2122
},
{
@ -6766,7 +6768,7 @@
"z": "80f2ffd4953c67e9",
"g": "bb2ebd173a2ba06c",
"group": "28836135eb153545",
"order": 41,
"order": 39,
"width": "6",
"height": "1",
"name": "seens",
@ -7399,13 +7401,6 @@
"g": "bb2ebd173a2ba06c",
"name": "from global",
"rules": [
{
"t": "set",
"p": "old_payload",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "payload",
@ -7571,6 +7566,13 @@
"g": "bb2ebd173a2ba06c",
"name": "add",
"rules": [
{
"t": "set",
"p": "metric",
"pt": "msg",
"to": "$substring(msg.metric,1)",
"tot": "jsonata"
},
{
"t": "set",
"p": "options",
@ -7615,7 +7617,9 @@
"x": 3350,
"y": 2220,
"wires": [
[]
[
"ea1b7dbf3573fd5e"
]
]
},
{
@ -8368,7 +8372,7 @@
"t": "set",
"p": "metric",
"pt": "msg",
"to": "msg.bucket&'/'&msg.measurement&'/'&msg.field",
"to": "'/'&msg.bucket&'/'&msg.measurement&'/'&msg.field",
"tot": "jsonata"
}
],
@ -8575,7 +8579,7 @@
"z": "80f2ffd4953c67e9",
"g": "272756073495f0a8",
"name": "thermostat compute cool request",
"func": "// 26in 30out 23set : 30-23+26-23 : 30+26-(2x23) : 56-46 : 10\n// 23in 27out 23set : 27+23-(2x23) : 50-46 : 4\n// 24in 25out 23set : 25+24-(2x23) : 49-46 : 3\n// 24in 25out 24set : 49-48 : 1\n// 24in 25out 19set : 49-38 : 11\n// 26in 30out 0set : 30+0-(2x26) : 30-56 : -26\n\nvar calcul = msg.th['outdoor temperature'] + msg.th['indoor temperature'] - 2 * msg.th['temperature setpoint'] - 5;\ncalcul = calcul.toFixed(1);\n\n// positive result for heat request\nmsg.th.compute = calcul;\n\nif (msg.th.compute > 0) {\n node.status({\n fill: \"blue\", shape: \"ring\", text: msg.th.bucket+' cool resquest at '+msg.th.compute\n });\n}\nif (msg.th.compute <= 0) {\n node.status({\n fill: \"green\", shape: \"ring\", text: msg.th.bucket+' at '+msg.th.compute\n });\n}\n\nreturn msg;",
"func": "// compute temperatures\nvar interieur = msg.th['indoor temperature'] - msg.th['temperature setpoint'] - 2;\nvar exterieur = (msg.th['outdoor temperature'] - msg.th['temperature setpoint']) *3;\nvar compute = interieur + exterieur;\ncompute = compute.toFixed(1);\n\nmsg.th.compute = compute;\n\n//var calcul = msg.th['outdoor temperature'] + msg.th['indoor temperature'] - 2 * msg.th['temperature setpoint'] - 5;\n//calcul = calcul.toFixed(1);\n//msg.th.compute = calcul;\n\nif (msg.th.compute > 0) {\n node.status({\n fill: \"blue\", shape: \"ring\", text: msg.th.bucket+' cool resquest at '+msg.th.compute\n });\n}\nif (msg.th.compute <= 0) {\n node.status({\n fill: \"green\", shape: \"ring\", text: msg.th.bucket+' at '+msg.th.compute\n });\n}\n\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
@ -10374,5 +10378,53 @@
"x": 3035,
"y": 5520,
"wires": []
},
{
"id": "e6d722a527fd1dc8",
"type": "inject",
"z": "80f2ffd4953c67e9",
"g": "bb2ebd173a2ba06c",
"name": "manual - reload options",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "str",
"x": 1680,
"y": 2280,
"wires": [
[
"0711217590341f99"
]
]
},
{
"id": "ea1b7dbf3573fd5e",
"type": "debug",
"z": "80f2ffd4953c67e9",
"g": "bb2ebd173a2ba06c",
"name": "ui - thermostat - options",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 3570,
"y": 2220,
"wires": []
}
]

View file

@ -29,11 +29,12 @@
"98770f13ab060020",
"df12c095346ac6e5",
"b929885ac70c377e",
"f03cb3f44a33d88e"
"f03cb3f44a33d88e",
"bd8fc47ac5649156"
],
"x": 94,
"y": 1039,
"w": 2322,
"w": 2642,
"h": 142
},
{
@ -80,12 +81,15 @@
"09ef74553d2bf413",
"1f1862300f29f4be",
"502c26f59c72bc20",
"56cabe66c45f025e"
"56cabe66c45f025e",
"d29e58969bf69989",
"ce230bb054b4a64e",
"db069c8921e410ed"
],
"x": 94,
"y": 739,
"x": 1374,
"y": 199,
"w": 502,
"h": 262
"h": 322
},
{
"id": "a057f7516f625581",
@ -130,12 +134,20 @@
"3ea169f4373d20f2",
"7d6191c7c281af92",
"b23cf90a025b97d8",
"6f7d7e33d60ed04b"
"6f7d7e33d60ed04b",
"b30249158f192781",
"951d6f115147e439",
"3346e25b9f6ba601",
"e311e3be37eb7c79",
"97974fdfff5a5796",
"30bfe414c2dacdf7",
"cbf1512ccc32d8e7",
"ae0f10f048a34d12"
],
"x": 94,
"y": 199,
"w": 1182,
"h": 502
"h": 622
},
{
"id": "1cefc23dde634662",
@ -164,12 +176,16 @@
"90a3729eb42fcf29",
"8e3e4eb62c01aaf4",
"7c59ddf6835a44f1",
"f1b49a579c3df79b"
"f1b49a579c3df79b",
"f42597dcf15de4a9",
"ec15e1b830e3cc7b",
"54af53c24912c7bd",
"cc4b69514479a134"
],
"x": 634,
"y": 739,
"x": 1374,
"y": 559,
"w": 662,
"h": 262
"h": 322
},
{
"id": "4784b4b0d3119f17",
@ -194,11 +210,13 @@
"252c4251489738e4",
"047190c9d2c62ebe",
"1519fd79c475d95a",
"e25ebb310bbeb26b"
"e25ebb310bbeb26b",
"501b5744746c35cf",
"be6f52dedfd61149"
],
"x": 94,
"y": 1219,
"w": 2282,
"w": 2802,
"h": 142
},
{
@ -224,7 +242,7 @@
"name": "translate - field",
"mode": "return",
"links": [],
"x": 2375,
"x": 2695,
"y": 1140,
"wires": []
},
@ -350,8 +368,8 @@
"g": "3ce65ca28b29922d",
"name": "translate - dictionnary - en - fields",
"links": [],
"x": 135,
"y": 780,
"x": 1415,
"y": 240,
"wires": [
[
"dfff0419d36524cf"
@ -390,8 +408,8 @@
"from": "",
"to": "",
"reg": false,
"x": 320,
"y": 780,
"x": 1600,
"y": 240,
"wires": [
[
"74289a05cdddab34"
@ -406,8 +424,8 @@
"name": "translate - dictionnary - en - fields",
"mode": "return",
"links": [],
"x": 555,
"y": 780,
"x": 1835,
"y": 240,
"wires": []
},
{
@ -417,8 +435,8 @@
"g": "3ce65ca28b29922d",
"name": "translate - dictionnary - en - measurements",
"links": [],
"x": 135,
"y": 840,
"x": 1415,
"y": 300,
"wires": [
[
"e3978b35f4a099ab"
@ -457,8 +475,8 @@
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 840,
"x": 1630,
"y": 300,
"wires": [
[
"2a7ee2b9643e48ab"
@ -473,8 +491,8 @@
"name": "translate - dictionnary - en - measurements",
"mode": "return",
"links": [],
"x": 555,
"y": 840,
"x": 1835,
"y": 300,
"wires": []
},
{
@ -484,8 +502,8 @@
"g": "3ce65ca28b29922d",
"name": "translate - dictionnary - en - states",
"links": [],
"x": 135,
"y": 900,
"x": 1415,
"y": 360,
"wires": [
[
"4baf1d36b4971cb5"
@ -524,8 +542,8 @@
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 900,
"x": 1610,
"y": 360,
"wires": [
[
"09ef74553d2bf413"
@ -540,8 +558,8 @@
"name": "translate - dictionnary - en - states",
"mode": "return",
"links": [],
"x": 555,
"y": 900,
"x": 1835,
"y": 360,
"wires": []
},
{
@ -720,8 +738,8 @@
"links": [
"a1e830727ac364e6"
],
"x": 675,
"y": 780,
"x": 1415,
"y": 600,
"wires": [
[
"90a3729eb42fcf29"
@ -760,8 +778,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1020,
"y": 780,
"x": 1760,
"y": 600,
"wires": [
[
"dea0faa68144f674"
@ -778,8 +796,8 @@
"links": [
"8918bd7398c74e03"
],
"x": 1255,
"y": 780,
"x": 1995,
"y": 600,
"wires": []
},
{
@ -791,8 +809,8 @@
"links": [
"75265f2279cc0a8f"
],
"x": 675,
"y": 840,
"x": 1415,
"y": 660,
"wires": [
[
"8e3e4eb62c01aaf4"
@ -831,8 +849,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1050,
"y": 840,
"x": 1790,
"y": 660,
"wires": [
[
"a224ce84703d7913"
@ -849,8 +867,8 @@
"links": [
"a093e376ebf8e238"
],
"x": 1255,
"y": 840,
"x": 1995,
"y": 660,
"wires": []
},
{
@ -862,8 +880,8 @@
"links": [
"3056fc09e82c2a0a"
],
"x": 675,
"y": 900,
"x": 1415,
"y": 720,
"wires": [
[
"7c59ddf6835a44f1"
@ -902,8 +920,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1020,
"y": 900,
"x": 1760,
"y": 720,
"wires": [
[
"fa5fa5f551f340b8"
@ -920,8 +938,8 @@
"links": [
"1c36d1abb160b6a7"
],
"x": 1255,
"y": 900,
"x": 1995,
"y": 720,
"wires": []
},
{
@ -956,7 +974,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2240,
"x": 2560,
"y": 1080,
"wires": [
[
@ -985,7 +1003,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 2060,
"x": 2380,
"y": 1140,
"wires": [
[
@ -1021,7 +1039,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2240,
"x": 2560,
"y": 1140,
"wires": [
[
@ -1040,7 +1058,7 @@
],
"linkType": "static",
"timeout": "30",
"x": 1830,
"x": 2150,
"y": 1140,
"wires": [
[
@ -1102,8 +1120,8 @@
"g": "3ce65ca28b29922d",
"name": "translate - dictionnary - en - colors",
"links": [],
"x": 135,
"y": 960,
"x": 1415,
"y": 420,
"wires": [
[
"502c26f59c72bc20"
@ -1142,8 +1160,8 @@
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 960,
"x": 1610,
"y": 420,
"wires": [
[
"56cabe66c45f025e"
@ -1158,8 +1176,8 @@
"name": "translate - dictionnary - en - colors",
"mode": "return",
"links": [],
"x": 555,
"y": 960,
"x": 1835,
"y": 420,
"wires": []
},
{
@ -1171,8 +1189,8 @@
"links": [
"a471f27faca2b3bd"
],
"x": 675,
"y": 960,
"x": 1415,
"y": 780,
"wires": [
[
"f1b49a579c3df79b"
@ -1211,8 +1229,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1020,
"y": 960,
"x": 1760,
"y": 780,
"wires": [
[
"b25023459b4d1288"
@ -1229,8 +1247,8 @@
"links": [
"b23cf90a025b97d8"
],
"x": 1255,
"y": 960,
"x": 1995,
"y": 780,
"wires": []
},
{
@ -1248,7 +1266,7 @@
"y": 1140,
"wires": [
[
"bdcd4dd80dcbe2b9"
"bd8fc47ac5649156"
]
]
},
@ -1316,25 +1334,32 @@
},
{
"t": "set",
"p": "trans.bucket",
"p": "trans.scene",
"pt": "msg",
"to": "tmp[0]",
"tot": "msg"
},
{
"t": "set",
"p": "trans.measurement",
"p": "trans.bucket",
"pt": "msg",
"to": "tmp[1]",
"tot": "msg"
},
{
"t": "set",
"p": "trans.field",
"p": "trans.measurement",
"pt": "msg",
"to": "tmp[2]",
"tot": "msg"
},
{
"t": "set",
"p": "trans.field",
"pt": "msg",
"to": "tmp[3]",
"tot": "msg"
},
{
"t": "delete",
"p": "dictionnary",
@ -1384,7 +1409,7 @@
],
"linkType": "static",
"timeout": "30",
"x": 1630,
"x": 2150,
"y": 1320,
"wires": [
[
@ -1417,7 +1442,7 @@
"t": "set",
"p": "field",
"pt": "msg",
"to": "trans.field",
"to": "trans.scene",
"tot": "msg"
}
],
@ -1430,7 +1455,7 @@
"y": 1320,
"wires": [
[
"088a7d890760254f"
"be6f52dedfd61149"
]
]
},
@ -1445,7 +1470,7 @@
],
"linkType": "static",
"timeout": "30",
"x": 1340,
"x": 1860,
"y": 1320,
"wires": [
[
@ -1474,7 +1499,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 1860,
"x": 2380,
"y": 1320,
"wires": [
[
@ -1517,7 +1542,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2040,
"x": 2560,
"y": 1260,
"wires": [
[
@ -1550,7 +1575,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2040,
"x": 2560,
"y": 1320,
"wires": [
[
@ -1566,7 +1591,7 @@
"name": "translate - metric",
"mode": "return",
"links": [],
"x": 2335,
"x": 2855,
"y": 1320,
"wires": []
},
@ -1590,7 +1615,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2210,
"x": 2730,
"y": 1320,
"wires": [
[
@ -1616,8 +1641,8 @@
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 810,
"y": 780,
"x": 1550,
"y": 600,
"wires": [
[
"d19444d55fc80292"
@ -1642,8 +1667,8 @@
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 810,
"y": 840,
"x": 1550,
"y": 660,
"wires": [
[
"b992e76203b16a72"
@ -1668,8 +1693,8 @@
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 810,
"y": 900,
"x": 1550,
"y": 720,
"wires": [
[
"804f5e47bf25b226"
@ -1694,8 +1719,8 @@
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 810,
"y": 960,
"x": 1550,
"y": 780,
"wires": [
[
"93834b48f9810d44"
@ -2149,5 +2174,408 @@
"6402f2306b4ca091"
]
]
},
{
"id": "951d6f115147e439",
"type": "link call",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "",
"links": [
"ce230bb054b4a64e"
],
"linkType": "static",
"timeout": "30",
"x": 360,
"y": 780,
"wires": [
[
"3346e25b9f6ba601",
"30bfe414c2dacdf7"
]
]
},
{
"id": "3346e25b9f6ba601",
"type": "trigger",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "250 ms",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1100,
"y": 780,
"wires": [
[
"ae0f10f048a34d12"
]
]
},
{
"id": "b30249158f192781",
"type": "change",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 930,
"y": 720,
"wires": [
[
"3346e25b9f6ba601",
"e311e3be37eb7c79"
]
]
},
{
"id": "e311e3be37eb7c79",
"type": "change",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "clean",
"rules": [
{
"t": "delete",
"p": "reset",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1090,
"y": 720,
"wires": [
[
"ae0f10f048a34d12"
]
]
},
{
"id": "97974fdfff5a5796",
"type": "link in",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "translate - dictionnary - scenes",
"links": [],
"x": 135,
"y": 780,
"wires": [
[
"951d6f115147e439"
]
]
},
{
"id": "30bfe414c2dacdf7",
"type": "link out",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "translate - scene - in",
"mode": "link",
"links": [
"54af53c24912c7bd"
],
"x": 635,
"y": 720,
"wires": []
},
{
"id": "cbf1512ccc32d8e7",
"type": "link in",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "translate - scene - out",
"links": [
"cc4b69514479a134"
],
"x": 795,
"y": 720,
"wires": [
[
"b30249158f192781"
]
]
},
{
"id": "ae0f10f048a34d12",
"type": "link out",
"z": "bac2b08cd7c2e421",
"g": "a057f7516f625581",
"name": "translate - dictionnary - scenes",
"mode": "return",
"links": [],
"x": 1235,
"y": 780,
"wires": []
},
{
"id": "d29e58969bf69989",
"type": "change",
"z": "bac2b08cd7c2e421",
"g": "3ce65ca28b29922d",
"name": "dictionnary - en - scenes",
"rules": [
{
"t": "set",
"p": "tmp",
"pt": "msg",
"to": "{\t 'lighting':'lighting',\t 'shading':'shading',\t 'airflow':'airflow',\t 'cumulus':'cumulus',\t 'overload':'overload',\t 'clone':'clone',\t 'toggle':'toggle',\t 'custom color':'custom color',\t 'custom level':'custom level',\t 'custom volume':'custom volume',\t 'snapshot':'snapshot'\t}",
"tot": "jsonata"
},
{
"t": "set",
"p": "dictionnary",
"pt": "msg",
"to": "msg.dictionnary?$merge([msg.dictionnary,msg.tmp]):msg.tmp",
"tot": "jsonata"
},
{
"t": "delete",
"p": "tmp",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1610,
"y": 480,
"wires": [
[
"db069c8921e410ed"
]
]
},
{
"id": "ce230bb054b4a64e",
"type": "link in",
"z": "bac2b08cd7c2e421",
"g": "3ce65ca28b29922d",
"name": "translate - dictionnary - en - scenes",
"links": [],
"x": 1415,
"y": 480,
"wires": [
[
"d29e58969bf69989"
]
]
},
{
"id": "db069c8921e410ed",
"type": "link out",
"z": "bac2b08cd7c2e421",
"g": "3ce65ca28b29922d",
"name": "translate - dictionnary - en - scenes",
"mode": "return",
"links": [],
"x": 1835,
"y": 480,
"wires": []
},
{
"id": "f42597dcf15de4a9",
"type": "change",
"z": "bac2b08cd7c2e421",
"g": "1cefc23dde634662",
"name": "dictionnary - fr - scenes",
"rules": [
{
"t": "set",
"p": "tmp",
"pt": "msg",
"to": "{\t 'lighting':'éclairage',\t 'shading':'ombrage',\t 'airflow':'ventilation',\t 'cumulus':'cumulus',\t 'overload':'surcharge',\t 'clone':'copie',\t 'toggle':'inverseur',\t 'custom color':'spécial couleur',\t 'custom level':'spécial niveau',\t 'custom volume':'spécial volume',\t 'snapshot':\"capture d'image\"\t}",
"tot": "jsonata"
},
{
"t": "set",
"p": "dictionnary",
"pt": "msg",
"to": "$merge([msg.dictionnary,msg.tmp])",
"tot": "jsonata"
},
{
"t": "delete",
"p": "tmp",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1770,
"y": 840,
"wires": [
[
"cc4b69514479a134"
]
]
},
{
"id": "ec15e1b830e3cc7b",
"type": "switch",
"z": "bac2b08cd7c2e421",
"g": "1cefc23dde634662",
"name": "lang",
"property": "about.lang",
"propertyType": "global",
"rules": [
{
"t": "eq",
"v": "fr",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1550,
"y": 840,
"wires": [
[
"f42597dcf15de4a9"
]
]
},
{
"id": "54af53c24912c7bd",
"type": "link in",
"z": "bac2b08cd7c2e421",
"g": "1cefc23dde634662",
"name": "translate - dictionnary - fr - scenes",
"links": [
"30bfe414c2dacdf7"
],
"x": 1415,
"y": 840,
"wires": [
[
"ec15e1b830e3cc7b"
]
]
},
{
"id": "cc4b69514479a134",
"type": "link out",
"z": "bac2b08cd7c2e421",
"g": "1cefc23dde634662",
"name": "translate - dictionnary - fr - scenes",
"mode": "link",
"links": [
"cbf1512ccc32d8e7"
],
"x": 1995,
"y": 840,
"wires": []
},
{
"id": "bd8fc47ac5649156",
"type": "link call",
"z": "bac2b08cd7c2e421",
"g": "dd7ef46856df793e",
"name": "",
"links": [
"97974fdfff5a5796"
],
"linkType": "static",
"timeout": "30",
"x": 1850,
"y": 1140,
"wires": [
[
"bdcd4dd80dcbe2b9"
]
]
},
{
"id": "501b5744746c35cf",
"type": "change",
"z": "bac2b08cd7c2e421",
"g": "4784b4b0d3119f17",
"name": "trans scene",
"rules": [
{
"t": "set",
"p": "tmp",
"pt": "msg",
"to": "dictionnary[msg.trans.scene]",
"tot": "msg"
},
{
"t": "set",
"p": "trans.scene",
"pt": "msg",
"to": "msg.tmp?msg.tmp:msg.trans.scene",
"tot": "jsonata"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "trans.field",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1610,
"y": 1320,
"wires": [
[
"088a7d890760254f"
]
]
},
{
"id": "be6f52dedfd61149",
"type": "link call",
"z": "bac2b08cd7c2e421",
"g": "4784b4b0d3119f17",
"name": "",
"links": [
"97974fdfff5a5796"
],
"linkType": "static",
"timeout": "30",
"x": 1350,
"y": 1320,
"wires": [
[
"501b5744746c35cf"
]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -490,7 +490,8 @@
"fb5a869082c28238",
"4e15e2ceec7f8bf0",
"b70d53e7c8c8615f",
"0ca8ceaa6a406075"
"0ca8ceaa6a406075",
"970c53cf60f3037d"
],
"x": 94,
"y": 3679,
@ -5461,7 +5462,7 @@
"y": 3720,
"wires": [
[
"4e15e2ceec7f8bf0"
"970c53cf60f3037d"
]
]
},
@ -12470,7 +12471,7 @@
"t": "set",
"p": "#:(onMemory)::timers[msg.parts.index]",
"pt": "flow",
"to": "{\t \"Scène\":msg.scene,\t \"Pièce\":msg.trans.bucket,\t \"Equipement\":msg.trans.measurement,\t \"Champs\":msg.trans.field,\t \"Fin\":msg.date\t }",
"to": "{\t \"Scène\":msg.trans.scene,\t \"Pièce\":msg.trans.bucket,\t \"Equipement\":msg.trans.measurement,\t \"Champs\":msg.trans.field,\t \"Fin\":msg.date\t }",
"tot": "jsonata"
}
],
@ -12486,5 +12487,33 @@
"3373b870924b043e"
]
]
},
{
"id": "970c53cf60f3037d",
"type": "change",
"z": "677f66663a198839",
"g": "57bf8eefe70206c0",
"name": "metric",
"rules": [
{
"t": "set",
"p": "metric",
"pt": "msg",
"to": "payload.timer.path",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1570,
"y": 3760,
"wires": [
[
"b70d53e7c8c8615f"
]
]
}
]