7188 lines
No EOL
132 KiB
JSON
7188 lines
No EOL
132 KiB
JSON
[
|
|
{
|
|
"id": "f125f568d4e332ee",
|
|
"type": "tab",
|
|
"label": "P.API",
|
|
"disabled": false,
|
|
"info": "",
|
|
"env": []
|
|
},
|
|
{
|
|
"id": "9a5f8bbe3eabf5fb",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"name": "REOLINK - camera",
|
|
"style": {
|
|
"fill": "#777777",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"636790a6de6bdeca",
|
|
"e9ac143262e4b9a0",
|
|
"4408e79a921abde7",
|
|
"42c0f1473438a281"
|
|
],
|
|
"x": 68,
|
|
"y": 173,
|
|
"w": 3504,
|
|
"h": 314
|
|
},
|
|
{
|
|
"id": "571cfd384a015b88",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"name": "Daikin - BRP069B45",
|
|
"style": {
|
|
"fill": "#777777",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"9cdc88788fe441f1",
|
|
"360ce5f1d0de3811",
|
|
"e7dd5536e7ec485b",
|
|
"c845a1c03f4d92c1",
|
|
"00798774fd655f5e",
|
|
"56543977028aa001",
|
|
"8aac22b29281bbb2",
|
|
"a0938dfc54b55acc"
|
|
],
|
|
"x": 68,
|
|
"y": 533,
|
|
"w": 7674,
|
|
"h": 794
|
|
},
|
|
{
|
|
"id": "6c796c0f0a2e4a4b",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"name": "catch error",
|
|
"style": {
|
|
"fill": "#ff0000",
|
|
"fill-opacity": "0.05",
|
|
"label": true,
|
|
"stroke": "#ff0000"
|
|
},
|
|
"nodes": [
|
|
"b45f1179a641d133",
|
|
"3df393955c61492b",
|
|
"7a47df709c00596e"
|
|
],
|
|
"x": 534,
|
|
"y": 19,
|
|
"w": 422,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "96eb2a79eb4c26b2",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"name": "api - ecu-c - device",
|
|
"style": {
|
|
"fill": "#777777",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"e3693344db474a0a",
|
|
"709f263740a61967",
|
|
"c2f0571e97f072d9",
|
|
"a839571a87dd2aa6",
|
|
"97176af7973174dd",
|
|
"e27bdf5e4cdc9e39"
|
|
],
|
|
"x": 68,
|
|
"y": 1373,
|
|
"w": 5764,
|
|
"h": 494
|
|
},
|
|
{
|
|
"id": "f415bb3d48bbe3f8",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"name": "api - nodered",
|
|
"style": {
|
|
"fill": "#777777",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"b72b30ef40073df1",
|
|
"6402ef93b3ea92bd",
|
|
"4b0e15b62cc0c407",
|
|
"5b5a2f2cb0f13d57"
|
|
],
|
|
"x": 68,
|
|
"y": 1913,
|
|
"w": 2934,
|
|
"h": 254
|
|
},
|
|
{
|
|
"id": "636790a6de6bdeca",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9a5f8bbe3eabf5fb",
|
|
"name": "api - camera - device",
|
|
"style": {
|
|
"fill": "#ffC000",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"99fe787fc1aa2efe",
|
|
"a54905c20392b984",
|
|
"cd58e411fe4d34cd",
|
|
"61651b0ee41123b7",
|
|
"7c230d4cdca2bfea",
|
|
"4e3f5c09468d189b"
|
|
],
|
|
"x": 534,
|
|
"y": 199,
|
|
"w": 782,
|
|
"h": 142
|
|
},
|
|
{
|
|
"id": "9cdc88788fe441f1",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "api - BRP069B45 - device",
|
|
"style": {
|
|
"label": true,
|
|
"fill": "#ffC000",
|
|
"fill-opacity": "0.05"
|
|
},
|
|
"nodes": [
|
|
"9405d14c97dba7e5",
|
|
"61e245f74e07b10d",
|
|
"e3c4ae3ddd50eec2",
|
|
"011ade793e7bc445",
|
|
"fe303e4021a5b4be",
|
|
"038b2def0f9a28ae",
|
|
"2a9e3b488590c435",
|
|
"fa538e7bec527b6f",
|
|
"51b51889079ebf6c",
|
|
"ddd2fdbcdb9c86c1",
|
|
"584d6b722534c912",
|
|
"f0caf0d00683cab6",
|
|
"2ea0e31ea4bcc4e0",
|
|
"5075e1b00bd279ed",
|
|
"ed78d57addcfaed4",
|
|
"48d093a809c863d7"
|
|
],
|
|
"x": 534,
|
|
"y": 559,
|
|
"w": 942,
|
|
"h": 742
|
|
},
|
|
{
|
|
"id": "360ce5f1d0de3811",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "api - BRP069B45 - source",
|
|
"style": {
|
|
"fill": "#0070c0",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"f71143d4a1e865c3",
|
|
"8608637b5a26bca7",
|
|
"5e888e23163ac3bf",
|
|
"6943689df4884df3",
|
|
"7634941bff66a6dd",
|
|
"af1d46d32e7d572e",
|
|
"1717b4b42c3de1df",
|
|
"28b4c85488f128d5",
|
|
"bffe192d318c5b7b",
|
|
"4a0ee4c3c569cf57",
|
|
"bc238f831322f260",
|
|
"5c02d7293ada883c",
|
|
"873fffb1d263db71",
|
|
"8156394d9b7d6e42",
|
|
"1ce065ee95e4bc96",
|
|
"da2926c9f2b6bf96",
|
|
"30827d65144b688f",
|
|
"c578d346dcc9f38e",
|
|
"6c341edbdc85864c",
|
|
"05632f2f980cdf7b",
|
|
"9ef2d8276441403e",
|
|
"0fb952b271143df6",
|
|
"99ba27f17405021f"
|
|
],
|
|
"x": 1574,
|
|
"y": 559,
|
|
"w": 2052,
|
|
"h": 262
|
|
},
|
|
{
|
|
"id": "e7dd5536e7ec485b",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "api - BRP069B45 - metric",
|
|
"style": {
|
|
"fill": "#92d04f",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"7efac7e387d141ec",
|
|
"ba235aab7dfb1657",
|
|
"cfe63595d3b8995f",
|
|
"876b1f20d9cf3e10",
|
|
"8148c9d62d0a05ab",
|
|
"f202d1365abe395c",
|
|
"9d79f271f0274c74",
|
|
"ed0961c2ec67452b",
|
|
"8fa6a7c7df79344c",
|
|
"d5788e29f1e344be",
|
|
"efec7c8362bd6496",
|
|
"2c35832edfa0d2fc",
|
|
"1a5051a42ca6c504",
|
|
"bc4daaee49052e86"
|
|
],
|
|
"x": 3694,
|
|
"y": 559,
|
|
"w": 2042,
|
|
"h": 142
|
|
},
|
|
{
|
|
"id": "c845a1c03f4d92c1",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "api - BRP069B45 - call",
|
|
"style": {
|
|
"fill": "#ff0000",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"786bfd43841bb244",
|
|
"f721ca03be8ff260",
|
|
"f2a95a5b30167059",
|
|
"5d1d77696340830c",
|
|
"983cd159a0b40113",
|
|
"37d6df803145f6b3",
|
|
"0f9815dd4369b44e",
|
|
"dedd7481c1232f2b",
|
|
"221ee97bfed13f5d",
|
|
"f8b304d5bd41013d",
|
|
"ced32d247bfe4ecd",
|
|
"37b01079e497bc64",
|
|
"a4813736579f6a19",
|
|
"54880878ed729b66",
|
|
"aa72fc0611d255ca",
|
|
"1af45cb185475ea3",
|
|
"2aca27cd78517955",
|
|
"78056d2e854d07b8",
|
|
"8919c8979775e43c",
|
|
"bbfde2c30bb24f53",
|
|
"2efdb634d6eff450",
|
|
"d1e219d53c99be45",
|
|
"17db5a87405dc4cb",
|
|
"8f81968d65ec739b",
|
|
"c63d0c615d60abc8",
|
|
"68aeddd9bd26aa5b"
|
|
],
|
|
"x": 3694,
|
|
"y": 739,
|
|
"w": 2302,
|
|
"h": 442
|
|
},
|
|
{
|
|
"id": "00798774fd655f5e",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "api - BRP069B45 - update thermostat to air conditioner",
|
|
"style": {
|
|
"fill": "#92d04f",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"16f4d5aef15c6bdd",
|
|
"08048d875b38ceb8",
|
|
"d5cdd8f60040d125",
|
|
"1d16f018c9c5ace2",
|
|
"a76580bfbb24a34e",
|
|
"e314d68876ac9938",
|
|
"192d06a39b1a1f66",
|
|
"517ffa31c1e561c3",
|
|
"8296521e661aabf6",
|
|
"9e6b8f297621f50f"
|
|
],
|
|
"x": 1574,
|
|
"y": 859,
|
|
"w": 1002,
|
|
"h": 262
|
|
},
|
|
{
|
|
"id": "e3693344db474a0a",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "96eb2a79eb4c26b2",
|
|
"name": "api - ecu-c - source",
|
|
"style": {
|
|
"fill": "#0070c0",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"42747e8a5076b140",
|
|
"0b2db761754711da",
|
|
"645a5c37a7442a3a",
|
|
"ba1b2e019bac57a0",
|
|
"6b69eabc1b4262e7",
|
|
"ea470f779e4827f9",
|
|
"b1329a14210f3a69",
|
|
"2c5ef02ab2fd4b04",
|
|
"6f09c4d0fd650430",
|
|
"735d536496e9ddda",
|
|
"fcb1ab6455b06283",
|
|
"2242e0f8f199a633",
|
|
"476acc2dcd7993ae",
|
|
"9c8f46ffc099ab23",
|
|
"7f10b42898985d21",
|
|
"4433605232813be4",
|
|
"403ed8a53ec05449",
|
|
"01722dc818a6feda",
|
|
"5616c2ce5c283bbd",
|
|
"14040e777a789a38",
|
|
"5b23a7e32b5b478a",
|
|
"517dfff49c71a517"
|
|
],
|
|
"x": 1574,
|
|
"y": 1399,
|
|
"w": 3012,
|
|
"h": 142
|
|
},
|
|
{
|
|
"id": "709f263740a61967",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "96eb2a79eb4c26b2",
|
|
"name": "home - ecu - device",
|
|
"style": {
|
|
"label": true,
|
|
"fill": "#ffC000",
|
|
"fill-opacity": "0.05"
|
|
},
|
|
"nodes": [
|
|
"626fbd5643a10cad",
|
|
"d05a833bc0944694",
|
|
"6bc13c7cf7683462",
|
|
"de60b0422ab7f7a1",
|
|
"d59e71f32dca20fe",
|
|
"9a4b65c56551cc5a",
|
|
"196a9e3b2963d54d",
|
|
"13df18e469dd5933",
|
|
"2ed136ebd92695c1"
|
|
],
|
|
"x": 534,
|
|
"y": 1399,
|
|
"w": 942,
|
|
"h": 322
|
|
},
|
|
{
|
|
"id": "c2f0571e97f072d9",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "96eb2a79eb4c26b2",
|
|
"name": "api- ecu-c - get url",
|
|
"style": {
|
|
"fill": "#ff0000",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"487c23a4a5a0bdc3",
|
|
"61ad71f1a6e26708",
|
|
"6e5199207c64c314",
|
|
"747be65a91f87907",
|
|
"9ab1093bbdb724bd",
|
|
"1630d20b18ae1ca5",
|
|
"da2aec8e2b2edecf",
|
|
"6e55943b9d5ef0ee"
|
|
],
|
|
"x": 1574,
|
|
"y": 1579,
|
|
"w": 1232,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "a839571a87dd2aa6",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "96eb2a79eb4c26b2",
|
|
"name": "api - ecu-c - model",
|
|
"style": {
|
|
"fill": "#001f60",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"0df2f6e07a121689",
|
|
"c58419a94fdc0937",
|
|
"ac9c9b4e7caf4c7c"
|
|
],
|
|
"x": 94,
|
|
"y": 1399,
|
|
"w": 342,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "56543977028aa001",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "api - BRP069B45 - model",
|
|
"style": {
|
|
"fill": "#001f60",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"40de83c24a607884",
|
|
"291134c3ae70e68a",
|
|
"72a29139af6e48a9"
|
|
],
|
|
"x": 94,
|
|
"y": 559,
|
|
"w": 342,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "e9ac143262e4b9a0",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9a5f8bbe3eabf5fb",
|
|
"name": "api - REOLINK - model",
|
|
"style": {
|
|
"fill": "#001f60",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"e31b48fc04ade3f3",
|
|
"3dc94638f08bfde6",
|
|
"f5d43b55f6998570"
|
|
],
|
|
"x": 94,
|
|
"y": 199,
|
|
"w": 342,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "b72b30ef40073df1",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "f415bb3d48bbe3f8",
|
|
"name": "api - nodered - device",
|
|
"style": {
|
|
"fill": "#ffC000",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"8d88dcb327d3404d",
|
|
"efcf7b575d53e6c0",
|
|
"c9eb3c5aa51745b0",
|
|
"968b644498d1743a",
|
|
"6469fe2f046f5112",
|
|
"4d37e0a09b4ce70b",
|
|
"f064e16a50e5d575"
|
|
],
|
|
"x": 534,
|
|
"y": 1939,
|
|
"w": 862,
|
|
"h": 202
|
|
},
|
|
{
|
|
"id": "6402ef93b3ea92bd",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "f415bb3d48bbe3f8",
|
|
"name": "api - nodered - source",
|
|
"style": {
|
|
"fill": "#0070c0",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"0b957131451db9ef",
|
|
"f8309e72971c027c",
|
|
"1f263044e8a9dd75",
|
|
"17e9b81d88b1604a",
|
|
"f6323a0b9073240d",
|
|
"20d7953a9ead353a",
|
|
"60efdc17c7f5ad29",
|
|
"808db065967c9e6d",
|
|
"babc2bc27fa9f0e2"
|
|
],
|
|
"x": 1494,
|
|
"y": 1939,
|
|
"w": 1482,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "4b0e15b62cc0c407",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "f415bb3d48bbe3f8",
|
|
"name": "api - nodered - model",
|
|
"style": {
|
|
"fill": "#001f60",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"da360449dd96785f",
|
|
"09dc99fbf771a617",
|
|
"07107ca09790b060"
|
|
],
|
|
"x": 94,
|
|
"y": 1939,
|
|
"w": 342,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "a0938dfc54b55acc",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "room - ui - air conditioner",
|
|
"style": {
|
|
"fill": "#6f2fa0",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"97aa2e016643bfbd",
|
|
"383c38e98cd05755",
|
|
"baadaeea2e2d4f95",
|
|
"c5d646bd69c37865",
|
|
"9d8b8d237e2704ea",
|
|
"4da4c768067c032b",
|
|
"12fca45ce9ab2abb",
|
|
"327f0ed7b5fa48d2",
|
|
"f68f5c75e58e22cb",
|
|
"a8dd4b383d7eb632",
|
|
"4205795bed6b3290",
|
|
"2a45ad61a4b3d598",
|
|
"dcfb0cd127aa904e",
|
|
"22c8ba7a5b818ab1",
|
|
"4e080e4032b4c4c8",
|
|
"988c34fbce846dcc",
|
|
"88a37cbdf2f5f465",
|
|
"e6cf92eef6f506ec",
|
|
"0bb31a889d427f54",
|
|
"ad3172b46080261c",
|
|
"0ecce96328bfdde4",
|
|
"2a4f2715f401f8f2",
|
|
"738201cd36aef02d",
|
|
"9d154c219f206faf",
|
|
"6b1aeadab15d8e8c",
|
|
"044f28fb3df06b13",
|
|
"001235ada046b338",
|
|
"be448f42064357f1"
|
|
],
|
|
"x": 6094,
|
|
"y": 559,
|
|
"w": 1622,
|
|
"h": 622
|
|
},
|
|
{
|
|
"id": "e27bdf5e4cdc9e39",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "96eb2a79eb4c26b2",
|
|
"name": "room - ui - photovoltaic",
|
|
"style": {
|
|
"fill": "#6f2fa0",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"613dd73590f50433",
|
|
"150f3acd97d50753",
|
|
"8db09f7819d2fc6d",
|
|
"6a027347453d83c3",
|
|
"342b305e6299276c",
|
|
"a58b09ccb8f97924",
|
|
"28ae56ce57b30c92",
|
|
"c99676ea32c261f1",
|
|
"5383281dc0065107",
|
|
"302b661de508f21f",
|
|
"fd96856199805188",
|
|
"677d09c83dba1952",
|
|
"fa1e9d9b2b5cc0b2",
|
|
"0fc41ad2ed3f9bc2",
|
|
"6e31066cb8bc35e6",
|
|
"6e7361c72d5382d3",
|
|
"3aa7927ee6a3837a",
|
|
"10ded0e86fc42cbf"
|
|
],
|
|
"x": 4694,
|
|
"y": 1399,
|
|
"w": 1112,
|
|
"h": 442
|
|
},
|
|
{
|
|
"id": "42c0f1473438a281",
|
|
"type": "group",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9a5f8bbe3eabf5fb",
|
|
"name": "room - ui - camera",
|
|
"style": {
|
|
"fill": "#6f2fa0",
|
|
"fill-opacity": "0.05",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"24f76309a6dfe14a",
|
|
"4adc84859872765c",
|
|
"78f2cb047057edc0",
|
|
"ef4532a3ebf0b36e",
|
|
"967fea7a3b32f198",
|
|
"16094297767ce839",
|
|
"d1904515488ddaf4",
|
|
"725065af055abe45",
|
|
"fb170cb858137be7",
|
|
"263b6e6e05263288",
|
|
"b60115a1fd023b76",
|
|
"c2aa1840a5deddbf",
|
|
"62c1bb0cb832960f",
|
|
"8aa78c963092f63a",
|
|
"6986b6056378b809",
|
|
"c588f13f74f79161",
|
|
"4990423c8f36ea2d"
|
|
],
|
|
"x": 1434,
|
|
"y": 199,
|
|
"w": 2112,
|
|
"h": 262
|
|
},
|
|
{
|
|
"id": "99fe787fc1aa2efe",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "636790a6de6bdeca",
|
|
"name": "camera / url / text / *",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "camera",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "msg.default?msg.default:''",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 920,
|
|
"y": 300,
|
|
"wires": [
|
|
[
|
|
"61651b0ee41123b7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "a54905c20392b984",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "636790a6de6bdeca",
|
|
"name": "api - camera - device",
|
|
"links": [
|
|
"546f190f3ec0c90d"
|
|
],
|
|
"x": 575,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"cd58e411fe4d34cd"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "cd58e411fe4d34cd",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "636790a6de6bdeca",
|
|
"name": "model",
|
|
"property": "model",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "REOLINK",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 710,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"99fe787fc1aa2efe",
|
|
"4e3f5c09468d189b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "61651b0ee41123b7",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "636790a6de6bdeca",
|
|
"name": "protocol",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1140,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"7c230d4cdca2bfea"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7c230d4cdca2bfea",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "636790a6de6bdeca",
|
|
"name": "api - camera - device",
|
|
"mode": "link",
|
|
"links": [
|
|
"3e1b4213132404be"
|
|
],
|
|
"x": 1275,
|
|
"y": 240,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "4e3f5c09468d189b",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"d": true,
|
|
"g": "636790a6de6bdeca",
|
|
"name": "brand",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "camera'",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "reolink",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 870,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"61651b0ee41123b7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4408e79a921abde7",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9a5f8bbe3eabf5fb",
|
|
"name": "camera / url",
|
|
"info": "",
|
|
"x": 190,
|
|
"y": 320,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "9405d14c97dba7e5",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "api - BRP069B45 - device",
|
|
"links": [
|
|
"546f190f3ec0c90d"
|
|
],
|
|
"x": 575,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"584d6b722534c912"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "61e245f74e07b10d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / actif / boolean / true",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "actif",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "boolean",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "false",
|
|
"tot": "bool"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 960,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e3c4ae3ddd50eec2",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / mode / text / A",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "mode",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "A",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 950,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "011ade793e7bc445",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / fan rate / text / A",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "fan rate",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "A",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 950,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fe303e4021a5b4be",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / fan direction / text / 0",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "fan direction",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 970,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "038b2def0f9a28ae",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / temperature setpoint / text / 21",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "temperature setpoint",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "21",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1000,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2a9e3b488590c435",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "api - BRP069B45 - device",
|
|
"mode": "link",
|
|
"links": [
|
|
"3e1b4213132404be"
|
|
],
|
|
"x": 1435,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "fa538e7bec527b6f",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / url / text / *",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "msg.default?msg.default:''",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 940,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "51b51889079ebf6c",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"d": true,
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "brand",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "daikin",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 870,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ddd2fdbcdb9c86c1",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "protocol",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1300,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"2a9e3b488590c435"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "584d6b722534c912",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "model",
|
|
"property": "model",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "BRP069B45",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 710,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"51b51889079ebf6c",
|
|
"fa538e7bec527b6f",
|
|
"61e245f74e07b10d",
|
|
"e3c4ae3ddd50eec2",
|
|
"011ade793e7bc445",
|
|
"fe303e4021a5b4be",
|
|
"038b2def0f9a28ae",
|
|
"f0caf0d00683cab6",
|
|
"2ea0e31ea4bcc4e0",
|
|
"5075e1b00bd279ed",
|
|
"ed78d57addcfaed4",
|
|
"48d093a809c863d7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8aac22b29281bbb2",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "571cfd384a015b88",
|
|
"name": "air conditioner / url",
|
|
"info": "",
|
|
"x": 210,
|
|
"y": 680,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "f0caf0d00683cab6",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "cible / pilot / boolean / false",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "cible",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "pilot",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "boolean",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "false",
|
|
"tot": "bool"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 940,
|
|
"y": 1080,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2ea0e31ea4bcc4e0",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "thermostat / pilot / boolean / false",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "thermostat",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "pilot",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "boolean",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "false",
|
|
"tot": "bool"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 960,
|
|
"y": 1140,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5075e1b00bd279ed",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "temperature / air conditioner / number / 20",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "temperature",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "20",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 980,
|
|
"y": 1200,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ed78d57addcfaed4",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "power / air conditioner / number / 0",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "power",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 960,
|
|
"y": 1260,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "48d093a809c863d7",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "9cdc88788fe441f1",
|
|
"name": "air conditioner / advanced / text / ",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "advanced",
|
|
"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": 950,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"ddd2fdbcdb9c86c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f71143d4a1e865c3",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "api - BRP069B45 - source",
|
|
"links": [
|
|
"004bb30c27c94fb4"
|
|
],
|
|
"x": 1615,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"8608637b5a26bca7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8608637b5a26bca7",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "from global",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "metrics",
|
|
"tot": "global"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1770,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"5e888e23163ac3bf"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5e888e23163ac3bf",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "",
|
|
"splt": "\\n",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "bucket",
|
|
"x": 1950,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"6943689df4884df3"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6943689df4884df3",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "measurement",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "hask",
|
|
"v": "air conditioner",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2140,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"bffe192d318c5b7b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7634941bff66a6dd",
|
|
"type": "debug",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "api - BRP069B45 - source",
|
|
"active": false,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 3470,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "af1d46d32e7d572e",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "50 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "50",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 2490,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"4a0ee4c3c569cf57"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1717b4b42c3de1df",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "api - BRP069B45 - source",
|
|
"mode": "link",
|
|
"links": [
|
|
"206c1fb4a48067df"
|
|
],
|
|
"x": 3375,
|
|
"y": 660,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "28b4c85488f128d5",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "scan buckets to find air conditioner and to query it to update values",
|
|
"info": "",
|
|
"x": 1840,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "bffe192d318c5b7b",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "device",
|
|
"property": "devices[msg.bucket]['air conditioner']url.model",
|
|
"propertyType": "global",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "BRP069B45",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2330,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"af1d46d32e7d572e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4a0ee4c3c569cf57",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "get url",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "payload['air conditioner']url",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "parts",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "payload",
|
|
"pt": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2650,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"bc238f831322f260",
|
|
"1ce065ee95e4bc96"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "bc238f831322f260",
|
|
"type": "link call",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "",
|
|
"links": [
|
|
"a4813736579f6a19"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 2860,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"5c02d7293ada883c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5c02d7293ada883c",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "",
|
|
"splt": "\\n",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "field",
|
|
"x": 3070,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"873fffb1d263db71"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "873fffb1d263db71",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "set metric",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3240,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"7634941bff66a6dd",
|
|
"1717b4b42c3de1df"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8156394d9b7d6e42",
|
|
"type": "catch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "catch query timeout (see query)",
|
|
"scope": "group",
|
|
"uncaught": false,
|
|
"x": 2890,
|
|
"y": 600,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "1ce065ee95e4bc96",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "sensor url",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "'http://'&msg.url&'/aircon/get_sensor_info'",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2020,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"da2926c9f2b6bf96"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "da2926c9f2b6bf96",
|
|
"type": "http request",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "",
|
|
"method": "GET",
|
|
"ret": "txt",
|
|
"paytoqs": "ignore",
|
|
"url": "",
|
|
"tls": "",
|
|
"persist": false,
|
|
"proxy": "",
|
|
"insecureHTTPParser": false,
|
|
"authType": "",
|
|
"senderr": false,
|
|
"headers": [],
|
|
"x": 2210,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"30827d65144b688f"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "30827d65144b688f",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "status",
|
|
"property": "statusCode",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "200",
|
|
"vt": "num"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2390,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"c578d346dcc9f38e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c578d346dcc9f38e",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "decode",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]",
|
|
"pt": "flow",
|
|
"to": "{}",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "$decodeUrl(msg.payload)",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2560,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"6c341edbdc85864c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6c341edbdc85864c",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "pair",
|
|
"splt": ",",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "",
|
|
"x": 2730,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"05632f2f980cdf7b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "05632f2f980cdf7b",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "split",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "pair",
|
|
"pt": "msg",
|
|
"to": "$split(msg.payload,'=')",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2890,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"9ef2d8276441403e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9ef2d8276441403e",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "key",
|
|
"property": "pair[0]",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "mompow",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "htemp",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 3050,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"99ba27f17405021f"
|
|
],
|
|
[
|
|
"0fb952b271143df6"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0fb952b271143df6",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "temperature",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "temperature",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "$number(msg.pair[1])-1",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3230,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"1717b4b42c3de1df"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "99ba27f17405021f",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "360ce5f1d0de3811",
|
|
"name": "power",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "power",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "$number(msg.pair[1])",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3210,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"1717b4b42c3de1df"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7efac7e387d141ec",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "api - BRP069B45 - metric",
|
|
"links": [
|
|
"031a6afd8300356a"
|
|
],
|
|
"x": 3735,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"876b1f20d9cf3e10"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ba235aab7dfb1657",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "api - BRP069B45 - metric error",
|
|
"mode": "link",
|
|
"links": [],
|
|
"x": 5435,
|
|
"y": 660,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "cfe63595d3b8995f",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "query",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "metrics[msg.bucket]['air conditioner']url",
|
|
"tot": "global"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "updated_payload",
|
|
"pt": "msg",
|
|
"to": "payload",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4250,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"d5788e29f1e344be"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "876b1f20d9cf3e10",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "measurement",
|
|
"property": "measurement",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "air conditioner",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 3900,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"8148c9d62d0a05ab"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8148c9d62d0a05ab",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "device",
|
|
"property": "devices[msg.bucket]['air conditioner']url.model",
|
|
"propertyType": "global",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "BRP069B45",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 4090,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"cfe63595d3b8995f"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f202d1365abe395c",
|
|
"type": "http request",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "",
|
|
"method": "GET",
|
|
"ret": "txt",
|
|
"paytoqs": false,
|
|
"url": "",
|
|
"persist": false,
|
|
"insecureHTTPParser": false,
|
|
"authType": "",
|
|
"senderr": false,
|
|
"headers": [],
|
|
"x": 5130,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"9d79f271f0274c74"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9d79f271f0274c74",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "status",
|
|
"property": "statusCode",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "neq",
|
|
"v": "200",
|
|
"vt": "num"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 5310,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"ed0961c2ec67452b",
|
|
"ba235aab7dfb1657"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ed0961c2ec67452b",
|
|
"type": "debug",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "api - BRP069B45 - metric error",
|
|
"active": false,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 5560,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "8fa6a7c7df79344c",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "check changes",
|
|
"property": "payload[msg.field]",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "neq",
|
|
"v": "updated_payload",
|
|
"vt": "msg"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 4700,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"efec7c8362bd6496"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d5788e29f1e344be",
|
|
"type": "link call",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "",
|
|
"links": [
|
|
"a4813736579f6a19"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 4460,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"8fa6a7c7df79344c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "efec7c8362bd6496",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "prepare query",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload[msg.field]",
|
|
"pt": "msg",
|
|
"to": "updated_payload",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "'pow='&(msg.payload.actif?1:0)&\t'&mode='&msg.payload.mode&\t'&adv='&msg.payload.advanced&\t'&stemp='&msg.payload.\"temperature setpoint\"&\t'&shum=0'&\t'&f_rate='&msg.payload.\"fan rate\"&\t'&f_dir='&msg.payload.\"fan direction\"",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "'http://'&msg.url&'/aircon/set_control_info?'&msg.payload",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "old",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "new",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "updated_payload",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "headsers",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "statusCode",
|
|
"pt": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4920,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"f202d1365abe395c",
|
|
"bc4daaee49052e86"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2c35832edfa0d2fc",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "query ac before sending order to see if there'are changes",
|
|
"info": "",
|
|
"x": 4090,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "1a5051a42ca6c504",
|
|
"type": "catch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "catch query timeout (see query)",
|
|
"scope": "group",
|
|
"uncaught": false,
|
|
"x": 4490,
|
|
"y": 600,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "bc4daaee49052e86",
|
|
"type": "debug",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e7dd5536e7ec485b",
|
|
"name": "api - BRP069B45 - metric",
|
|
"active": false,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 5170,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "786bfd43841bb244",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "control url",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "old_url",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "msg",
|
|
"dc": true
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "'http://'&msg.url&'/aircon/get_control_info'",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4040,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"f721ca03be8ff260"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f721ca03be8ff260",
|
|
"type": "http request",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "",
|
|
"method": "GET",
|
|
"ret": "txt",
|
|
"paytoqs": "ignore",
|
|
"url": "",
|
|
"tls": "",
|
|
"persist": false,
|
|
"proxy": "",
|
|
"insecureHTTPParser": false,
|
|
"authType": "",
|
|
"senderr": false,
|
|
"headers": [],
|
|
"x": 4230,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"0f9815dd4369b44e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f2a95a5b30167059",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "decode",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]",
|
|
"pt": "flow",
|
|
"to": "{}",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "$decodeUrl(msg.payload)",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4580,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"5d1d77696340830c",
|
|
"8f81968d65ec739b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5d1d77696340830c",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "pair",
|
|
"splt": ",",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "",
|
|
"property": "payload",
|
|
"x": 4750,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"983cd159a0b40113"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "983cd159a0b40113",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "split",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "pair",
|
|
"pt": "msg",
|
|
"to": "$split(msg.payload,'=')",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4910,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"37d6df803145f6b3"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "37d6df803145f6b3",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "key",
|
|
"property": "pair[0]",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "stemp",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "f_rate",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "f_dir",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "mode",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "pow",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "adv",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 7,
|
|
"x": 5070,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"dedd7481c1232f2b"
|
|
],
|
|
[
|
|
"221ee97bfed13f5d"
|
|
],
|
|
[
|
|
"f8b304d5bd41013d"
|
|
],
|
|
[
|
|
"ced32d247bfe4ecd"
|
|
],
|
|
[
|
|
"37b01079e497bc64"
|
|
],
|
|
[
|
|
"c63d0c615d60abc8"
|
|
],
|
|
[
|
|
"1af45cb185475ea3"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0f9815dd4369b44e",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "status",
|
|
"property": "statusCode",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "200",
|
|
"vt": "num"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 4410,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"f2a95a5b30167059"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "dedd7481c1232f2b",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "temperature setpoint",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]['temperature setpoint']",
|
|
"pt": "flow",
|
|
"to": "$number(msg.pair[1])",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5280,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "221ee97bfed13f5d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "fan rate",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]['fan rate']",
|
|
"pt": "flow",
|
|
"to": "pair[1]",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5240,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f8b304d5bd41013d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "fan direction",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]['fan direction']",
|
|
"pt": "flow",
|
|
"to": "pair[1]",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5250,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ced32d247bfe4ecd",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "mode",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]['mode']",
|
|
"pt": "flow",
|
|
"to": "$string(msg.pair[1])",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5230,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "37b01079e497bc64",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "actif",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]['actif']",
|
|
"pt": "flow",
|
|
"to": "msg.pair[1]=\"1\"",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5230,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "a4813736579f6a19",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "api - BRP069B45 - call",
|
|
"links": [],
|
|
"x": 3735,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"54880878ed729b66"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "54880878ed729b66",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "has url",
|
|
"property": "url",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "nnull"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 3870,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"786bfd43841bb244"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "aa72fc0611d255ca",
|
|
"type": "join",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "",
|
|
"mode": "auto",
|
|
"build": "object",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"key": "topic",
|
|
"joiner": "\\n",
|
|
"joinerType": "str",
|
|
"useparts": true,
|
|
"accumulate": true,
|
|
"timeout": "",
|
|
"count": "",
|
|
"reduceRight": false,
|
|
"reduceExp": "",
|
|
"reduceInit": "",
|
|
"reduceInitType": "",
|
|
"reduceFixup": "",
|
|
"x": 5490,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"2aca27cd78517955"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1af45cb185475ea3",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "null",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "null",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5230,
|
|
"y": 1140,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2aca27cd78517955",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "100 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "100",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 5660,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"78056d2e854d07b8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "78056d2e854d07b8",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "from flow",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "#:(onMemory)::ac[msg.bucket]",
|
|
"tot": "flow"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "old_url",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "headers",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "responseUrl",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "redirectList",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "retry",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "pair",
|
|
"pt": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5820,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"8919c8979775e43c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8919c8979775e43c",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "api - BRP069B45 - call",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 5955,
|
|
"y": 840,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "bbfde2c30bb24f53",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "use flow.ac to memorise values during split",
|
|
"info": "",
|
|
"x": 4860,
|
|
"y": 960,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "2efdb634d6eff450",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "See : https://github.com/ehjortberg/daikin-control",
|
|
"info": "",
|
|
"x": 3900,
|
|
"y": 780,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "d1e219d53c99be45",
|
|
"type": "debug",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "timeout air conditioner",
|
|
"active": false,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 4500,
|
|
"y": 780,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "17db5a87405dc4cb",
|
|
"type": "catch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "catch query timeout",
|
|
"scope": "group",
|
|
"uncaught": false,
|
|
"x": 4250,
|
|
"y": 780,
|
|
"wires": [
|
|
[
|
|
"d1e219d53c99be45"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8f81968d65ec739b",
|
|
"type": "debug",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "query url BRP069B45 response",
|
|
"active": false,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 4830,
|
|
"y": 780,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "c63d0c615d60abc8",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "advanced",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "#:(onMemory)::ac[msg.bucket]['advanced']",
|
|
"pt": "flow",
|
|
"to": "$string(msg.pair[1])",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5240,
|
|
"y": 1080,
|
|
"wires": [
|
|
[
|
|
"aa72fc0611d255ca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "68aeddd9bd26aa5b",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c845a1c03f4d92c1",
|
|
"name": "not working",
|
|
"info": "",
|
|
"x": 5450,
|
|
"y": 1080,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "16f4d5aef15c6bdd",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "api - BRP069B45 - update thermostat to air conditioner",
|
|
"links": [
|
|
"031a6afd8300356a"
|
|
],
|
|
"x": 1615,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"9e6b8f297621f50f"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "08048d875b38ceb8",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "trigger",
|
|
"property": "path",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "msg.bucket&'/cible/pilot'",
|
|
"vt": "jsonata"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "msg.bucket&'/air conditioner/actif'",
|
|
"vt": "jsonata"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "msg.bucket&'/thermostat/temperature setpoint'",
|
|
"vt": "jsonata"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 3,
|
|
"x": 1970,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"a76580bfbb24a34e",
|
|
"8296521e661aabf6"
|
|
],
|
|
[
|
|
"e314d68876ac9938"
|
|
],
|
|
[
|
|
"1d16f018c9c5ace2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d5cdd8f60040d125",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "api - BRP069B45 - update thermostat to air conditioner",
|
|
"mode": "link",
|
|
"links": [
|
|
"206c1fb4a48067df"
|
|
],
|
|
"x": 2535,
|
|
"y": 1020,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "1d16f018c9c5ace2",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "air conditioner / temperature setpoint",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "temperature setpoint",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "metrics[msg.bucket]thermostat['temperature setpoint']",
|
|
"tot": "global"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "repeat",
|
|
"pt": "msg",
|
|
"to": "true",
|
|
"tot": "bool"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2230,
|
|
"y": 1080,
|
|
"wires": [
|
|
[
|
|
"d5cdd8f60040d125"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "a76580bfbb24a34e",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "ait conditioner / actif",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "actif",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2180,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"517ffa31c1e561c3"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e314d68876ac9938",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "thermostat / pilot",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "thermostat",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "pilot",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2170,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"d5cdd8f60040d125"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "192d06a39b1a1f66",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "if true",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "true"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2390,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"d5cdd8f60040d125"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "517ffa31c1e561c3",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "150 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "150",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 2400,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"d5cdd8f60040d125"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8296521e661aabf6",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "air conditioner / mode",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "mode",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "mode",
|
|
"pt": "msg",
|
|
"to": "metrics[msg.bucket]thermostat['operating mode']",
|
|
"tot": "global"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "msg.mode='cold'?'3':'4'",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2180,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"192d06a39b1a1f66"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b45f1179a641d133",
|
|
"type": "catch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6c796c0f0a2e4a4b",
|
|
"name": "catch error",
|
|
"scope": null,
|
|
"uncaught": true,
|
|
"x": 620,
|
|
"y": 60,
|
|
"wires": [
|
|
[
|
|
"3df393955c61492b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3df393955c61492b",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6c796c0f0a2e4a4b",
|
|
"name": "topic",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "topic",
|
|
"pt": "msg",
|
|
"to": "api",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 790,
|
|
"y": 60,
|
|
"wires": [
|
|
[
|
|
"7a47df709c00596e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7a47df709c00596e",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6c796c0f0a2e4a4b",
|
|
"name": "catch error",
|
|
"mode": "link",
|
|
"links": [
|
|
"a52f0e788cd4dca3"
|
|
],
|
|
"x": 915,
|
|
"y": 60,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "42747e8a5076b140",
|
|
"type": "debug",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "api - ecu-c - source",
|
|
"active": false,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 4450,
|
|
"y": 1440,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "0b2db761754711da",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "power",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "payload.each_system_power",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "power",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4050,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"ba1b2e019bac57a0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "645a5c37a7442a3a",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "api - ecu-c - source",
|
|
"mode": "link",
|
|
"links": [
|
|
"206c1fb4a48067df"
|
|
],
|
|
"x": 4375,
|
|
"y": 1500,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "ba1b2e019bac57a0",
|
|
"type": "function",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "cleanup",
|
|
"func": "var msg = msg;\nvar newmsg = {};\n\nnewmsg.payload = msg.payload\nnewmsg.bucket = msg.bucket;\nnewmsg.measurement = 'photovoltaic';\nnewmsg.field = msg.field;\n//newmsg.repeat = true;\n\nreturn newmsg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 4240,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"42747e8a5076b140",
|
|
"645a5c37a7442a3a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6b69eabc1b4262e7",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "api refresh rate is by 5 minutes",
|
|
"info": "",
|
|
"x": 2110,
|
|
"y": 1500,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "ea470f779e4827f9",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "url",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "topic",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "'http://'&msg.url&'/index.php/meter/old_meter_power_graph'",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "limit",
|
|
"pt": "msg",
|
|
"to": "$millis()-300000",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2470,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"b1329a14210f3a69"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b1329a14210f3a69",
|
|
"type": "http request",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "",
|
|
"method": "GET",
|
|
"ret": "txt",
|
|
"paytoqs": false,
|
|
"url": "",
|
|
"persist": false,
|
|
"insecureHTTPParser": false,
|
|
"authType": "",
|
|
"senderr": false,
|
|
"headers": [],
|
|
"x": 2650,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"2c5ef02ab2fd4b04"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2c5ef02ab2fd4b04",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "status",
|
|
"property": "statusCode",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "200",
|
|
"vt": "num"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2830,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"6f09c4d0fd650430"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6f09c4d0fd650430",
|
|
"type": "json",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "",
|
|
"property": "payload",
|
|
"action": "",
|
|
"pretty": false,
|
|
"x": 2990,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"476acc2dcd7993ae",
|
|
"7f10b42898985d21"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "735d536496e9ddda",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "",
|
|
"splt": "\\n",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "",
|
|
"x": 3730,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"9c8f46ffc099ab23"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fcb1ab6455b06283",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "count",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "count",
|
|
"pt": "msg",
|
|
"to": "$count(msg.payload)-1",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3390,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"2242e0f8f199a633"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2242e0f8f199a633",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "has result",
|
|
"property": "count",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "gte",
|
|
"v": "0",
|
|
"vt": "num"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 3560,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"735d536496e9ddda"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "476acc2dcd7993ae",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "production power",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "payload.power1",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "production power",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3190,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"fcb1ab6455b06283"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9c8f46ffc099ab23",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "recent",
|
|
"property": "payload.time",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "gt",
|
|
"v": "limit",
|
|
"vt": "msg"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 3890,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"4433605232813be4"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7f10b42898985d21",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "import power",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "payload.power2",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "import power",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3170,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"fcb1ab6455b06283"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4433605232813be4",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "payload",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "payload.powerA",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 4060,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"ba1b2e019bac57a0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "626fbd5643a10cad",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "photovoltaic / power / number / 0",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "photovoltaic",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "power",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 950,
|
|
"y": 1560,
|
|
"wires": [
|
|
[
|
|
"13df18e469dd5933"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d05a833bc0944694",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "photovoltaic / production power / number / 0",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "photovoltaic",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "production power",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 990,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"13df18e469dd5933"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6bc13c7cf7683462",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "photovoltaic / import power / number / 0",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "photovoltaic",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "import power",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 980,
|
|
"y": 1680,
|
|
"wires": [
|
|
[
|
|
"13df18e469dd5933"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "de60b0422ab7f7a1",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "photovoltaic / url / text / *",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "photovoltaic",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "text",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "msg.default?msg.default:''",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 930,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"13df18e469dd5933"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d59e71f32dca20fe",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "api - ecu-c - device",
|
|
"links": [
|
|
"546f190f3ec0c90d"
|
|
],
|
|
"x": 575,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"9a4b65c56551cc5a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9a4b65c56551cc5a",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "model",
|
|
"property": "model",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "ecu-c",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 710,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"196a9e3b2963d54d",
|
|
"de60b0422ab7f7a1",
|
|
"626fbd5643a10cad",
|
|
"d05a833bc0944694",
|
|
"6bc13c7cf7683462"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "196a9e3b2963d54d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"d": true,
|
|
"g": "709f263740a61967",
|
|
"name": "brand",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "photovoltaic",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "apsystems",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 870,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"13df18e469dd5933"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "13df18e469dd5933",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "protocol",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1300,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"2ed136ebd92695c1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2ed136ebd92695c1",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "709f263740a61967",
|
|
"name": "api - ecu-c - device",
|
|
"mode": "link",
|
|
"links": [
|
|
"3e1b4213132404be"
|
|
],
|
|
"x": 1435,
|
|
"y": 1440,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "403ed8a53ec05449",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "todo: waiying for new tore...",
|
|
"info": "",
|
|
"x": 3800,
|
|
"y": 1500,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "487c23a4a5a0bdc3",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "api- ecu-c - get url",
|
|
"links": [],
|
|
"x": 1615,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"61ad71f1a6e26708"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "61ad71f1a6e26708",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"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"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1760,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"6e5199207c64c314"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6e5199207c64c314",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "",
|
|
"splt": "\\n",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "bucket",
|
|
"x": 1940,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"747be65a91f87907"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "747be65a91f87907",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "measurement",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "hask",
|
|
"v": "photovoltaic",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2130,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"9ab1093bbdb724bd"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9ab1093bbdb724bd",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "device",
|
|
"property": "devices[msg.bucket].photovoltaic.url.model",
|
|
"propertyType": "global",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "ecu-c",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2320,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"1630d20b18ae1ca5"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1630d20b18ae1ca5",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "50 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "50",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 2480,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"da2aec8e2b2edecf"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "da2aec8e2b2edecf",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "get url",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "payload.photovoltaic.url",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "old.payload",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "parts",
|
|
"pt": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2640,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"6e55943b9d5ef0ee"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6e55943b9d5ef0ee",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "c2f0571e97f072d9",
|
|
"name": "api- ecu-c - get url",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 2765,
|
|
"y": 1620,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "01722dc818a6feda",
|
|
"type": "link call",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "",
|
|
"links": [
|
|
"487c23a4a5a0bdc3"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 2270,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"ea470f779e4827f9"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0df2f6e07a121689",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a839571a87dd2aa6",
|
|
"name": "api - ecu-c - model",
|
|
"links": [
|
|
"9cb906bf8066d37e"
|
|
],
|
|
"x": 135,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"c58419a94fdc0937"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c58419a94fdc0937",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a839571a87dd2aa6",
|
|
"name": "model",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "apsystems",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "model",
|
|
"pt": "msg",
|
|
"to": "ecu-c",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "api",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "photovoltaic",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"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": 270,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"ac9c9b4e7caf4c7c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ac9c9b4e7caf4c7c",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a839571a87dd2aa6",
|
|
"name": "api - ecu-c - model",
|
|
"mode": "link",
|
|
"links": [
|
|
"94aa726ce8973d2c"
|
|
],
|
|
"x": 395,
|
|
"y": 1440,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "40de83c24a607884",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "56543977028aa001",
|
|
"name": "api - BRP069B45 - model",
|
|
"links": [
|
|
"9cb906bf8066d37e"
|
|
],
|
|
"x": 135,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"291134c3ae70e68a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "291134c3ae70e68a",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "56543977028aa001",
|
|
"name": "model",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "daikin",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "model",
|
|
"pt": "msg",
|
|
"to": "BRP069B45",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "api",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"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": 270,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"72a29139af6e48a9"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "72a29139af6e48a9",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "56543977028aa001",
|
|
"name": "api - BRP069B45 - model",
|
|
"mode": "link",
|
|
"links": [
|
|
"94aa726ce8973d2c"
|
|
],
|
|
"x": 395,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "97176af7973174dd",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "96eb2a79eb4c26b2",
|
|
"name": "photovoltaic / url",
|
|
"info": "",
|
|
"x": 200,
|
|
"y": 1520,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "e31b48fc04ade3f3",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e9ac143262e4b9a0",
|
|
"name": "api - REOLINK - model",
|
|
"links": [
|
|
"9cb906bf8066d37e"
|
|
],
|
|
"x": 135,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"3dc94638f08bfde6"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3dc94638f08bfde6",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e9ac143262e4b9a0",
|
|
"name": "model",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "reolink",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "model",
|
|
"pt": "msg",
|
|
"to": "REOLINK",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "api",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "camera",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "url",
|
|
"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": 270,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"f5d43b55f6998570"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f5d43b55f6998570",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e9ac143262e4b9a0",
|
|
"name": "api - REOLINK - model",
|
|
"mode": "link",
|
|
"links": [
|
|
"94aa726ce8973d2c"
|
|
],
|
|
"x": 395,
|
|
"y": 240,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "5616c2ce5c283bbd",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "api - ecu-c - source",
|
|
"links": [
|
|
"f1a09e5456fe03fe"
|
|
],
|
|
"x": 1615,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"14040e777a789a38"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "14040e777a789a38",
|
|
"type": "gate",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "gate source",
|
|
"controlTopic": "gate source",
|
|
"defaultState": "closed",
|
|
"openCmd": "open",
|
|
"closeCmd": "close",
|
|
"toggleCmd": "toggle",
|
|
"defaultCmd": "default",
|
|
"statusCmd": "status",
|
|
"persist": false,
|
|
"storeName": "default",
|
|
"x": 2050,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"01722dc818a6feda"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5b23a7e32b5b478a",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "clean",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "topic",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1870,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"14040e777a789a38"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8d88dcb327d3404d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "b72b30ef40073df1",
|
|
"name": "cpu usage / server* / number / 0",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "cpu usage",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "msg.field?msg.field:'server'",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 950,
|
|
"y": 2040,
|
|
"wires": [
|
|
[
|
|
"4d37e0a09b4ce70b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "efcf7b575d53e6c0",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "b72b30ef40073df1",
|
|
"name": "overload / server* / boolean / false",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "overload",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "msg.field?msg.field:'server'",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "boolean",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "false",
|
|
"tot": "bool"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 960,
|
|
"y": 2100,
|
|
"wires": [
|
|
[
|
|
"4d37e0a09b4ce70b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0b957131451db9ef",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "api - nodered - source",
|
|
"links": [
|
|
"004bb30c27c94fb4"
|
|
],
|
|
"x": 1535,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"f8309e72971c027c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f8309e72971c027c",
|
|
"type": "cpu",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "",
|
|
"msgCore": false,
|
|
"msgOverall": true,
|
|
"msgArray": false,
|
|
"msgTemp": false,
|
|
"x": 1690,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"f6323a0b9073240d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1f263044e8a9dd75",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "set metric",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "cpu usage",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "old_payload",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "old_payload",
|
|
"pt": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2800,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"17e9b81d88b1604a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "17e9b81d88b1604a",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "api - nodered - source",
|
|
"mode": "link",
|
|
"links": [
|
|
"206c1fb4a48067df"
|
|
],
|
|
"x": 2935,
|
|
"y": 1980,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "da360449dd96785f",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "4b0e15b62cc0c407",
|
|
"name": "api - nodered - model",
|
|
"links": [
|
|
"9cb906bf8066d37e"
|
|
],
|
|
"x": 135,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"09dc99fbf771a617"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "09dc99fbf771a617",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "4b0e15b62cc0c407",
|
|
"name": "model",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "nodered",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "model",
|
|
"pt": "msg",
|
|
"to": "nodered",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "api",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "cpu usage",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "server",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "format",
|
|
"pt": "msg",
|
|
"to": "number",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "default",
|
|
"pt": "msg",
|
|
"to": "0",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 270,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"07107ca09790b060"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "07107ca09790b060",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "4b0e15b62cc0c407",
|
|
"name": "api - nodered - model",
|
|
"mode": "link",
|
|
"links": [
|
|
"94aa726ce8973d2c"
|
|
],
|
|
"x": 395,
|
|
"y": 1980,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "c9eb3c5aa51745b0",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "b72b30ef40073df1",
|
|
"name": "api - nodered - device",
|
|
"links": [
|
|
"546f190f3ec0c90d"
|
|
],
|
|
"x": 575,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"968b644498d1743a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "968b644498d1743a",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "b72b30ef40073df1",
|
|
"name": "model",
|
|
"property": "model",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "nodered",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 710,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"6469fe2f046f5112",
|
|
"8d88dcb327d3404d",
|
|
"efcf7b575d53e6c0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6469fe2f046f5112",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"d": true,
|
|
"g": "b72b30ef40073df1",
|
|
"name": "brand",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "cpu usage",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "field",
|
|
"pt": "msg",
|
|
"to": "server",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "brand",
|
|
"pt": "msg",
|
|
"to": "nodered",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 870,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"4d37e0a09b4ce70b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4d37e0a09b4ce70b",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "b72b30ef40073df1",
|
|
"name": "protocol",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "protocol",
|
|
"pt": "msg",
|
|
"to": "nodered",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1220,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"f064e16a50e5d575"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f064e16a50e5d575",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "b72b30ef40073df1",
|
|
"name": "api - nodered - device",
|
|
"mode": "link",
|
|
"links": [
|
|
"3e1b4213132404be"
|
|
],
|
|
"x": 1355,
|
|
"y": 1980,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "f6323a0b9073240d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"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"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1890,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"20d7953a9ead353a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "20d7953a9ead353a",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "buckets",
|
|
"splt": "\\n",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "bucket",
|
|
"property": "payload",
|
|
"x": 2080,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"60efdc17c7f5ad29"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "60efdc17c7f5ad29",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "measurement",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "hask",
|
|
"v": "cpu usage",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2280,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"babc2bc27fa9f0e2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "808db065967c9e6d",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "device",
|
|
"property": "devices[msg.bucket]['cpu usage'][msg.field]model",
|
|
"propertyType": "global",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "nodered",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2630,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"1f263044e8a9dd75"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "babc2bc27fa9f0e2",
|
|
"type": "split",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "6402ef93b3ea92bd",
|
|
"name": "fields",
|
|
"splt": "\\n",
|
|
"spltType": "str",
|
|
"arraySplt": 1,
|
|
"arraySpltType": "len",
|
|
"stream": false,
|
|
"addname": "field",
|
|
"property": "payload['cpu usage']",
|
|
"x": 2470,
|
|
"y": 1980,
|
|
"wires": [
|
|
[
|
|
"808db065967c9e6d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5b5a2f2cb0f13d57",
|
|
"type": "comment",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "f415bb3d48bbe3f8",
|
|
"name": "cpu usage / server*",
|
|
"info": "",
|
|
"x": 210,
|
|
"y": 2060,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "97aa2e016643bfbd",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "room - ui - air conditioner - load",
|
|
"links": [
|
|
"9e4bfee0db3051d4"
|
|
],
|
|
"x": 6135,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"2a4f2715f401f8f2",
|
|
"044f28fb3df06b13"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "383c38e98cd05755",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "room - ui - air conditioner - metric",
|
|
"links": [
|
|
"b6323e1460f6f50c"
|
|
],
|
|
"x": 6135,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"12fca45ce9ab2abb"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "baadaeea2e2d4f95",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "reset",
|
|
"rules": [],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6830,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"327f0ed7b5fa48d2",
|
|
"f68f5c75e58e22cb",
|
|
"dcfb0cd127aa904e",
|
|
"22c8ba7a5b818ab1",
|
|
"4e080e4032b4c4c8",
|
|
"0bb31a889d427f54",
|
|
"e6cf92eef6f506ec",
|
|
"4205795bed6b3290",
|
|
"a8dd4b383d7eb632"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c5d646bd69c37865",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "set metric",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "measurement",
|
|
"pt": "msg",
|
|
"to": "air conditioner",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 7540,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"9d8b8d237e2704ea"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9d8b8d237e2704ea",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "room - ui - air conditioner - metric",
|
|
"mode": "link",
|
|
"links": [
|
|
"2690f4e06626ebda"
|
|
],
|
|
"x": 7675,
|
|
"y": 840,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "4da4c768067c032b",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "field",
|
|
"property": "field",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "actif",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "mode",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "fan rate",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "fan direction",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "temperature setpoint",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "advanced",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 6,
|
|
"x": 6670,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"327f0ed7b5fa48d2",
|
|
"988c34fbce846dcc"
|
|
],
|
|
[
|
|
"738201cd36aef02d"
|
|
],
|
|
[
|
|
"9d154c219f206faf"
|
|
],
|
|
[
|
|
"6b1aeadab15d8e8c"
|
|
],
|
|
[
|
|
"0ecce96328bfdde4",
|
|
"a8dd4b383d7eb632"
|
|
],
|
|
[
|
|
"88a37cbdf2f5f465",
|
|
"ad3172b46080261c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "12fca45ce9ab2abb",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "measurement",
|
|
"property": "measurement",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "air conditioner",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 6300,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"2a45ad61a4b3d598",
|
|
"be448f42064357f1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "327f0ed7b5fa48d2",
|
|
"type": "ui-switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "power",
|
|
"label": "",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"order": 2,
|
|
"width": "1",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"topic": "actif",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"className": "",
|
|
"onvalue": "true",
|
|
"onvalueType": "bool",
|
|
"onicon": "fan",
|
|
"oncolor": "blue",
|
|
"offvalue": "false",
|
|
"offvalueType": "bool",
|
|
"officon": "fan-off",
|
|
"offcolor": "grey",
|
|
"x": 7270,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"c5d646bd69c37865"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f68f5c75e58e22cb",
|
|
"type": "ui-dropdown",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"name": "mode",
|
|
"label": "Mode",
|
|
"tooltip": "",
|
|
"order": 5,
|
|
"width": "2",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"multiple": false,
|
|
"chips": false,
|
|
"clearable": false,
|
|
"options": [
|
|
{
|
|
"label": "Auto",
|
|
"value": "0",
|
|
"type": "str"
|
|
}
|
|
],
|
|
"payload": "",
|
|
"topic": "mode",
|
|
"topicType": "str",
|
|
"className": "",
|
|
"typeIsComboBox": true,
|
|
"x": 7270,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"c5d646bd69c37865"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "a8dd4b383d7eb632",
|
|
"type": "ui-slider",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"name": "temperature setpoint",
|
|
"label": "",
|
|
"tooltip": "",
|
|
"order": 9,
|
|
"width": "4",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"outs": "end",
|
|
"topic": "temperature setpoint",
|
|
"topicType": "str",
|
|
"thumbLabel": true,
|
|
"min": "18",
|
|
"max": "31",
|
|
"step": "1",
|
|
"className": "",
|
|
"x": 7320,
|
|
"y": 1080,
|
|
"wires": [
|
|
[
|
|
"c5d646bd69c37865"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4205795bed6b3290",
|
|
"type": "ui-text",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"order": 8,
|
|
"width": "2",
|
|
"height": "1",
|
|
"name": "temperature setpoint (txt)",
|
|
"label": "",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-right",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"className": "",
|
|
"x": 7050,
|
|
"y": 1080,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "2a45ad61a4b3d598",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "100 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "100",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 6500,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"4da4c768067c032b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "dcfb0cd127aa904e",
|
|
"type": "ui-dropdown",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"name": "fan rate",
|
|
"label": "Ventilation",
|
|
"tooltip": "",
|
|
"order": 6,
|
|
"width": "2",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"multiple": false,
|
|
"options": [
|
|
{
|
|
"label": "Auto",
|
|
"value": "A",
|
|
"type": "str"
|
|
}
|
|
],
|
|
"payload": "",
|
|
"topic": "fan rate",
|
|
"topicType": "str",
|
|
"className": "",
|
|
"x": 7280,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"c5d646bd69c37865"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "22c8ba7a5b818ab1",
|
|
"type": "ui-dropdown",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"name": "fan direction",
|
|
"label": "Direction",
|
|
"tooltip": "",
|
|
"order": 7,
|
|
"width": "2",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"multiple": false,
|
|
"options": [
|
|
{
|
|
"label": "Normal",
|
|
"value": "0",
|
|
"type": "str"
|
|
}
|
|
],
|
|
"payload": "",
|
|
"topic": "fan direction",
|
|
"topicType": "str",
|
|
"className": "",
|
|
"x": 7290,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"c5d646bd69c37865"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4e080e4032b4c4c8",
|
|
"type": "ui-text",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"order": 1,
|
|
"width": "5",
|
|
"height": "1",
|
|
"name": "power (txt)",
|
|
"label": "",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-right",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"className": "",
|
|
"x": 7010,
|
|
"y": 840,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "988c34fbce846dcc",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "format",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "msg.payload?'Climatiseur en fonction':\"Climatiseur à l'arrêt\"",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6830,
|
|
"y": 840,
|
|
"wires": [
|
|
[
|
|
"4e080e4032b4c4c8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "88a37cbdf2f5f465",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "format",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "'Configuration '&(msg.payload=\"2\"?'puissant':(msg.payload=\"12\"?'économique':'normal'))",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6830,
|
|
"y": 1140,
|
|
"wires": [
|
|
[
|
|
"e6cf92eef6f506ec"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e6cf92eef6f506ec",
|
|
"type": "ui-text",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"order": 3,
|
|
"width": "5",
|
|
"height": "1",
|
|
"name": "advanced (txt)",
|
|
"label": "",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-right",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"className": "",
|
|
"x": 7020,
|
|
"y": 1140,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "0bb31a889d427f54",
|
|
"type": "ui-switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "advanced",
|
|
"label": "",
|
|
"group": "3b3e6fe6f656ea0e",
|
|
"order": 4,
|
|
"width": "1",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"style": "",
|
|
"className": "",
|
|
"onvalue": "true",
|
|
"onvalueType": "bool",
|
|
"onicon": "fan-alert",
|
|
"oncolor": "teal",
|
|
"offvalue": "false",
|
|
"offvalueType": "bool",
|
|
"officon": "fan",
|
|
"offcolor": "grey",
|
|
"x": 7440,
|
|
"y": 1140,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "ad3172b46080261c",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "format",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "msg.payload=\"2\"?true:(msg.payload=\"12\"?true:false)",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 7270,
|
|
"y": 1140,
|
|
"wires": [
|
|
[
|
|
"0bb31a889d427f54"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0ecce96328bfdde4",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "format",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "'Consigne à '&msg.payload&'°'",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6830,
|
|
"y": 1080,
|
|
"wires": [
|
|
[
|
|
"4205795bed6b3290"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2a4f2715f401f8f2",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "50 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "50",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 6270,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"baadaeea2e2d4f95"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "738201cd36aef02d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "options",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "options",
|
|
"pt": "msg",
|
|
"to": "[\t {'label':'Froid','value':'3'},\t {'label':'Chaud','value':'4'},\t {'label':'Ventilation','value':'6'},\t {'label':'Auto (0)','value':'0'},\t {'label':'Auto (1)','value':'1'},\t {'label':'Auto (7)','value':'7'}\t]",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6840,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"f68f5c75e58e22cb"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9d154c219f206faf",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "options",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "options",
|
|
"pt": "msg",
|
|
"to": "[\t {'label':'Silence','value':'B'},\t {'label':'Froid','value':'3'},\t {'label':'Chaud','value':'4'},\t {'label':'Ventilation (0)','value':'6'},\t {'label':'Auto','value':'A'}\t]",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6840,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"dcfb0cd127aa904e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6b1aeadab15d8e8c",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "options",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "options",
|
|
"pt": "msg",
|
|
"to": "[\t {'label':'Normal','value':'0'},\t {'label':'Vertical','value':'1'}\t]",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6840,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"22c8ba7a5b818ab1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "613dd73590f50433",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "room - ui - photovoltaic - load",
|
|
"links": [
|
|
"9e4bfee0db3051d4"
|
|
],
|
|
"x": 4735,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"c99676ea32c261f1",
|
|
"6e7361c72d5382d3"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "150f3acd97d50753",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "room - ui - photovoltaic - metric",
|
|
"links": [
|
|
"b6323e1460f6f50c"
|
|
],
|
|
"x": 4735,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"8db09f7819d2fc6d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8db09f7819d2fc6d",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "measurement",
|
|
"property": "measurement",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "photovoltaic",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 4900,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"5383281dc0065107",
|
|
"10ded0e86fc42cbf"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6a027347453d83c3",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "payload",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "'Production à '&msg.payload&'W'",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "class",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5440,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"342b305e6299276c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "342b305e6299276c",
|
|
"type": "ui-text",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"group": "63f4993fe010ac66",
|
|
"order": 1,
|
|
"width": "5",
|
|
"height": "1",
|
|
"name": "production power (txt)",
|
|
"label": "",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-right",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"className": "",
|
|
"x": 5660,
|
|
"y": 1620,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "a58b09ccb8f97924",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "field",
|
|
"property": "field",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "production power",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "import power",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 5270,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"6a027347453d83c3",
|
|
"0fc41ad2ed3f9bc2"
|
|
],
|
|
[
|
|
"302b661de508f21f",
|
|
"fa1e9d9b2b5cc0b2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "28ae56ce57b30c92",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "reset",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "false",
|
|
"tot": "bool"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5450,
|
|
"y": 1560,
|
|
"wires": [
|
|
[
|
|
"342b305e6299276c",
|
|
"fd96856199805188",
|
|
"677d09c83dba1952"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c99676ea32c261f1",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "50 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "150",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 4870,
|
|
"y": 1560,
|
|
"wires": [
|
|
[
|
|
"28ae56ce57b30c92"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5383281dc0065107",
|
|
"type": "delay",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "100 ms",
|
|
"pauseType": "delay",
|
|
"timeout": "100",
|
|
"timeoutUnits": "milliseconds",
|
|
"rate": "1",
|
|
"nbRateUnits": "1",
|
|
"rateUnits": "second",
|
|
"randomFirst": "1",
|
|
"randomLast": "5",
|
|
"randomUnits": "seconds",
|
|
"drop": false,
|
|
"allowrate": false,
|
|
"outputs": 1,
|
|
"x": 5100,
|
|
"y": 1620,
|
|
"wires": [
|
|
[
|
|
"a58b09ccb8f97924"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "302b661de508f21f",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "payload",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "(msg.payload>0?'Importation à ':'Exportation à ')&$abs(msg.payload)&'W'",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "class",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5440,
|
|
"y": 1740,
|
|
"wires": [
|
|
[
|
|
"fd96856199805188"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fd96856199805188",
|
|
"type": "ui-text",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"group": "63f4993fe010ac66",
|
|
"order": 3,
|
|
"width": "5",
|
|
"height": "1",
|
|
"name": "import power (txt)",
|
|
"label": "",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-right",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"className": "",
|
|
"x": 5650,
|
|
"y": 1740,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "677d09c83dba1952",
|
|
"type": "ui-switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "import power (icon)",
|
|
"label": "",
|
|
"group": "63f4993fe010ac66",
|
|
"order": 4,
|
|
"width": "1",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"style": "",
|
|
"className": "",
|
|
"onvalue": "true",
|
|
"onvalueType": "bool",
|
|
"onicon": "meter-electric",
|
|
"oncolor": "red",
|
|
"offvalue": "false",
|
|
"offvalueType": "bool",
|
|
"officon": "meter-electric-outline",
|
|
"offcolor": "blue",
|
|
"x": 5650,
|
|
"y": 1800,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "fa1e9d9b2b5cc0b2",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "payload",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "$boolean(msg.payload)",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5440,
|
|
"y": 1800,
|
|
"wires": [
|
|
[
|
|
"677d09c83dba1952"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0fc41ad2ed3f9bc2",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "payload",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "msg.payload<10",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5440,
|
|
"y": 1680,
|
|
"wires": [
|
|
[
|
|
"6e31066cb8bc35e6"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6e31066cb8bc35e6",
|
|
"type": "ui-switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "production power (icon)",
|
|
"label": "",
|
|
"group": "63f4993fe010ac66",
|
|
"order": 2,
|
|
"width": "1",
|
|
"height": "1",
|
|
"passthru": false,
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"style": "",
|
|
"className": "",
|
|
"onvalue": "true",
|
|
"onvalueType": "bool",
|
|
"onicon": "meter-electric",
|
|
"oncolor": "red",
|
|
"offvalue": "false",
|
|
"offvalueType": "bool",
|
|
"officon": "meter-electric-outline",
|
|
"offcolor": "blue",
|
|
"x": 5670,
|
|
"y": 1680,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "24f76309a6dfe14a",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "select field",
|
|
"property": "field",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "url",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "rstp",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 1890,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"78f2cb047057edc0",
|
|
"4990423c8f36ea2d"
|
|
],
|
|
[
|
|
"4990423c8f36ea2d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4adc84859872765c",
|
|
"type": "trigger",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "every second",
|
|
"op1": "",
|
|
"op2": "0",
|
|
"op1type": "pay",
|
|
"op2type": "str",
|
|
"duration": "-1",
|
|
"extend": false,
|
|
"overrideDelay": false,
|
|
"units": "s",
|
|
"reset": "",
|
|
"bytopic": "all",
|
|
"topic": "topic",
|
|
"outputs": 1,
|
|
"x": 2450,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"ef4532a3ebf0b36e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "78f2cb047057edc0",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "url",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "payload",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "class",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2070,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"8aa78c963092f63a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ef4532a3ebf0b36e",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "check url",
|
|
"property": "url",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "nempty"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 2640,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"967fea7a3b32f198"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "967fea7a3b32f198",
|
|
"type": "http request",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "query camera url",
|
|
"method": "GET",
|
|
"ret": "bin",
|
|
"paytoqs": "ignore",
|
|
"url": "",
|
|
"tls": "",
|
|
"persist": false,
|
|
"proxy": "",
|
|
"insecureHTTPParser": false,
|
|
"authType": "",
|
|
"senderr": false,
|
|
"headers": [],
|
|
"x": 2850,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"16094297767ce839"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "16094297767ce839",
|
|
"type": "base64",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "",
|
|
"action": "str",
|
|
"property": "payload",
|
|
"x": 3060,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"263b6e6e05263288"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d1904515488ddaf4",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "room - ui - camera - load",
|
|
"links": [
|
|
"9e4bfee0db3051d4"
|
|
],
|
|
"x": 1475,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"6986b6056378b809",
|
|
"c2aa1840a5deddbf"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "725065af055abe45",
|
|
"type": "link in",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "room - ui - camera - metric",
|
|
"links": [
|
|
"b6323e1460f6f50c"
|
|
],
|
|
"x": 1475,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"fb170cb858137be7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fb170cb858137be7",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "check measurement",
|
|
"property": "measurement",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "camera",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 1660,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"24f76309a6dfe14a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "263b6e6e05263288",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "image to payload",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "'data:image/png;base64,'&msg.payload",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 3270,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"b60115a1fd023b76"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b60115a1fd023b76",
|
|
"type": "ui-template",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"group": "0083c332a401849d",
|
|
"page": "",
|
|
"ui": "",
|
|
"name": "image",
|
|
"order": 1,
|
|
"width": "6",
|
|
"height": "7",
|
|
"head": "",
|
|
"format": "<template>\n <img ref=\"iotnode-camera\" class=\"\" alt=\"Aucune camera\" width=\"100%\" src=\"\" />\n</template>\n\n<script>\nexport default {\n name: 'MyCamera',\n mounted () {\n this.$socket.on('msg-input:' + this.id, (msg) => {\n // get the Video's DOM element\n const iotnodecamera = this.$refs['iotnode-camera']\n\n if (msg.class==='remove') {\n iotnodecamera.class = 'remove'\n } else {\n iotnodecamera.class = ''\n iotnodecamera.src = msg.payload\n }\n })\n },\n unmounted () {\n this.$socket.off(`msg-input:${this.id}`)\n }\n}\n</script>",
|
|
"storeOutMessages": true,
|
|
"passthru": true,
|
|
"resendOnRefresh": true,
|
|
"templateScope": "local",
|
|
"className": "",
|
|
"x": 3470,
|
|
"y": 360,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "c2aa1840a5deddbf",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "to empty",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2060,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"b60115a1fd023b76",
|
|
"62c1bb0cb832960f"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "62c1bb0cb832960f",
|
|
"type": "trigger",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "repeat once",
|
|
"op1": "",
|
|
"op2": "",
|
|
"op1type": "pay",
|
|
"op2type": "pay",
|
|
"duration": "250",
|
|
"extend": false,
|
|
"overrideDelay": false,
|
|
"units": "ms",
|
|
"reset": "",
|
|
"bytopic": "all",
|
|
"topic": "topic",
|
|
"outputs": 1,
|
|
"x": 2250,
|
|
"y": 300,
|
|
"wires": [
|
|
[
|
|
"4adc84859872765c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8aa78c963092f63a",
|
|
"type": "trigger",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "repeat once",
|
|
"op1": "",
|
|
"op2": "",
|
|
"op1type": "pay",
|
|
"op2type": "pay",
|
|
"duration": "1",
|
|
"extend": false,
|
|
"overrideDelay": false,
|
|
"units": "s",
|
|
"reset": "",
|
|
"bytopic": "all",
|
|
"topic": "topic",
|
|
"outputs": 1,
|
|
"x": 2250,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"4adc84859872765c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "517dfff49c71a517",
|
|
"type": "cronplus",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e3693344db474a0a",
|
|
"name": "every 5 min",
|
|
"outputField": "payload",
|
|
"timeZone": "",
|
|
"storeName": "",
|
|
"commandResponseMsgOutput": "output1",
|
|
"defaultLocation": "",
|
|
"defaultLocationType": "default",
|
|
"outputs": 1,
|
|
"options": [
|
|
{
|
|
"name": "schedule1",
|
|
"topic": "gate",
|
|
"payloadType": "default",
|
|
"payload": "",
|
|
"expressionType": "cron",
|
|
"expression": "0 0,5,10,15,20,25,30,35,40,45,50,55 * * * *",
|
|
"location": "",
|
|
"offset": "0",
|
|
"solarType": "all",
|
|
"solarEvents": "sunrise,sunset"
|
|
}
|
|
],
|
|
"x": 1690,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"5b23a7e32b5b478a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9e6b8f297621f50f",
|
|
"type": "switch",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "00798774fd655f5e",
|
|
"name": "bucket has ac",
|
|
"property": "metrics[msg.bucket]",
|
|
"propertyType": "global",
|
|
"rules": [
|
|
{
|
|
"t": "hask",
|
|
"v": "air conditioner",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 1,
|
|
"x": 1780,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"08048d875b38ceb8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6986b6056378b809",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "group",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "group",
|
|
"pt": "msg",
|
|
"to": "Camera",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2230,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"c588f13f74f79161"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c588f13f74f79161",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "room - ui - chart temperature - control",
|
|
"mode": "link",
|
|
"links": [
|
|
"4afaf74fbb2e3c7f"
|
|
],
|
|
"x": 2355,
|
|
"y": 240,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "4990423c8f36ea2d",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "42c0f1473438a281",
|
|
"name": "control",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "group",
|
|
"pt": "msg",
|
|
"to": "Camera",
|
|
"tot": "str"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "control",
|
|
"pt": "msg",
|
|
"to": "show",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 2070,
|
|
"y": 300,
|
|
"wires": [
|
|
[
|
|
"6986b6056378b809"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6e7361c72d5382d3",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "group",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "group",
|
|
"pt": "msg",
|
|
"to": "Photovoltaïque",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5250,
|
|
"y": 1440,
|
|
"wires": [
|
|
[
|
|
"3aa7927ee6a3837a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3aa7927ee6a3837a",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "room - ui - photovoltaic - control",
|
|
"mode": "link",
|
|
"links": [
|
|
"4afaf74fbb2e3c7f"
|
|
],
|
|
"x": 5375,
|
|
"y": 1440,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "10ded0e86fc42cbf",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "e27bdf5e4cdc9e39",
|
|
"name": "control",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "control",
|
|
"pt": "msg",
|
|
"to": "show",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 5090,
|
|
"y": 1500,
|
|
"wires": [
|
|
[
|
|
"6e7361c72d5382d3"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "044f28fb3df06b13",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "group",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "group",
|
|
"pt": "msg",
|
|
"to": "Climatisation",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6650,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"001235ada046b338"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "001235ada046b338",
|
|
"type": "link out",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "room - ui - air conditioner - control",
|
|
"mode": "link",
|
|
"links": [
|
|
"4afaf74fbb2e3c7f"
|
|
],
|
|
"x": 6775,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "be448f42064357f1",
|
|
"type": "change",
|
|
"z": "f125f568d4e332ee",
|
|
"g": "a0938dfc54b55acc",
|
|
"name": "control",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "control",
|
|
"pt": "msg",
|
|
"to": "show",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 6490,
|
|
"y": 660,
|
|
"wires": [
|
|
[
|
|
"044f28fb3df06b13"
|
|
]
|
|
]
|
|
}
|
|
] |