Rewrite boot flow

This commit is contained in:
JcDenis 2024-08-10 16:54:49 +02:00
parent 6ffcf36e2e
commit 22837e9271
23 changed files with 13074 additions and 9164 deletions

View file

@ -1,5 +1,5 @@
## ABOUT
iotredloop v0.1.0
iotredloop v0.2.0
> Simple nodered home automation kernel
This is a personnal project of home automation, it is highly limited to my needs.
@ -16,7 +16,7 @@ Flows are written under Node-red v4.0.2 with following nodes packages :
* [node-red-contrib-queue-gate](https://flows.nodered.org/node/node-red-contrib-queue-gate) 1.5.5
* [node-red-contrib-simple-gate](https://flows.nodered.org/node/node-red-contrib-simple-gate) 0.5.2
* [node-red-contrib-stackhero-influxdb-v2](https://flows.nodered.org/node/node-red-contrib-stackhero-influxdb-v2) 1.0.4
* [@flowfuse/node-red-dashboard](https://flows.nodered.org/node/@flowfuse/node-red-dashboard) 1.13.0 (nodered dashboard 2)
* [@flowfuse/node-red-dashboard](https://flows.nodered.org/node/@flowfuse/node-red-dashboard) 1.14.0 (nodered dashboard 2)
* [node-red-contrib-cpu](https://flows.nodered.org/node/node-red-contrib-cpu) 0.0.4
* [node-red-contrib-moment](https://flows.nodered.org/node/node-red-contrib-moment) 5.0.0
* [node-red-contrib-bigtimer](https://flows.nodered.org/node/node-red-contrib-bigtimer) 2.8.6

View file

@ -600,7 +600,7 @@
"onKeywordInLanguage": "",
"userAgent": "",
"usePushConnection": "on",
"autoInit": "on"
"autoInit": "off"
},
{
"id": "535a857c71583573",
@ -719,7 +719,7 @@
{
"id": "b156e6eff1bfadd1",
"type": "vsh-connection",
"name": "alexa",
"name": "alexa -",
"port": "8883",
"accessTokenExpiry": "1714319347116",
"debug": false,

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,7 @@
"id": "e59bed66f12534a0",
"type": "group",
"z": "b66c229035856438",
"name": "agenda - bucket",
"name": "agenda - room",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
@ -91,6 +91,48 @@
"w": 422,
"h": 82
},
{
"id": "cf7114b43871c414",
"type": "group",
"z": "b66c229035856438",
"name": "room - ui - agenda",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"7c1941c9ed1317fd",
"69c1098076e822f6",
"edf6d818fc24d922",
"c7fb4cc0446dbf74",
"daf44778ff19113d",
"1a58eab278d161f3",
"95b83d4f7b2e36d6",
"6888bb4727921ff4",
"aa0d0e7c55d0ca77",
"0cdf527eea858d38",
"fa60e7b17b73d75a",
"38113221fd7ac74f",
"e62675c777ab078d",
"816e8f38b155770a",
"5e69f8525379ec0c",
"20fe207df07074ca",
"e0a3e77a2e5cc677",
"96f6b4a768453df2",
"686debd2a5597828",
"e9015b7aad0145df",
"b7fbf4650b5dac3a",
"e53a56f681d4ca9e",
"b4c42dd5263f05c2",
"0467047fa991d42e",
"7dc1c5c9ba185887"
],
"x": 94,
"y": 3619,
"w": 1332,
"h": 562
},
{
"id": "31de927a663fcb1e",
"type": "group",
@ -108,11 +150,12 @@
"72120a886fd31b2a",
"e4d7334aa6d35ebe",
"16c8ef5f39faedc8",
"2864163617b6dd6c"
"2864163617b6dd6c",
"1d3fa042fb5c9c75"
],
"x": 94,
"y": 319,
"w": 642,
"w": 802,
"h": 202
},
{
@ -252,11 +295,12 @@
"83efec5c7865bc6b",
"e7f86112802a7c6b",
"831eab530fc4d597",
"817e42ff3aa821fb"
"817e42ff3aa821fb",
"a7eeb2774ebe2e49"
],
"x": 94,
"y": 2419,
"w": 622,
"w": 762,
"h": 142
},
{
@ -361,48 +405,6 @@
"w": 752,
"h": 142
},
{
"id": "cf7114b43871c414",
"type": "group",
"z": "b66c229035856438",
"name": "room - ui - agenda",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"7c1941c9ed1317fd",
"69c1098076e822f6",
"edf6d818fc24d922",
"c7fb4cc0446dbf74",
"daf44778ff19113d",
"1a58eab278d161f3",
"95b83d4f7b2e36d6",
"6888bb4727921ff4",
"aa0d0e7c55d0ca77",
"0cdf527eea858d38",
"fa60e7b17b73d75a",
"38113221fd7ac74f",
"e62675c777ab078d",
"816e8f38b155770a",
"5e69f8525379ec0c",
"20fe207df07074ca",
"e0a3e77a2e5cc677",
"96f6b4a768453df2",
"686debd2a5597828",
"e9015b7aad0145df",
"b7fbf4650b5dac3a",
"e53a56f681d4ca9e",
"b4c42dd5263f05c2",
"0467047fa991d42e",
"7dc1c5c9ba185887"
],
"x": 94,
"y": 3619,
"w": 1507,
"h": 562
},
{
"id": "8d4b985ec87645f6",
"type": "comment",
@ -418,21 +420,21 @@
"type": "change",
"z": "b66c229035856438",
"g": "e59bed66f12534a0",
"name": "bucket",
"name": "room",
"rules": [
{
"t": "set",
"p": "bucket",
"p": "room",
"pt": "msg",
"to": "agenda",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
"p": "payload",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
@ -453,9 +455,9 @@
"type": "link in",
"z": "b66c229035856438",
"g": "e59bed66f12534a0",
"name": "agenda - bucket",
"name": "agenda - room",
"links": [
"25445f5a9b787a0a"
"a0f0f63b3934f168"
],
"x": 135,
"y": 60,
@ -470,11 +472,10 @@
"type": "link out",
"z": "b66c229035856438",
"g": "e59bed66f12534a0",
"name": "agenda - bucket",
"name": "agenda - room",
"mode": "link",
"links": [
"060ca3dab7e4b080",
"a471c698f7538a54"
"6eafb2a9c1ec95c0"
],
"x": 395,
"y": 60,
@ -487,15 +488,13 @@
"g": "31de927a663fcb1e",
"name": "agenda - birthday - device",
"links": [
"e928798f23941942"
"3fe55eddaf0140ee"
],
"x": 135,
"y": 360,
"wires": [
[
"72120a886fd31b2a",
"2864163617b6dd6c",
"16c8ef5f39faedc8"
"1d3fa042fb5c9c75"
]
]
},
@ -509,7 +508,7 @@
"links": [
"bfa594bf1f876c92"
],
"x": 695,
"x": 855,
"y": 360,
"wires": []
},
@ -554,7 +553,7 @@
"from": "",
"to": "",
"reg": false,
"x": 490,
"x": 650,
"y": 360,
"wires": [
[
@ -596,7 +595,7 @@
"from": "",
"to": "",
"reg": false,
"x": 490,
"x": 650,
"y": 480,
"wires": [
[
@ -617,7 +616,7 @@
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"x": 430,
"y": 480,
"wires": [
[
@ -666,7 +665,7 @@
"from": "",
"to": "",
"reg": false,
"x": 500,
"x": 660,
"y": 420,
"wires": [
[
@ -685,7 +684,7 @@
"t": "set",
"p": "list_today",
"pt": "msg",
"to": "list_today",
"to": "#:(onMemory)::list_today",
"tot": "flow"
},
{
@ -697,7 +696,7 @@
},
{
"t": "set",
"p": "list_today",
"p": "#:(onMemory)::list_today",
"pt": "flow",
"to": "list_today",
"tot": "msg"
@ -727,7 +726,7 @@
"t": "set",
"p": "list_today",
"pt": "msg",
"to": "list_today",
"to": "#:(onMemory)::list_today",
"tot": "flow"
},
{
@ -841,21 +840,21 @@
},
{
"t": "set",
"p": "list_today",
"p": "#:(onMemory)::list_today",
"pt": "flow",
"to": "[]",
"tot": "jsonata"
},
{
"t": "set",
"p": "list_tomorrow",
"p": "#:(onMemory)::list_tomorrow",
"pt": "flow",
"to": "[]",
"tot": "jsonata"
},
{
"t": "set",
"p": "counter.birthday",
"p": "#:(onMemory)::counter.birthday",
"pt": "flow",
"to": "0",
"tot": "num"
@ -991,7 +990,7 @@
},
{
"t": "set",
"p": "counter.birthday",
"p": "#:(onMemory)::counter.birthday",
"pt": "flow",
"to": "0",
"tot": "num"
@ -1067,7 +1066,7 @@
"t": "set",
"p": "counter",
"pt": "msg",
"to": "counter.birthday",
"to": "#:(onMemory)::counter.birthday",
"tot": "flow"
},
{
@ -1093,7 +1092,7 @@
},
{
"t": "set",
"p": "counter.birthday",
"p": "#:(onMemory)::counter.birthday",
"pt": "flow",
"to": "counter",
"tot": "msg"
@ -1123,7 +1122,7 @@
"z": "b66c229035856438",
"g": "fb524b1a6da7faeb",
"name": "nb",
"property": "counter.birthday",
"property": "#:(onMemory)::counter.birthday",
"propertyType": "flow",
"rules": [
{
@ -1280,7 +1279,7 @@
"name": "agenda - birthday - source",
"links": [
"074a67bf0fcf09ad",
"94c79b8f52f0b6ba"
"f1a09e5456fe03fe"
],
"x": 135,
"y": 720,
@ -1344,8 +1343,8 @@
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
"to": "agenda",
"tot": "str"
},
{
"t": "set",
@ -1489,7 +1488,7 @@
"t": "set",
"p": "list_tomorrow",
"pt": "msg",
"to": "list_tomorrow",
"to": "#:(onMemory)::list_tomorrow",
"tot": "flow"
},
{
@ -1501,7 +1500,7 @@
},
{
"t": "set",
"p": "list_tomorrow",
"p": "#:(onMemory)::list_tomorrow",
"pt": "flow",
"to": "list_tomorrow",
"tot": "msg"
@ -1561,7 +1560,7 @@
"t": "set",
"p": "list_tomorrow",
"pt": "msg",
"to": "list_tomorrow",
"to": "#:(onMemory)::list_tomorrow",
"tot": "flow"
},
{
@ -1740,7 +1739,7 @@
"name": "agenda - birthday - ui - load",
"links": [
"074a67bf0fcf09ad",
"94c79b8f52f0b6ba"
"e509e8b44c9007e1"
],
"x": 135,
"y": 960,
@ -2412,8 +2411,8 @@
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
"v": "agenda",
"vt": "str"
}
],
"checkall": "false",
@ -2547,14 +2546,13 @@
"g": "2d16095457052f90",
"name": "agenda - trash - device",
"links": [
"e928798f23941942"
"3fe55eddaf0140ee"
],
"x": 135,
"y": 2460,
"wires": [
[
"e7f86112802a7c6b",
"817e42ff3aa821fb"
"a7eeb2774ebe2e49"
]
]
},
@ -2568,7 +2566,7 @@
"links": [
"bfa594bf1f876c92"
],
"x": 675,
"x": 815,
"y": 2460,
"wires": []
},
@ -2613,7 +2611,7 @@
"from": "",
"to": "",
"reg": false,
"x": 490,
"x": 630,
"y": 2460,
"wires": [
[
@ -2655,7 +2653,7 @@
"from": "",
"to": "",
"reg": false,
"x": 480,
"x": 620,
"y": 2520,
"wires": [
[
@ -2676,7 +2674,7 @@
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"x": 410,
"y": 2520,
"wires": [
[
@ -2736,7 +2734,7 @@
},
{
"t": "set",
"p": "counter.trash",
"p": "#:(onMemory)::counter.trash",
"pt": "flow",
"to": "0",
"tot": "num"
@ -2871,7 +2869,7 @@
},
{
"t": "set",
"p": "counter.trash",
"p": "#:(onMemory)::counter.trash",
"pt": "flow",
"to": "0",
"tot": "num"
@ -2947,7 +2945,7 @@
"t": "set",
"p": "counter",
"pt": "msg",
"to": "counter.trash",
"to": "#:(onMemory)::counter.trash",
"tot": "flow"
},
{
@ -2973,7 +2971,7 @@
},
{
"t": "set",
"p": "counter.trash",
"p": "#:(onMemory)::counter.trash",
"pt": "flow",
"to": "counter",
"tot": "msg"
@ -3003,7 +3001,7 @@
"z": "b66c229035856438",
"g": "99b5327a504595cb",
"name": "nb",
"property": "counter.trash",
"property": "#:(onMemory)::counter.trash",
"propertyType": "flow",
"rules": [
{
@ -3057,7 +3055,7 @@
"name": "agenda - trash - source",
"links": [
"074a67bf0fcf09ad",
"94c79b8f52f0b6ba"
"f1a09e5456fe03fe"
],
"x": 135,
"y": 2760,
@ -3121,8 +3119,8 @@
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
"to": "agenda",
"tot": "str"
},
{
"t": "set",
@ -3373,7 +3371,7 @@
"name": "agenda - trash - ui - load",
"links": [
"074a67bf0fcf09ad",
"94c79b8f52f0b6ba"
"e509e8b44c9007e1"
],
"x": 135,
"y": 2880,
@ -3817,8 +3815,8 @@
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
"v": "agenda",
"vt": "str"
}
],
"checkall": "false",
@ -4023,7 +4021,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1140,
"x": 1000,
"y": 3900,
"wires": [
[
@ -4049,7 +4047,7 @@
"fontSize": 16,
"color": "#717171",
"className": "",
"x": 1340,
"x": 1200,
"y": 3840,
"wires": []
},
@ -4071,7 +4069,7 @@
"fontSize": 16,
"color": "#717171",
"className": "",
"x": 1350,
"x": 1210,
"y": 3960,
"wires": []
},
@ -4095,7 +4093,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1140,
"x": 1000,
"y": 4020,
"wires": [
[
@ -4122,7 +4120,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 960,
"x": 820,
"y": 3840,
"wires": [
[
@ -4152,7 +4150,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 960,
"x": 820,
"y": 3960,
"wires": [
[
@ -4304,8 +4302,8 @@
"y": 3720,
"wires": [
[
"95b83d4f7b2e36d6",
"e0a3e77a2e5cc677"
"e0a3e77a2e5cc677",
"95b83d4f7b2e36d6"
]
]
},
@ -4336,7 +4334,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1150,
"x": 1010,
"y": 3660,
"wires": [
[
@ -4365,7 +4363,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1320,
"x": 1180,
"y": 3660,
"wires": [
[
@ -4391,7 +4389,7 @@
"fontSize": 16,
"color": "#717171",
"className": "",
"x": 1490,
"x": 1350,
"y": 3660,
"wires": []
},
@ -4403,7 +4401,7 @@
"name": "",
"ui": "2d75e4809d2a6fbf",
"events": "all",
"x": 1320,
"x": 1180,
"y": 3720,
"wires": [
[]
@ -4436,7 +4434,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1150,
"x": 1010,
"y": 3720,
"wires": [
[
@ -4457,7 +4455,7 @@
"from": "",
"to": "",
"reg": false,
"x": 970,
"x": 830,
"y": 3780,
"wires": [
[
@ -4537,7 +4535,7 @@
"fontSize": 16,
"color": "#717171",
"className": "",
"x": 1340,
"x": 1200,
"y": 4080,
"wires": []
},
@ -4561,7 +4559,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1140,
"x": 1000,
"y": 4140,
"wires": [
[
@ -4588,7 +4586,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 960,
"x": 820,
"y": 4080,
"wires": [
[
@ -4637,5 +4635,74 @@
"x": 210,
"y": 3900,
"wires": []
},
{
"id": "1d3fa042fb5c9c75",
"type": "change",
"z": "b66c229035856438",
"g": "31de927a663fcb1e",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "agenda",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 360,
"wires": [
[
"72120a886fd31b2a",
"2864163617b6dd6c",
"16c8ef5f39faedc8"
]
]
},
{
"id": "a7eeb2774ebe2e49",
"type": "change",
"z": "b66c229035856438",
"g": "2d16095457052f90",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "agenda",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 2460,
"wires": [
[
"e7f86112802a7c6b",
"817e42ff3aa821fb"
]
]
},
{
"id": "192902e162788e14",
"type": "comment",
"z": "b66c229035856438",
"name": "\"agenda\" is a reserved word for room and bucket",
"info": "",
"x": 1520,
"y": 60,
"wires": []
}
]

View file

@ -7,32 +7,11 @@
"info": "",
"env": []
},
{
"id": "ef7759af584f1554",
"type": "group",
"z": "29b296e6cd0e71d4",
"name": "alexa - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"cbbf8c62de0a42bf",
"30497b91559e19be",
"44f0ce21a685646d"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "9244bfd4d05d9c3e",
"type": "group",
"z": "29b296e6cd0e71d4",
"name": "alexa - cookie",
"name": "alexa - init",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
@ -41,14 +20,16 @@
"nodes": [
"1366f3887e6de0cb",
"8231cb6e85943b7c",
"55cbb5ab30240ed6",
"3b2c87205ae7f992",
"823b0b2460f6ef95"
"823b0b2460f6ef95",
"eadb9f80ae5d73a8",
"ba75869a8d314e54",
"e94465489f353958"
],
"x": 74,
"y": 939,
"w": 672,
"h": 142
"y": 879,
"w": 772,
"h": 202
},
{
"id": "bbefe025338a4088",
@ -81,7 +62,7 @@
"id": "0cf81dc631df6bea",
"type": "group",
"z": "29b296e6cd0e71d4",
"name": "alexa - devices list (for test)",
"name": "alexa - list",
"style": {
"label": true,
"fill": "#ffffff",
@ -93,8 +74,8 @@
"343850ed88d34457"
],
"x": 74,
"y": 819,
"w": 732,
"y": 759,
"w": 692,
"h": 82
},
{
@ -478,79 +459,13 @@
"y": 60,
"wires": []
},
{
"id": "cbbf8c62de0a42bf",
"type": "change",
"z": "29b296e6cd0e71d4",
"g": "ef7759af584f1554",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "alexa",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"44f0ce21a685646d"
]
]
},
{
"id": "30497b91559e19be",
"type": "link in",
"z": "29b296e6cd0e71d4",
"g": "ef7759af584f1554",
"name": "alexa - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"cbbf8c62de0a42bf"
]
]
},
{
"id": "44f0ce21a685646d",
"type": "link out",
"z": "29b296e6cd0e71d4",
"g": "ef7759af584f1554",
"name": "alexa - bucket",
"mode": "link",
"links": [
"3b2c87205ae7f992"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "1366f3887e6de0cb",
"type": "debug",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "alexa - cookie",
"active": true,
"name": "alexa - init",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
@ -558,8 +473,8 @@
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 620,
"y": 1040,
"x": 730,
"y": 920,
"wires": []
},
{
@ -570,54 +485,28 @@
"name": "",
"account": "b71b7e764b1feec5",
"option": "initialise",
"x": 420,
"y": 1040,
"x": 540,
"y": 920,
"wires": [
[
"1366f3887e6de0cb"
]
]
},
{
"id": "55cbb5ab30240ed6",
"type": "delay",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "15 s",
"pauseType": "delay",
"timeout": "15",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 250,
"y": 1040,
"wires": [
[
"8231cb6e85943b7c"
]
]
},
{
"id": "3b2c87205ae7f992",
"type": "link in",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "alexa - cookie",
"name": "alexa - init",
"links": [
"44f0ce21a685646d"
"b76dfebb811b14bd"
],
"x": 115,
"y": 1040,
"y": 980,
"wires": [
[
"55cbb5ab30240ed6"
"e94465489f353958"
]
]
},
@ -1677,8 +1566,8 @@
}
}
},
"x": 430,
"y": 860,
"x": 450,
"y": 800,
"wires": [
[
"343850ed88d34457"
@ -1690,15 +1579,15 @@
"type": "inject",
"z": "29b296e6cd0e71d4",
"g": "0cf81dc631df6bea",
"name": "get Alexa devices",
"name": "manual - alexa - list",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 200,
"y": 860,
"x": 210,
"y": 800,
"wires": [
[
"5de8989847f9f971"
@ -1710,7 +1599,7 @@
"type": "debug",
"z": "29b296e6cd0e71d4",
"g": "0cf81dc631df6bea",
"name": "alexa - devices list",
"name": "alexa - list",
"active": true,
"tosidebar": true,
"console": false,
@ -1719,8 +1608,8 @@
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 670,
"y": 860,
"x": 660,
"y": 800,
"wires": []
},
{
@ -2266,7 +2155,7 @@
"g": "208c778a4cf58d22",
"name": "catch error",
"scope": null,
"uncaught": false,
"uncaught": true,
"x": 620,
"y": 60,
"wires": [
@ -2494,7 +2383,7 @@
"type": "inject",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "manual init",
"name": "manual - alexa - init",
"props": [
{
"p": "payload"
@ -2511,7 +2400,77 @@
"topic": "",
"payload": "",
"payloadType": "date",
"x": 240,
"x": 210,
"y": 920,
"wires": [
[
"8231cb6e85943b7c"
]
]
},
{
"id": "eadb9f80ae5d73a8",
"type": "catch",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "catch - alexa - init",
"scope": [
"8231cb6e85943b7c"
],
"uncaught": false,
"x": 180,
"y": 1040,
"wires": [
[
"ba75869a8d314e54"
]
]
},
{
"id": "ba75869a8d314e54",
"type": "delay",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "2 min",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "minutes",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 370,
"y": 1040,
"wires": [
[
"8231cb6e85943b7c"
]
]
},
{
"id": "e94465489f353958",
"type": "trigger",
"z": "29b296e6cd0e71d4",
"g": "9244bfd4d05d9c3e",
"name": "30 s",
"op1": "",
"op2": "1",
"op1type": "nul",
"op2type": "str",
"duration": "30",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 370,
"y": 980,
"wires": [
[

View file

@ -270,7 +270,7 @@
"g": "0c72531717a01ea2",
"name": "proxmox - ui - servers",
"links": [
"94c79b8f52f0b6ba"
"e509e8b44c9007e1"
],
"x": 135,
"y": 980,
@ -845,7 +845,7 @@
"rules": [
{
"t": "set",
"p": "#:(memoryOnly)::list_qemu",
"p": "#:(onMemory)::list_qemu",
"pt": "flow",
"to": "[]",
"tot": "jsonata"
@ -873,7 +873,7 @@
"rules": [
{
"t": "set",
"p": "#:(memoryOnly)::list_qemu[msg.parts.index]",
"p": "#:(onMemory)::list_qemu[msg.parts.index]",
"pt": "flow",
"to": "{\"label\":msg.payload.name, \"value\":msg.payload.vmid}",
"tot": "jsonata"
@ -928,7 +928,7 @@
"t": "set",
"p": "options",
"pt": "msg",
"to": "#:(memoryOnly)::list_qemu",
"to": "#:(onMemory)::list_qemu",
"tot": "flow"
},
{
@ -1006,7 +1006,7 @@
"t": "set",
"p": "path",
"pt": "msg",
"to": "current_id",
"to": "#:(onMemory)::current_id",
"tot": "flow"
},
{
@ -1018,14 +1018,14 @@
},
{
"t": "set",
"p": "#:(memoryOnly)::current_vmid",
"p": "#:(onMemory)::current_vmid",
"pt": "flow",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "#:(memoryOnly)::current_type",
"p": "#:(onMemory)::current_type",
"pt": "flow",
"to": "qemu",
"tot": "str"
@ -1438,7 +1438,7 @@
"rules": [
{
"t": "set",
"p": "#:(memoryOnly)::list_lxc",
"p": "#:(onMemory)::list_lxc",
"pt": "flow",
"to": "[]",
"tot": "jsonata"
@ -1487,7 +1487,7 @@
"rules": [
{
"t": "set",
"p": "#:(memoryOnly)::list_lxc[msg.parts.index]",
"p": "#:(onMemory)::list_lxc[msg.parts.index]",
"pt": "flow",
"to": "{\"label\":msg.payload.name, \"value\":msg.payload.vmid}",
"tot": "jsonata"
@ -1542,7 +1542,7 @@
"t": "set",
"p": "options",
"pt": "msg",
"to": "#:(memoryOnly)::list_lxc",
"to": "#:(onMemory)::list_lxc",
"tot": "flow"
},
{
@ -1598,7 +1598,7 @@
"t": "set",
"p": "path",
"pt": "msg",
"to": "current_id",
"to": "#:(onMemory)::current_id",
"tot": "flow"
},
{
@ -1610,14 +1610,14 @@
},
{
"t": "set",
"p": "#:(memoryOnly)::current_vmid",
"p": "#:(onMemory)::current_vmid",
"pt": "flow",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "#:(memoryOnly)::current_type",
"p": "#:(onMemory)::current_type",
"pt": "flow",
"to": "lxc",
"tot": "str"
@ -1689,14 +1689,14 @@
"rules": [
{
"t": "set",
"p": "#:(memoryOnly)::current_vmid",
"p": "#:(onMemory)::current_vmid",
"pt": "flow",
"to": "0",
"tot": "num"
},
{
"t": "set",
"p": "current_type",
"p": "#:(onMemory)::current_type",
"pt": "flow",
"to": "",
"tot": "str"
@ -1742,21 +1742,21 @@
"t": "set",
"p": "type",
"pt": "msg",
"to": "#:(memoryOnly)::current_type",
"to": "#:(onMemory)::current_type",
"tot": "flow"
},
{
"t": "set",
"p": "vmid",
"pt": "msg",
"to": "#:(memoryOnly)::current_vmid",
"to": "#:(onMemory)::current_vmid",
"tot": "flow"
},
{
"t": "set",
"p": "path",
"pt": "msg",
"to": "current_id",
"to": "#:(onMemory)::current_id",
"tot": "flow"
},
{
@ -3487,7 +3487,7 @@
"t": "set",
"p": "path",
"pt": "msg",
"to": "current_id",
"to": "#:(onMemory)::current_id",
"tot": "flow"
},
{
@ -3522,7 +3522,7 @@
"t": "set",
"p": "path",
"pt": "msg",
"to": "current_id",
"to": "#:(onMemory)::current_id",
"tot": "flow"
},
{
@ -3845,7 +3845,7 @@
},
{
"t": "set",
"p": "current_id",
"p": "#:(onMemory)::current_id",
"pt": "flow",
"to": "node_id",
"tot": "msg"

View file

@ -7,27 +7,6 @@
"info": "",
"env": []
},
{
"id": "0aff5d7f470c281b",
"type": "group",
"z": "52347795767acd3f",
"name": "telegram - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"1423657927f0381b",
"88c0a82bdddf789a",
"dd23d0e2ece16df7"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "ab32af53a59cbfa9",
"type": "group",
@ -69,7 +48,7 @@
],
"x": 68,
"y": 233,
"w": 5754,
"w": 6094,
"h": 494
},
{
@ -252,11 +231,12 @@
"52e58ab14c13701d",
"ba7a5c79cd8542ce",
"cf344cfc63c703eb",
"7102b05e3a7f621d"
"7102b05e3a7f621d",
"8f85e38762803340"
],
"x": 1514,
"y": 259,
"w": 2512,
"w": 2692,
"h": 149.5
},
{
@ -317,7 +297,7 @@
"4edb12baad4c5bd0",
"58e1c9e33b0a90f3"
],
"x": 4114,
"x": 4454,
"y": 259,
"w": 1682,
"h": 442
@ -332,72 +312,6 @@
"y": 60,
"wires": []
},
{
"id": "1423657927f0381b",
"type": "change",
"z": "52347795767acd3f",
"g": "0aff5d7f470c281b",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "telegram",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"dd23d0e2ece16df7"
]
]
},
{
"id": "88c0a82bdddf789a",
"type": "link in",
"z": "52347795767acd3f",
"g": "0aff5d7f470c281b",
"name": "telegram - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"1423657927f0381b"
]
]
},
{
"id": "dd23d0e2ece16df7",
"type": "link out",
"z": "52347795767acd3f",
"g": "0aff5d7f470c281b",
"name": "telegram - bucket",
"mode": "link",
"links": [
"8fd6b4ae0318fb3e"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "316ed209c87c228e",
"type": "telegram command",
@ -2863,14 +2777,13 @@
"name": "telegram - chatbot - metric",
"links": [
"031a6afd8300356a",
"86cfacef3152a233",
"f63523d696b72def"
"094771ea30e6c0b6"
],
"x": 1555,
"y": 360,
"wires": [
[
"b203a4b79c347218"
"8f85e38762803340"
]
]
},
@ -2897,7 +2810,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 1720,
"x": 1900,
"y": 360,
"wires": [
[
@ -2936,7 +2849,7 @@
"checkall": "false",
"repair": false,
"outputs": 3,
"x": 1910,
"x": 2090,
"y": 360,
"wires": [
[
@ -3003,7 +2916,7 @@
"from": "",
"to": "",
"reg": false,
"x": 3460,
"x": 3640,
"y": 360,
"wires": [
[
@ -3029,7 +2942,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 2810,
"x": 2990,
"y": 360,
"wires": [
[
@ -3055,7 +2968,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 3020,
"x": 3200,
"y": 360,
"wires": [
[
@ -3081,7 +2994,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 3250,
"x": 3430,
"y": 360,
"wires": [
[
@ -3105,7 +3018,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 3640,
"x": 3820,
"y": 360,
"wires": [
[
@ -3163,7 +3076,7 @@
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"x": 4050,
"y": 300,
"wires": []
},
@ -3210,7 +3123,7 @@
"links": [
"3433733d6b9a8736"
],
"x": 3775,
"x": 3955,
"y": 360,
"wires": []
},
@ -3511,7 +3424,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2270,
"x": 2450,
"y": 360,
"wires": [
[
@ -3532,7 +3445,7 @@
"stream": false,
"addname": "bucket",
"property": "payload",
"x": 2460,
"x": 2640,
"y": 360,
"wires": [
[
@ -3556,7 +3469,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 2630,
"x": 2810,
"y": 360,
"wires": [
[
@ -3572,7 +3485,7 @@
"name": "",
"action": "",
"property": "payload",
"x": 2080,
"x": 2260,
"y": 300,
"wires": [
[
@ -3600,7 +3513,7 @@
"from": "",
"to": "",
"reg": false,
"x": 2070,
"x": 2250,
"y": 360,
"wires": [
[
@ -3626,7 +3539,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 4690,
"x": 5030,
"y": 540,
"wires": [
[
@ -3655,7 +3568,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5540,
"x": 5880,
"y": 540,
"wires": [
[
@ -3672,7 +3585,7 @@
"links": [
"b6323e1460f6f50c"
],
"x": 4155,
"x": 4495,
"y": 360,
"wires": [
[
@ -3689,7 +3602,7 @@
"links": [
"9e4bfee0db3051d4"
],
"x": 4155,
"x": 4495,
"y": 300,
"wires": [
[
@ -3708,7 +3621,7 @@
"links": [
"2690f4e06626ebda"
],
"x": 5675,
"x": 6015,
"y": 540,
"wires": []
},
@ -3730,7 +3643,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 4320,
"x": 4660,
"y": 360,
"wires": [
[
@ -3751,7 +3664,7 @@
"from": "",
"to": "",
"reg": false,
"x": 4850,
"x": 5190,
"y": 420,
"wires": [
[
@ -3788,7 +3701,7 @@
"from": "",
"to": "",
"reg": false,
"x": 4850,
"x": 5190,
"y": 360,
"wires": [
[
@ -3831,7 +3744,7 @@
"from": "",
"to": "",
"reg": false,
"x": 4850,
"x": 5190,
"y": 300,
"wires": [
[
@ -3860,7 +3773,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5020,
"x": 5360,
"y": 300,
"wires": [
[
@ -3886,7 +3799,7 @@
"fontSize": 16,
"color": "#717171",
"className": "",
"x": 5190,
"x": 5530,
"y": 300,
"wires": []
},
@ -3898,7 +3811,7 @@
"name": "",
"ui": "2d75e4809d2a6fbf",
"events": "all",
"x": 5020,
"x": 5360,
"y": 360,
"wires": [
[]
@ -3928,7 +3841,7 @@
"offvalueType": "bool",
"officon": "cog-off-outline",
"offcolor": "grey",
"x": 5190,
"x": 5530,
"y": 540,
"wires": [
[
@ -3954,7 +3867,7 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 4520,
"x": 4860,
"y": 540,
"wires": [
[
@ -3983,7 +3896,7 @@
"sendOnBlur": true,
"sendOnEnter": true,
"className": "",
"x": 5020,
"x": 5360,
"y": 600,
"wires": [
[
@ -4013,7 +3926,7 @@
"payloadType": "str",
"topic": "message",
"topicType": "str",
"x": 5010,
"x": 5350,
"y": 660,
"wires": [
[
@ -4030,7 +3943,7 @@
"rules": [
{
"t": "set",
"p": "telegram.content",
"p": "#:(onMemory)::telegram.content",
"pt": "flow",
"to": "payload",
"tot": "msg"
@ -4041,7 +3954,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5190,
"x": 5530,
"y": 600,
"wires": [
[]
@ -4067,7 +3980,7 @@
"from": "",
"to": "",
"reg": false,
"x": 4690,
"x": 5030,
"y": 600,
"wires": [
[
@ -4086,7 +3999,7 @@
"t": "set",
"p": "payload",
"pt": "msg",
"to": "telegram.content",
"to": "#:(onMemory)::telegram.content",
"tot": "flow"
}
],
@ -4095,7 +4008,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5360,
"x": 5700,
"y": 660,
"wires": [
[
@ -4153,7 +4066,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5580,
"x": 5920,
"y": 660,
"wires": [
[
@ -4171,7 +4084,7 @@
"links": [
"206c1fb4a48067df"
],
"x": 5755,
"x": 6095,
"y": 660,
"wires": []
},
@ -4181,7 +4094,7 @@
"z": "52347795767acd3f",
"g": "35fa81df547b4491",
"name": "flow",
"property": "telegram.content",
"property": "#:(onMemory)::telegram.content",
"propertyType": "flow",
"rules": [
{
@ -4191,7 +4104,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 5190,
"x": 5530,
"y": 660,
"wires": [
[
@ -4217,7 +4130,7 @@
"fontSize": 16,
"color": "#717171",
"className": "",
"x": 5020,
"x": 5360,
"y": 540,
"wires": []
},
@ -4241,7 +4154,7 @@
"from": "",
"to": "",
"reg": false,
"x": 4850,
"x": 5190,
"y": 540,
"wires": [
[
@ -4267,12 +4180,35 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 4290,
"x": 4630,
"y": 420,
"wires": [
[
"2936573edcac41e4"
]
]
},
{
"id": "8f85e38762803340",
"type": "gate",
"z": "52347795767acd3f",
"g": "bdd2440c99f0d065",
"name": "gate loop",
"controlTopic": "gate loop",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"defaultCmd": "default",
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 1700,
"y": 360,
"wires": [
[
"b203a4b79c347218"
]
]
}
]

View file

@ -8,26 +8,50 @@
"env": []
},
{
"id": "ef46b000b033db2d",
"id": "da6392b84b06972c",
"type": "group",
"z": "bcb1eeac454a68aa",
"name": "unifi - bucket",
"name": "catch error",
"style": {
"fill": "#ffC000",
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
"stroke": "#ff0000"
},
"nodes": [
"ae85504297599271",
"d3b50627581cb177",
"f0ed6e5d36cbe523"
"9607eb8becc34592",
"b1d4a2a532f6cb19",
"e7fabccd7044ccb6"
],
"x": 94,
"x": 534,
"y": 19,
"w": 342,
"w": 422,
"h": 82
},
{
"id": "4d818c92192d1954",
"type": "group",
"z": "bcb1eeac454a68aa",
"name": "api - unifi",
"style": {
"label": true,
"fill": "#777777",
"fill-opacity": "0.05"
},
"nodes": [
"c1f27c79c0103c45",
"75c056e8b9acf6f0",
"61d1d619cb7e91c6",
"78d96244e9eac38d",
"513272bff0b57de0",
"9fcce29d49756b8d",
"d05973f2f05e6933"
],
"x": 68,
"y": 173,
"w": 4044,
"h": 1034
},
{
"id": "d05973f2f05e6933",
"type": "group",
@ -82,27 +106,6 @@
"w": 2452,
"h": 622
},
{
"id": "da6392b84b06972c",
"type": "group",
"z": "bcb1eeac454a68aa",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"9607eb8becc34592",
"b1d4a2a532f6cb19",
"e7fabccd7044ccb6"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{
"id": "75c056e8b9acf6f0",
"type": "group",
@ -253,95 +256,6 @@
"w": 1112,
"h": 82
},
{
"id": "4d818c92192d1954",
"type": "group",
"z": "bcb1eeac454a68aa",
"name": "api - unifi",
"style": {
"label": true,
"fill": "#777777",
"fill-opacity": "0.05"
},
"nodes": [
"c1f27c79c0103c45",
"75c056e8b9acf6f0",
"61d1d619cb7e91c6",
"78d96244e9eac38d",
"513272bff0b57de0",
"9fcce29d49756b8d",
"d05973f2f05e6933"
],
"x": 68,
"y": 173,
"w": 4044,
"h": 1034
},
{
"id": "ae85504297599271",
"type": "change",
"z": "bcb1eeac454a68aa",
"d": true,
"g": "ef46b000b033db2d",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "unifi",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"f0ed6e5d36cbe523"
]
]
},
{
"id": "d3b50627581cb177",
"type": "link in",
"z": "bcb1eeac454a68aa",
"d": true,
"g": "ef46b000b033db2d",
"name": "unifi - bucket",
"links": [],
"x": 135,
"y": 60,
"wires": [
[
"ae85504297599271"
]
]
},
{
"id": "f0ed6e5d36cbe523",
"type": "link out",
"z": "bcb1eeac454a68aa",
"d": true,
"g": "ef46b000b033db2d",
"name": "unifi - bucket",
"mode": "link",
"links": [],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "8553e21d99113958",
"type": "influxdb out",
@ -2121,7 +2035,7 @@
"z": "bcb1eeac454a68aa",
"g": "9fcce29d49756b8d",
"name": "api - unifi - metric - led",
"active": true,
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -189,11 +189,12 @@
"1ea871e1ad0c448e",
"3ada84cb46c4cf59",
"7e60e1c2ce2b33b5",
"0bba3390b421b942"
"0bba3390b421b942",
"437450dbe9e8f9d5"
],
"x": 94,
"y": 3679,
"w": 1982,
"w": 2192,
"h": 682
},
{
@ -1540,13 +1541,14 @@
"g": "cec3ab5a35c60f2d",
"name": "scene - trigger",
"links": [
"031a6afd8300356a"
"031a6afd8300356a",
"427c0a5a050502e2"
],
"x": 135,
"y": 3780,
"wires": [
[
"2ea571ad93364449"
"437450dbe9e8f9d5"
]
]
},
@ -1568,7 +1570,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"x": 480,
"y": 3780,
"wires": [
[
@ -1603,7 +1605,7 @@
"from": "",
"to": "",
"reg": false,
"x": 430,
"x": 640,
"y": 3780,
"wires": [
[
@ -1623,7 +1625,8 @@
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 610,
"property": "payload",
"x": 820,
"y": 3780,
"wires": [
[
@ -1647,7 +1650,7 @@
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1730,
"x": 1940,
"y": 3720,
"wires": []
},
@ -1683,7 +1686,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1350,
"x": 1560,
"y": 3780,
"wires": [
[
@ -1759,7 +1762,7 @@
"checkall": "false",
"repair": false,
"outputs": 11,
"x": 1890,
"x": 2100,
"y": 3840,
"wires": [
[
@ -1807,7 +1810,7 @@
"links": [
"abdf34b12a5dd88d"
],
"x": 2035,
"x": 2245,
"y": 3720,
"wires": []
},
@ -1829,7 +1832,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1000,
"x": 1210,
"y": 3900,
"wires": [
[
@ -1857,7 +1860,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1190,
"x": 1400,
"y": 3840,
"wires": [
[
@ -1885,7 +1888,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1190,
"x": 1400,
"y": 3960,
"wires": [
[
@ -1921,7 +1924,7 @@
"checkall": "false",
"repair": false,
"outputs": 3,
"x": 810,
"x": 1020,
"y": 3840,
"wires": [
[
@ -1953,7 +1956,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1010,
"x": 1220,
"y": 3840,
"wires": [
[
@ -1989,7 +1992,7 @@
"checkall": "false",
"repair": false,
"outputs": 3,
"x": 810,
"x": 1020,
"y": 3960,
"wires": [
[
@ -2013,7 +2016,7 @@
"propertyType": "msg",
"rules": [
{
"t": "lte",
"t": "gte",
"v": "trigger_payload",
"vt": "msg"
}
@ -2021,7 +2024,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1010,
"x": 1220,
"y": 3960,
"wires": [
[
@ -2047,7 +2050,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1000,
"x": 1210,
"y": 4020,
"wires": [
[
@ -2297,7 +2300,7 @@
"checkall": "false",
"repair": false,
"outputs": 3,
"x": 800,
"x": 1010,
"y": 3780,
"wires": [
[],
@ -2317,7 +2320,7 @@
"links": [
"4e5dc7fe86199d6d"
],
"x": 2035,
"x": 2245,
"y": 3780,
"wires": []
},
@ -2416,7 +2419,7 @@
"links": [
"d104d5773963a340"
],
"x": 2035,
"x": 2245,
"y": 3840,
"wires": []
},
@ -3175,7 +3178,7 @@
"links": [
"394846d13b3f3ad5"
],
"x": 2035,
"x": 2245,
"y": 3900,
"wires": []
},
@ -3267,7 +3270,7 @@
"links": [
"0a11184001fe0640"
],
"x": 2035,
"x": 2245,
"y": 4200,
"wires": []
},
@ -3408,7 +3411,7 @@
"links": [
"309b17151899bda1"
],
"x": 2035,
"x": 2245,
"y": 4260,
"wires": []
},
@ -3549,7 +3552,7 @@
],
"linkType": "static",
"timeout": "30",
"x": 1530,
"x": 1740,
"y": 3780,
"wires": [
[
@ -3576,7 +3579,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1710,
"x": 1920,
"y": 3840,
"wires": [
[
@ -3834,7 +3837,7 @@
"links": [
"222a2cb866b5d927"
],
"x": 2035,
"x": 2245,
"y": 3960,
"wires": []
},
@ -4724,7 +4727,7 @@
"links": [
"66144194d3248dab"
],
"x": 2035,
"x": 2245,
"y": 4020,
"wires": []
},
@ -4889,7 +4892,7 @@
"links": [
"d7a5fb49638d61c7"
],
"x": 2035,
"x": 2245,
"y": 4080,
"wires": []
},
@ -5167,7 +5170,7 @@
"links": [
"779a7ca67f93706e"
],
"x": 2035,
"x": 2245,
"y": 4320,
"wires": []
},
@ -5319,7 +5322,7 @@
"links": [
"077d26e64b31245a"
],
"x": 2035,
"x": 2245,
"y": 4140,
"wires": []
},
@ -5699,5 +5702,28 @@
"36fedc6b0be804e7"
]
]
},
{
"id": "437450dbe9e8f9d5",
"type": "gate",
"z": "68ee181e9defa139",
"g": "cec3ab5a35c60f2d",
"name": "gate scene",
"controlTopic": "gate scene",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"defaultCmd": "default",
"statusCmd": "status",
"persist": false,
"storeName": "onFile",
"x": 290,
"y": 3780,
"wires": [
[
"2ea571ad93364449"
]
]
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -7,27 +7,6 @@
"info": "",
"env": []
},
{
"id": "537aac555c684ae3",
"type": "group",
"z": "f641ea2d0fb81a6f",
"name": "ble - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"93d12516213391e9",
"87bee795cb96b8ec",
"aa01a391bf2e3f28"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "9ebb276838bea666",
"type": "group",
@ -90,7 +69,7 @@
],
"x": 94,
"y": 199,
"w": 1162,
"w": 962,
"h": 142
},
{
@ -108,77 +87,14 @@
"d4252f4120129d32",
"55db3023ac9ae3c1",
"a411175648a9f14e",
"1052950934d566bf"
"1052950934d566bf",
"67a13187a58b3c8b"
],
"x": 1354,
"x": 1154,
"y": 199,
"w": 512,
"w": 712,
"h": 142
},
{
"id": "93d12516213391e9",
"type": "change",
"z": "f641ea2d0fb81a6f",
"g": "537aac555c684ae3",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "ble",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"aa01a391bf2e3f28"
]
]
},
{
"id": "87bee795cb96b8ec",
"type": "link in",
"z": "f641ea2d0fb81a6f",
"g": "537aac555c684ae3",
"name": "ble - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"93d12516213391e9"
]
]
},
{
"id": "aa01a391bf2e3f28",
"type": "link out",
"z": "f641ea2d0fb81a6f",
"g": "537aac555c684ae3",
"name": "ble - bucket",
"mode": "link",
"links": [],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "fe51c69eebe4478d",
"type": "catch",
@ -255,7 +171,7 @@
"y": 240,
"wires": [
[
"11a6de1c96795b4d"
"c8d1b777a117ee56"
]
]
},
@ -269,8 +185,8 @@
"links": [
"60e7ca843ea8f2e0"
],
"x": 1215,
"y": 240,
"x": 1015,
"y": 300,
"wires": []
},
{
@ -278,8 +194,8 @@
"type": "q-gate",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "",
"controlTopic": "gate",
"name": "gate source",
"controlTopic": "gate source",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
@ -297,11 +213,11 @@
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 590,
"y": 240,
"x": 410,
"y": 300,
"wires": [
[
"e60cbfea876d91e7"
"11a6de1c96795b4d"
]
]
},
@ -310,12 +226,11 @@
"type": "link in",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "mqtt bluetooth gate",
"name": "mqtt bluetooth - gate source",
"links": [
"d68d686bbf684c95",
"8fdb5986494986cc"
"f1a09e5456fe03fe"
],
"x": 455,
"x": 255,
"y": 300,
"wires": [
[
@ -341,11 +256,11 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 390,
"y": 240,
"x": 610,
"y": 300,
"wires": [
[
"c8d1b777a117ee56"
"e60cbfea876d91e7"
]
]
},
@ -372,8 +287,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 240,
"x": 840,
"y": 300,
"wires": [
[
"85c0a8032c692a9a"
@ -406,12 +321,14 @@
"d": true,
"g": "24eae452ebf32be6",
"name": "mqtt bluetooth",
"links": [],
"x": 1395,
"y": 240,
"links": [
"95ce18294052c029"
],
"x": 1195,
"y": 300,
"wires": [
[
"1052950934d566bf"
"67a13187a58b3c8b"
]
]
},
@ -451,12 +368,35 @@
"repair": false,
"outputs": 1,
"x": 1550,
"y": 240,
"y": 300,
"wires": [
[
"d4252f4120129d32",
"a411175648a9f14e"
]
]
},
{
"id": "67a13187a58b3c8b",
"type": "gate",
"z": "f641ea2d0fb81a6f",
"g": "24eae452ebf32be6",
"name": "gate target",
"controlTopic": "gate target",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"defaultCmd": "default",
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 1350,
"y": 300,
"wires": [
[
"1052950934d566bf"
]
]
}
]

View file

@ -67,7 +67,7 @@
],
"x": 2908,
"y": 413,
"w": 2834,
"w": 2854,
"h": 194
},
{
@ -88,7 +88,7 @@
],
"x": 2908,
"y": 653,
"w": 3554,
"w": 3574,
"h": 314
},
{
@ -129,30 +129,9 @@
],
"x": 68,
"y": 173,
"w": 1824,
"w": 1804,
"h": 194
},
{
"id": "f391c9146d7bbd74",
"type": "group",
"z": "b984eb4415408ed9",
"name": "rfxcom - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"21ece2cf0225f84c",
"c0f802fd747208b3",
"957e5c162598e005"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "c9bfd06d94c778b0",
"type": "group",
@ -273,17 +252,14 @@
"625e790911e89ba5",
"396a3bfdb0718a53",
"daf0d80c53e0db5f",
"12ee535e8df383e4",
"ada8e99555ab016e",
"e6c56ae4bc5df5d8",
"fbf9779ea5af2111",
"c04bcd7a0e7a788c",
"8a80d7d04901125e"
],
"x": 4354,
"y": 439,
"w": 1362,
"h": 142
"y": 499,
"w": 1382,
"h": 82
},
{
"id": "315a7d88b33ec298",
@ -334,9 +310,6 @@
"df6ef3b58ab095da",
"5de16c90c3283bc0",
"40b53bd7b2dd3fda",
"baa85c145ba7e3cd",
"7c7b0c1ef742761b",
"fd7c381284fe78b5",
"db5251d07949a8c0",
"67a3679a821559e1",
"6d3f4589b84a4ae0",
@ -345,7 +318,7 @@
],
"x": 4334,
"y": 679,
"w": 2102,
"w": 2122,
"h": 262
},
{
@ -394,7 +367,7 @@
],
"x": 94,
"y": 199,
"w": 1162,
"w": 942,
"h": 142
},
{
@ -412,11 +385,12 @@
"a4f8287c851b1796",
"de0c34e8104574b0",
"f0991abcca9403bc",
"a39cfa7867f1affb"
"a39cfa7867f1affb",
"d63df3a878dcfda7"
],
"x": 1354,
"x": 1134,
"y": 199,
"w": 512,
"w": 712,
"h": 142
},
{
@ -1399,7 +1373,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5540,
"x": 5560,
"y": 540,
"wires": [
[
@ -1430,7 +1404,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 5190,
"x": 5210,
"y": 540,
"wires": [
[
@ -1461,7 +1435,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5360,
"x": 5380,
"y": 540,
"wires": [
[
@ -1487,7 +1461,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 5030,
"x": 5050,
"y": 540,
"wires": [
[
@ -1513,7 +1487,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 4870,
"x": 4890,
"y": 540,
"wires": [
[
@ -1526,8 +1500,8 @@
"type": "gate",
"z": "b984eb4415408ed9",
"g": "ac4875632c3c08e1",
"name": "",
"controlTopic": "gate",
"name": "gate source",
"controlTopic": "gate source",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
@ -1536,67 +1510,14 @@
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 4710,
"x": 4550,
"y": 540,
"wires": [
[
"396a3bfdb0718a53"
"c04bcd7a0e7a788c"
]
]
},
{
"id": "12ee535e8df383e4",
"type": "link in",
"z": "b984eb4415408ed9",
"g": "ac4875632c3c08e1",
"name": "rfxcom - DIO-54791 - source gate",
"links": [
"94c79b8f52f0b6ba"
],
"x": 4395,
"y": 480,
"wires": [
[
"ada8e99555ab016e"
]
]
},
{
"id": "ada8e99555ab016e",
"type": "trigger",
"z": "b984eb4415408ed9",
"g": "ac4875632c3c08e1",
"name": "wait 10 s",
"op1": "",
"op2": "open",
"op1type": "nul",
"op2type": "str",
"duration": "10",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 4540,
"y": 480,
"wires": [
[
"daf0d80c53e0db5f"
]
]
},
{
"id": "e6c56ae4bc5df5d8",
"type": "comment",
"z": "b984eb4415408ed9",
"g": "ac4875632c3c08e1",
"name": "Do not replay command from mqtt on startup",
"info": "",
"x": 4830,
"y": 480,
"wires": []
"info": "Do not replay command from mqtt on startup"
},
{
"id": "fbf9779ea5af2111",
@ -1605,13 +1526,14 @@
"g": "ac4875632c3c08e1",
"name": "rfxcom - DIO-54791 - source",
"links": [
"24058eec92534b27"
"24058eec92534b27",
"f1a09e5456fe03fe"
],
"x": 4395,
"y": 540,
"wires": [
[
"c04bcd7a0e7a788c"
"daf0d80c53e0db5f"
]
]
},
@ -1633,11 +1555,11 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 4530,
"x": 4730,
"y": 540,
"wires": [
[
"daf0d80c53e0db5f"
"396a3bfdb0718a53"
]
]
},
@ -1651,7 +1573,7 @@
"links": [
"14a0a0839924964f"
],
"x": 5675,
"x": 5695,
"y": 540,
"wires": []
},
@ -1863,7 +1785,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5360,
"x": 5380,
"y": 840,
"wires": [
[
@ -1898,7 +1820,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5860,
"x": 5880,
"y": 840,
"wires": [
[
@ -1929,7 +1851,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 5510,
"x": 5530,
"y": 840,
"wires": [
[
@ -1960,7 +1882,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5680,
"x": 5700,
"y": 840,
"wires": [
[
@ -1988,7 +1910,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5360,
"x": 5380,
"y": 720,
"wires": [
[
@ -2016,7 +1938,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5360,
"x": 5380,
"y": 780,
"wires": [
[
@ -2044,7 +1966,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5360,
"x": 5380,
"y": 900,
"wires": [
[
@ -2075,7 +1997,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 5510,
"x": 5530,
"y": 900,
"wires": [
[
@ -2106,7 +2028,7 @@
"from": "",
"to": "",
"reg": false,
"x": 5680,
"x": 5700,
"y": 900,
"wires": [
[
@ -2140,7 +2062,7 @@
"checkall": "false",
"repair": false,
"outputs": 3,
"x": 5010,
"x": 5030,
"y": 840,
"wires": [
[
@ -2172,7 +2094,7 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 4850,
"x": 4870,
"y": 840,
"wires": [
[
@ -2201,7 +2123,7 @@
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 5180,
"x": 5200,
"y": 900,
"wires": [
[
@ -2217,8 +2139,8 @@
"type": "gate",
"z": "b984eb4415408ed9",
"g": "32b0e7dfab2726d5",
"name": "",
"controlTopic": "gate",
"name": "gate source",
"controlTopic": "gate source",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
@ -2227,67 +2149,14 @@
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 4690,
"x": 4530,
"y": 840,
"wires": [
[
"df6ef3b58ab095da"
"67a3679a821559e1"
]
]
},
{
"id": "baa85c145ba7e3cd",
"type": "link in",
"z": "b984eb4415408ed9",
"g": "32b0e7dfab2726d5",
"name": "rfxcom - DIO-54760 - source gate",
"links": [
"94c79b8f52f0b6ba"
],
"x": 4375,
"y": 780,
"wires": [
[
"7c7b0c1ef742761b"
]
]
},
{
"id": "7c7b0c1ef742761b",
"type": "trigger",
"z": "b984eb4415408ed9",
"g": "32b0e7dfab2726d5",
"name": "wait 10 s",
"op1": "",
"op2": "open",
"op1type": "nul",
"op2type": "str",
"duration": "10",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 4520,
"y": 780,
"wires": [
[
"40b53bd7b2dd3fda"
]
]
},
{
"id": "fd7c381284fe78b5",
"type": "comment",
"z": "b984eb4415408ed9",
"g": "32b0e7dfab2726d5",
"name": "Do not replay command from mqtt on startup",
"info": "",
"x": 4810,
"y": 780,
"wires": []
"info": "Do not replay command from mqtt on startup"
},
{
"id": "db5251d07949a8c0",
@ -2296,13 +2165,14 @@
"g": "32b0e7dfab2726d5",
"name": "rfxcom - DIO-54760 - source",
"links": [
"24058eec92534b27"
"24058eec92534b27",
"f1a09e5456fe03fe"
],
"x": 4375,
"y": 840,
"wires": [
[
"67a3679a821559e1"
"40b53bd7b2dd3fda"
]
]
},
@ -2324,11 +2194,11 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 4510,
"x": 4710,
"y": 840,
"wires": [
[
"40b53bd7b2dd3fda"
"df6ef3b58ab095da"
]
]
},
@ -2342,7 +2212,7 @@
"links": [
"14a0a0839924964f"
],
"x": 6395,
"x": 6415,
"y": 840,
"wires": []
},
@ -2621,7 +2491,7 @@
"y": 240,
"wires": [
[
"014d8a5287538444"
"be945e0c2c2208b0"
]
]
},
@ -2655,8 +2525,8 @@
"bd614b03c17a2dcd",
"0e9fc0eb536659f8"
],
"x": 1215,
"y": 240,
"x": 995,
"y": 300,
"wires": []
},
{
@ -2664,8 +2534,8 @@
"type": "q-gate",
"z": "b984eb4415408ed9",
"g": "3ab6bcaac666ddc4",
"name": "",
"controlTopic": "gate",
"name": "gate source",
"controlTopic": "gate source",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
@ -2683,11 +2553,11 @@
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 590,
"y": 240,
"x": 390,
"y": 300,
"wires": [
[
"03eacf7a446d906c"
"014d8a5287538444"
]
]
},
@ -2696,12 +2566,11 @@
"type": "link in",
"z": "b984eb4415408ed9",
"g": "3ab6bcaac666ddc4",
"name": "mqtt rfxcom gate",
"name": "mqtt rfxcom - gate source",
"links": [
"d68d686bbf684c95",
"8fdb5986494986cc"
"f1a09e5456fe03fe"
],
"x": 455,
"x": 235,
"y": 300,
"wires": [
[
@ -2727,11 +2596,11 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 410,
"y": 240,
"x": 590,
"y": 300,
"wires": [
[
"be945e0c2c2208b0"
"03eacf7a446d906c"
]
]
},
@ -2758,8 +2627,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 240,
"x": 820,
"y": 300,
"wires": [
[
"ed6bcbd32e72afe1"
@ -2781,7 +2650,7 @@
"correl": "",
"expiry": "",
"broker": "cdd708cca8782382",
"x": 1760,
"x": 1740,
"y": 240,
"wires": []
},
@ -2792,13 +2661,14 @@
"g": "ae4487a0bf7f922f",
"name": "mqtt rfxcom",
"links": [
"89d2eebcaafb5013"
"89d2eebcaafb5013",
"95ce18294052c029"
],
"x": 1395,
"y": 240,
"x": 1175,
"y": 300,
"wires": [
[
"a39cfa7867f1affb"
"d63df3a878dcfda7"
]
]
},
@ -2815,7 +2685,7 @@
"4c77acdbe9fb09c9",
"dff88b670b073ad9"
],
"x": 1695,
"x": 1675,
"y": 300,
"wires": []
},
@ -2838,8 +2708,8 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1550,
"y": 240,
"x": 1530,
"y": 300,
"wires": [
[
"a4f8287c851b1796",
@ -2847,70 +2717,6 @@
]
]
},
{
"id": "21ece2cf0225f84c",
"type": "change",
"z": "b984eb4415408ed9",
"g": "f391c9146d7bbd74",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "rfxcom",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"957e5c162598e005"
]
]
},
{
"id": "c0f802fd747208b3",
"type": "link in",
"z": "b984eb4415408ed9",
"g": "f391c9146d7bbd74",
"name": "rfxcom - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"21ece2cf0225f84c"
]
]
},
{
"id": "957e5c162598e005",
"type": "link out",
"z": "b984eb4415408ed9",
"g": "f391c9146d7bbd74",
"name": "rfxcom - bucket",
"mode": "link",
"links": [],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "4125458fe3950d3d",
"type": "link in",
@ -3333,7 +3139,7 @@
"bytopic": "all",
"topic": "topic",
"outputs": 2,
"x": 6060,
"x": 6080,
"y": 840,
"wires": [
[
@ -3364,12 +3170,35 @@
"from": "",
"to": "",
"reg": false,
"x": 6270,
"x": 6290,
"y": 900,
"wires": [
[
"6d3f4589b84a4ae0"
]
]
},
{
"id": "d63df3a878dcfda7",
"type": "gate",
"z": "b984eb4415408ed9",
"g": "ae4487a0bf7f922f",
"name": "gate target",
"controlTopic": "gate target",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"defaultCmd": "default",
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 1330,
"y": 300,
"wires": [
[
"a39cfa7867f1affb"
]
]
}
]

View file

@ -7,27 +7,6 @@
"info": "",
"env": []
},
{
"id": "3df91d363faee835",
"type": "group",
"z": "a1e22fa468f03c15",
"name": "linky - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"3325e4593048135a",
"05787fb2b77146c8",
"0ad08e9e45d5435d"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "f7b8f0b4a2f0c6c9",
"type": "group",
@ -88,7 +67,7 @@
],
"x": 68,
"y": 173,
"w": 1824,
"w": 1964,
"h": 194
},
{
@ -283,14 +262,15 @@
"nodes": [
"c16f1ae420f44fb5",
"b491f7eb02575108",
"ca7f0d58c55a1358",
"3423fd727184042c",
"fa2acb5ac9bb8c8c",
"a34aeb4c51bcf655"
"a34aeb4c51bcf655",
"10a09728dd2bd2fe",
"ca7f0d58c55a1358"
],
"x": 94,
"y": 199,
"w": 1162,
"w": 1102,
"h": 142
},
{
@ -308,11 +288,12 @@
"b0b2d9829230be99",
"5d53068f8b9e6936",
"a7e18f888c96ad05",
"7a6db5a28141b284"
"7a6db5a28141b284",
"c234d490bce96573"
],
"x": 1354,
"x": 1294,
"y": 199,
"w": 512,
"w": 712,
"h": 142
},
{
@ -400,74 +381,6 @@
"w": 342,
"h": 82
},
{
"id": "3325e4593048135a",
"type": "change",
"z": "a1e22fa468f03c15",
"g": "3df91d363faee835",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "linky",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"0ad08e9e45d5435d"
]
]
},
{
"id": "05787fb2b77146c8",
"type": "link in",
"z": "a1e22fa468f03c15",
"g": "3df91d363faee835",
"name": "linky - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"3325e4593048135a"
]
]
},
{
"id": "0ad08e9e45d5435d",
"type": "link out",
"z": "a1e22fa468f03c15",
"g": "3df91d363faee835",
"name": "linky - bucket",
"mode": "link",
"links": [
"60a457c83fc5f610",
"f5c52506bf786402",
"484e035839639ba9"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "8546ac1e37b1b1fc",
"type": "change",
@ -1333,7 +1246,7 @@
"type": "inject",
"z": "a1e22fa468f03c15",
"g": "543a74289e049295",
"name": "",
"name": "cron 90 s",
"props": [
{
"p": "payload"
@ -1912,7 +1825,7 @@
"type": "inject",
"z": "a1e22fa468f03c15",
"g": "d0f7ea2cfc4571a3",
"name": "",
"name": "cron 60 s",
"props": [
{
"p": "payload"
@ -2648,7 +2561,7 @@
"y": 240,
"wires": [
[
"fa2acb5ac9bb8c8c"
"ca7f0d58c55a1358"
]
]
},
@ -2663,53 +2576,20 @@
"acc79920bf40652d",
"ba77500cd9f7f6da"
],
"x": 1215,
"y": 240,
"x": 1155,
"y": 300,
"wires": []
},
{
"id": "ca7f0d58c55a1358",
"type": "q-gate",
"z": "a1e22fa468f03c15",
"g": "fee31a77e542b203",
"name": "",
"controlTopic": "gate",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"queueCmd": "close",
"defaultCmd": "default",
"triggerCmd": "trigger",
"flushCmd": "open",
"resetCmd": "reset",
"peekCmd": "peek",
"dropCmd": "drop",
"statusCmd": "status",
"maxQueueLength": "0",
"keepNewest": false,
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 590,
"y": 240,
"wires": [
[
"a34aeb4c51bcf655"
]
]
},
{
"id": "3423fd727184042c",
"type": "link in",
"z": "a1e22fa468f03c15",
"g": "fee31a77e542b203",
"name": "mqtt teleinfo gate",
"name": "mqtt teleinfo - gate source",
"links": [
"d68d686bbf684c95",
"8fdb5986494986cc"
"f1a09e5456fe03fe"
],
"x": 455,
"x": 235,
"y": 300,
"wires": [
[
@ -2735,11 +2615,11 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 390,
"y": 240,
"x": 590,
"y": 300,
"wires": [
[
"ca7f0d58c55a1358"
"10a09728dd2bd2fe"
]
]
},
@ -2766,8 +2646,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 240,
"x": 980,
"y": 300,
"wires": [
[
"b491f7eb02575108"
@ -2789,7 +2669,7 @@
"correl": "",
"expiry": "",
"broker": "d6ba6007b1901314",
"x": 1760,
"x": 1900,
"y": 240,
"wires": []
},
@ -2800,12 +2680,14 @@
"d": true,
"g": "0bf16a20b9656c59",
"name": "mqtt teleinfo",
"links": [],
"x": 1395,
"y": 240,
"links": [
"95ce18294052c029"
],
"x": 1335,
"y": 300,
"wires": [
[
"7a6db5a28141b284"
"c234d490bce96573"
]
]
},
@ -2817,7 +2699,7 @@
"name": "mqtt teleinfo output",
"mode": "link",
"links": [],
"x": 1695,
"x": 1835,
"y": 300,
"wires": []
},
@ -2840,8 +2722,8 @@
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1550,
"y": 240,
"x": 1690,
"y": 300,
"wires": [
[
"b0b2d9829230be99",
@ -3973,5 +3855,91 @@
"23093777025257b9"
]
]
},
{
"id": "c234d490bce96573",
"type": "gate",
"z": "a1e22fa468f03c15",
"g": "0bf16a20b9656c59",
"name": "gate target",
"controlTopic": "gate target",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"defaultCmd": "default",
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 1490,
"y": 300,
"wires": [
[
"7a6db5a28141b284"
]
]
},
{
"id": "10a09728dd2bd2fe",
"type": "switch",
"z": "a1e22fa468f03c15",
"g": "fee31a77e542b203",
"name": "clean",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "regex",
"v": "status",
"vt": "str",
"case": false
},
{
"t": "else"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 770,
"y": 300,
"wires": [
[],
[
"a34aeb4c51bcf655"
]
]
},
{
"id": "ca7f0d58c55a1358",
"type": "q-gate",
"z": "a1e22fa468f03c15",
"g": "fee31a77e542b203",
"name": "gate source",
"controlTopic": "gate source",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"queueCmd": "close",
"defaultCmd": "default",
"triggerCmd": "trigger",
"flushCmd": "open",
"resetCmd": "reset",
"peekCmd": "peek",
"dropCmd": "drop",
"statusCmd": "status",
"maxQueueLength": "0",
"keepNewest": false,
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 390,
"y": 300,
"wires": [
[
"fa2acb5ac9bb8c8c"
]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -326,27 +326,6 @@
"w": 1804,
"h": 194
},
{
"id": "a2ec354825243259",
"type": "group",
"z": "03220402a282530b",
"name": "zwave - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"af1f37a02c4c1955",
"d129c40c48c09bac",
"3226e1c699eaca3d"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "7df4891fb0f54c6a",
"type": "group",
@ -1262,7 +1241,7 @@
],
"x": 94,
"y": 199,
"w": 1162,
"w": 962,
"h": 142
},
{
@ -1280,11 +1259,12 @@
"92d0d0a5798c06cf",
"62dd3e8d6c87a0f9",
"82908fcfdf7f599a",
"a6b8c9c223ea5942"
"a6b8c9c223ea5942",
"e94a2e2fea564e1a"
],
"x": 1354,
"x": 1154,
"y": 199,
"w": 492,
"w": 692,
"h": 142
},
{
@ -2269,6 +2249,11 @@
"v": "msg.prefix&'/32/0/currentValue'",
"vt": "jsonata"
},
{
"t": "eq",
"v": "msg.prefix&'/48/0/Any'",
"vt": "jsonata"
},
{
"t": "eq",
"v": "msg.prefix&'/49/0/Air_temperature'",
@ -2292,10 +2277,13 @@
],
"checkall": "false",
"repair": false,
"outputs": 5,
"outputs": 6,
"x": 5530,
"y": 540,
"wires": [
[
"8da01c4e7e02c944"
],
[
"8da01c4e7e02c944"
],
@ -3665,7 +3653,7 @@
"type": "switch",
"z": "03220402a282530b",
"g": "be104700c7271732",
"name": "mdoel",
"name": "model",
"property": "model",
"propertyType": "msg",
"rules": [
@ -9584,7 +9572,7 @@
"y": 240,
"wires": [
[
"341bc94dee8e9f96"
"3738b065c50a0cac"
]
]
},
@ -9629,8 +9617,8 @@
"ba77500cd9f7f6da",
"b7b008f170dcc07f"
],
"x": 1215,
"y": 240,
"x": 1015,
"y": 300,
"wires": []
},
{
@ -9638,8 +9626,8 @@
"type": "q-gate",
"z": "03220402a282530b",
"g": "1e687cd4c0cc0ece",
"name": "",
"controlTopic": "gate",
"name": "gate source",
"controlTopic": "gate source",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
@ -9657,11 +9645,11 @@
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 590,
"y": 240,
"x": 410,
"y": 300,
"wires": [
[
"247945a0f503ac90"
"341bc94dee8e9f96"
]
]
},
@ -9670,12 +9658,11 @@
"type": "link in",
"z": "03220402a282530b",
"g": "1e687cd4c0cc0ece",
"name": "mqtt zwave gate",
"name": "mqtt zwave - gate source",
"links": [
"d68d686bbf684c95",
"8fdb5986494986cc"
"f1a09e5456fe03fe"
],
"x": 455,
"x": 255,
"y": 300,
"wires": [
[
@ -9701,11 +9688,11 @@
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 390,
"y": 240,
"x": 610,
"y": 300,
"wires": [
[
"3738b065c50a0cac"
"247945a0f503ac90"
]
]
},
@ -9732,8 +9719,8 @@
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 240,
"x": 840,
"y": 300,
"wires": [
[
"ebdbee7baef678a6"
@ -9766,38 +9753,14 @@
"g": "b5e2408a7d09537d",
"name": "mqtt zwave",
"links": [
"a28b7b24c0ae9f8c",
"a02f78ffaedc9739",
"bccc33b4c0db9760",
"1c422d2c16125ca4",
"a06f150e72b873f2",
"eb69b7f3d6f894e3",
"f887adfd6fa075c2",
"2be05ddfe63b7313",
"648fbe7936a6e771",
"db4fcb97194bacd4",
"5ff9bf33eef6edea",
"4af3a6003798549f",
"a4f551d4cf84d1fe",
"9155daed44745330",
"9678ea31a895d9f4",
"433ea1c0deda2243",
"e96ba8b040e58218",
"41eb5aee9b16405c",
"2dfc7db2679a7eca",
"4f46e6e1244003c5",
"87b36faadc498428",
"b8e5f320e0d5e119",
"8a93f83ac805403e",
"f531075e0ccd5d1d",
"89d2eebcaafb5013",
"5f9d0ad90e63e256"
"95ce18294052c029"
],
"x": 1395,
"y": 240,
"x": 1195,
"y": 300,
"wires": [
[
"a6b8c9c223ea5942"
"e94a2e2fea564e1a"
]
]
},
@ -9837,7 +9800,7 @@
"repair": false,
"outputs": 1,
"x": 1550,
"y": 240,
"y": 300,
"wires": [
[
"92d0d0a5798c06cf",
@ -9845,70 +9808,6 @@
]
]
},
{
"id": "af1f37a02c4c1955",
"type": "change",
"z": "03220402a282530b",
"g": "a2ec354825243259",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "zwave",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"3226e1c699eaca3d"
]
]
},
{
"id": "d129c40c48c09bac",
"type": "link in",
"z": "03220402a282530b",
"g": "a2ec354825243259",
"name": "zwave - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"af1f37a02c4c1955"
]
]
},
{
"id": "3226e1c699eaca3d",
"type": "link out",
"z": "03220402a282530b",
"g": "a2ec354825243259",
"name": "zwave - bucket",
"mode": "link",
"links": [],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "2128f35825dde7a6",
"type": "link in",
@ -11363,5 +11262,28 @@
"x": 4075,
"y": 2820,
"wires": []
},
{
"id": "e94a2e2fea564e1a",
"type": "gate",
"z": "03220402a282530b",
"g": "b5e2408a7d09537d",
"name": "gate target",
"controlTopic": "gate target",
"defaultState": "closed",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"defaultCmd": "default",
"statusCmd": "status",
"persist": false,
"storeName": "default",
"x": 1350,
"y": 300,
"wires": [
[
"a6b8c9c223ea5942"
]
]
}
]

View file

@ -7,27 +7,6 @@
"info": "",
"env": []
},
{
"id": "215a32642af29284",
"type": "group",
"z": "1362a4b4f08f3d5b",
"name": "entities - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"1d1b97b90e8247f3",
"633ef89ae7ff3aac",
"7d77f0bc3fa0e695"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "3c6b51ae156a9cac",
"type": "group",
@ -49,31 +28,6 @@
"w": 422,
"h": 82
},
{
"id": "d62c9cf0cb81a537",
"type": "group",
"z": "1362a4b4f08f3d5b",
"name": "entities - register rooms",
"style": {
"label": true,
"fill": "#ff0000",
"fill-opacity": "0.05"
},
"nodes": [
"69a45eebaa58325f",
"6eafb2a9c1ec95c0",
"39740b8338a622fd",
"4e5188bf59004a54",
"cc946bae3f4b46d8",
"fc14608145819575",
"6b5dd5979114ad9c",
"a1dbeb8cf51c3366"
],
"x": 94,
"y": 379,
"w": 1052,
"h": 142
},
{
"id": "7a3b686f86cb9beb",
"type": "group",
@ -160,30 +114,6 @@
"w": 1672,
"h": 1062
},
{
"id": "4aa11d03f1b394a5",
"type": "group",
"z": "1362a4b4f08f3d5b",
"name": "entities - boot entities",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"c622c7d8b085a6d6",
"25579c2b6bf10a53",
"03f2f5c00addae38",
"316e053ce43b8176",
"1fe7191fde26e8cb",
"a8759eb49d4d47f1",
"8c9e51e853c941fe"
],
"x": 94,
"y": 199,
"w": 1092,
"h": 142
},
{
"id": "d163a291da272610",
"type": "group",
@ -452,74 +382,6 @@
"w": 1872,
"h": 202
},
{
"id": "1d1b97b90e8247f3",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "215a32642af29284",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "entities",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"7d77f0bc3fa0e695"
]
]
},
{
"id": "633ef89ae7ff3aac",
"type": "link in",
"z": "1362a4b4f08f3d5b",
"g": "215a32642af29284",
"name": "entities - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"1d1b97b90e8247f3"
]
]
},
{
"id": "7d77f0bc3fa0e695",
"type": "link out",
"z": "1362a4b4f08f3d5b",
"g": "215a32642af29284",
"name": "entities - bucket",
"mode": "link",
"links": [
"035760b14c0a3455",
"595853542a4259b5",
"c94f5e94ee5a1918"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "73b58c6d90a26112",
"type": "catch",
@ -726,8 +588,7 @@
"g": "7a3b686f86cb9beb",
"name": "entities - add entity",
"links": [
"21fbe912a43d9c26",
"7d77f0bc3fa0e695",
"e509e8b44c9007e1",
"fdea9ff531a587a8"
],
"x": 1015,
@ -2125,7 +1986,8 @@
"206c1fb4a48067df",
"595853542a4259b5",
"7c98833082d48029",
"c94f5e94ee5a1918"
"c94f5e94ee5a1918",
"9bac1aa814ac44eb"
],
"x": 835,
"y": 1760,
@ -2216,125 +2078,6 @@
]
]
},
{
"id": "c622c7d8b085a6d6",
"type": "link in",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "entities - boot entities",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 300,
"wires": [
[
"25579c2b6bf10a53"
]
]
},
{
"id": "25579c2b6bf10a53",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "get entities from global",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "entities",
"tot": "global"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 440,
"y": 300,
"wires": [
[
"03f2f5c00addae38"
]
]
},
{
"id": "03f2f5c00addae38",
"type": "split",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "md5",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 650,
"y": 300,
"wires": [
[
"1fe7191fde26e8cb"
]
]
},
{
"id": "316e053ce43b8176",
"type": "debug",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "entities - boot entities",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1040,
"y": 240,
"wires": []
},
{
"id": "1fe7191fde26e8cb",
"type": "function",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "set device",
"func": "var msg = msg;\nvar newmsg = {};\n\nnewmsg = msg.payload;\n\nreturn newmsg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 820,
"y": 300,
"wires": [
[
"a8759eb49d4d47f1",
"316e053ce43b8176"
]
]
},
{
"id": "a8759eb49d4d47f1",
"type": "link out",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "entities - boot entities",
"mode": "link",
"links": [
"d85fe6335a6eae7b"
],
"x": 955,
"y": 300,
"wires": []
},
{
"id": "035760b14c0a3455",
"type": "link in",
@ -2344,7 +2087,7 @@
"links": [
"1d9d8c969ccdf2be",
"72f3d70342e83655",
"7d77f0bc3fa0e695",
"e509e8b44c9007e1",
"fdea9ff531a587a8"
],
"x": 1895,
@ -3137,7 +2880,8 @@
"035760b14c0a3455",
"206c1fb4a48067df",
"595853542a4259b5",
"7c98833082d48029"
"7c98833082d48029",
"9bac1aa814ac44eb"
],
"x": 855,
"y": 2480,
@ -3288,36 +3032,6 @@
]
]
},
{
"id": "8c9e51e853c941fe",
"type": "inject",
"z": "1362a4b4f08f3d5b",
"g": "4aa11d03f1b394a5",
"name": "reload entities",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 210,
"y": 240,
"wires": [
[
"25579c2b6bf10a53"
]
]
},
{
"id": "471f98e80f09e7fc",
"type": "change",
@ -3835,7 +3549,7 @@
"name": "entities - export entities",
"links": [
"72f3d70342e83655",
"7d77f0bc3fa0e695",
"e509e8b44c9007e1",
"fdea9ff531a587a8"
],
"x": 245,
@ -3902,7 +3616,8 @@
"links": [
"035760b14c0a3455",
"206c1fb4a48067df",
"7c98833082d48029"
"7c98833082d48029",
"9bac1aa814ac44eb"
],
"x": 4755,
"y": 2780,
@ -4383,24 +4098,6 @@
]
]
},
{
"id": "69a45eebaa58325f",
"type": "debug",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "entities - register rooms",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 870,
"y": 420,
"wires": []
},
{
"id": "5d3538459077156c",
"type": "switch",
@ -5566,7 +5263,7 @@
"t": "set",
"p": "list_entities[msg.parts.index]",
"pt": "flow",
"to": "{\t 'bucket':msg.payload.bucket,\t 'measurement':msg.payload.measurement,\t 'field':msg.payload.field,\t 'protocol':msg.payload.protocol,\t 'id':msg.payload.id,\t 'option':msg.payload.option,\t 'value':msg.option.default,\t 'brand':msg.payload.brand,\t 'mdoel':msg.payload.model\t}",
"to": "{\t 'bucket':msg.payload.bucket,\t 'measurement':msg.payload.measurement,\t 'field':msg.payload.field,\t 'protocol':msg.payload.protocol,\t 'id':msg.payload.id,\t 'option':msg.payload.option,\t 'value':msg.option.default,\t 'brand':msg.payload.brand,\t 'model':msg.payload.model\t}",
"tot": "jsonata"
}
],
@ -6302,7 +5999,8 @@
"links": [
"206c1fb4a48067df",
"6934471d55d3dc61",
"dc7b00050a7d145a"
"dc7b00050a7d145a",
"f83897b1f3c48879"
],
"x": 995,
"y": 3260,
@ -6731,7 +6429,8 @@
"mode": "link",
"links": [
"dc7b00050a7d145a",
"6934471d55d3dc61"
"6934471d55d3dc61",
"f83897b1f3c48879"
],
"x": 1295,
"y": 3560,
@ -7157,7 +6856,11 @@
"z": "1362a4b4f08f3d5b",
"g": "433d0b51637d03f5",
"name": "entities - export rooms",
"links": [],
"links": [
"39c9aaaef7274169",
"69f377a19c3aaebb",
"e509e8b44c9007e1"
],
"x": 135,
"y": 3680,
"wires": [
@ -7384,183 +7087,5 @@
"x": 1695,
"y": 3740,
"wires": []
},
{
"id": "6eafb2a9c1ec95c0",
"type": "link in",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "entities - rooms to buckets",
"links": [
"f4e4d84dd55f9d0d"
],
"x": 135,
"y": 480,
"wires": [
[
"4e5188bf59004a54"
]
]
},
{
"id": "39740b8338a622fd",
"type": "split",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "rooms",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "room",
"property": "payload",
"x": 650,
"y": 480,
"wires": [
[
"fc14608145819575",
"69a45eebaa58325f"
]
]
},
{
"id": "4e5188bf59004a54",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "get rooms from global",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "rooms",
"tot": "global"
},
{
"t": "set",
"p": "payload.home",
"pt": "msg",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "payload.config",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 440,
"y": 480,
"wires": [
[
"39740b8338a622fd"
]
]
},
{
"id": "cc946bae3f4b46d8",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "to global metrics",
"rules": [
{
"t": "set",
"p": "metrics[msg.room]",
"pt": "global",
"to": "{}",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 480,
"wires": [
[]
]
},
{
"id": "fc14608145819575",
"type": "switch",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "has bucket",
"property": "metrics",
"propertyType": "global",
"rules": [
{
"t": "hask",
"v": "room",
"vt": "msg"
},
{
"t": "else"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 830,
"y": 480,
"wires": [
[],
[
"cc946bae3f4b46d8"
]
]
},
{
"id": "6b5dd5979114ad9c",
"type": "comment",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "buckets which are rooms",
"info": "",
"x": 590,
"y": 420,
"wires": []
},
{
"id": "a1dbeb8cf51c3366",
"type": "inject",
"z": "1362a4b4f08f3d5b",
"g": "d62c9cf0cb81a537",
"name": "reload rooms",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 210,
"y": 420,
"wires": [
[
"4e5188bf59004a54"
]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -28,27 +28,6 @@
"w": 422,
"h": 82
},
{
"id": "391ec7c03beaed05",
"type": "group",
"z": "2365e16185f43e03",
"name": "scenes - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"a1054d58b95dbc48",
"85ebc176bf8b3f38",
"d92386370d84c100"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "3a3b15706a4f52c8",
"type": "group",
@ -815,74 +794,6 @@
"y": 60,
"wires": []
},
{
"id": "a1054d58b95dbc48",
"type": "change",
"z": "2365e16185f43e03",
"g": "391ec7c03beaed05",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "scenes",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"d92386370d84c100"
]
]
},
{
"id": "85ebc176bf8b3f38",
"type": "link in",
"z": "2365e16185f43e03",
"g": "391ec7c03beaed05",
"name": "scenes - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"a1054d58b95dbc48"
]
]
},
{
"id": "d92386370d84c100",
"type": "link out",
"z": "2365e16185f43e03",
"g": "391ec7c03beaed05",
"name": "scenes - bucket",
"mode": "link",
"links": [
"ee01b93bd48330c2",
"3214c7c1cc0f2f6f",
"3263d6b1a159b0ff"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "72ffa082cbdc1b9d",
"type": "change",
@ -7208,7 +7119,7 @@
"g": "fa9acbe70d9d6582",
"name": "scenes - boot wait",
"links": [
"d92386370d84c100"
"e509e8b44c9007e1"
],
"x": 1075,
"y": 60,
@ -8212,7 +8123,8 @@
"2cc720203fa29afe",
"3664ee38f2da0806",
"7c98833082d48029",
"3263d6b1a159b0ff"
"3263d6b1a159b0ff",
"9bac1aa814ac44eb"
],
"x": 1535,
"y": 6600,
@ -9913,9 +9825,9 @@
"g": "e6436a8697d9ab89",
"name": "scenes - import export scene",
"links": [
"d92386370d84c100",
"43166899a8759ba8",
"d7f64b57a1fb0517",
"43166899a8759ba8"
"e509e8b44c9007e1"
],
"x": 185,
"y": 4720,
@ -10838,10 +10750,10 @@
"g": "62f311d43397df29",
"name": "scenes - import export triggers",
"links": [
"d92386370d84c100",
"30b864529ddd7036",
"a21488eb16a467fa",
"d32dc8a93d1ac3ad",
"30b864529ddd7036"
"e509e8b44c9007e1"
],
"x": 185,
"y": 7080,

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
{
"name": "iotredloop",
"description": "Simple nodered home automation manager",
"version": "0.1.0",
"version": "0.2.0",
"dependencies": {
"node-red-contrib-flow-manager": "0.7.4",
"node-red-contrib-msg-speed": "2.1.0",