2024-04-27 11:29:07 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "bcb4426f5301b9f2",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "K.Routine",
|
|
|
|
"disabled": false,
|
|
|
|
"info": "",
|
|
|
|
"env": []
|
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "ae92592138b2c924",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "routine - cleanup",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
2024-05-18 07:40:16 +00:00
|
|
|
"29b883f9654391c8",
|
|
|
|
"67c721e1c392ce95"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
2024-04-27 16:59:38 +00:00
|
|
|
"x": 68,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1513,
|
2024-07-27 07:51:17 +00:00
|
|
|
"w": 974,
|
2024-05-18 07:40:16 +00:00
|
|
|
"h": 614
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "eefe7f96cf64784b",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"name": "routine - convert",
|
|
|
|
"style": {
|
|
|
|
"fill": "#777777",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"1f31199c6478bed6",
|
|
|
|
"4c2fd374879bcc62",
|
|
|
|
"e9594aa2f7507ac5",
|
|
|
|
"414cdce0186b98d1",
|
|
|
|
"1efacea0cfc080e2"
|
|
|
|
],
|
|
|
|
"x": 68,
|
|
|
|
"y": 173,
|
2024-08-10 14:54:49 +00:00
|
|
|
"w": 1074,
|
2024-08-10 15:40:02 +00:00
|
|
|
"h": 1294
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "a0496edd95de60f3",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-29 22:28:34 +00:00
|
|
|
"name": "catch error",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
2024-04-27 16:59:38 +00:00
|
|
|
"fill": "#ff0000",
|
|
|
|
"fill-opacity": "0.05",
|
2024-04-29 22:28:34 +00:00
|
|
|
"label": true,
|
|
|
|
"stroke": "#ff0000"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
"nodes": [
|
2024-04-27 16:59:38 +00:00
|
|
|
"2623529da72f4fab",
|
2024-04-29 22:28:34 +00:00
|
|
|
"b1fb932b0ddc8a02",
|
|
|
|
"9be1a70bcb57bda6"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
2024-04-27 16:59:38 +00:00
|
|
|
"x": 534,
|
|
|
|
"y": 19,
|
2024-04-29 22:28:34 +00:00
|
|
|
"w": 422,
|
2024-04-27 16:59:38 +00:00
|
|
|
"h": 82
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
2024-04-27 17:09:53 +00:00
|
|
|
{
|
|
|
|
"id": "86745759c5123379",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-28 14:21:20 +00:00
|
|
|
"name": "routine - search",
|
2024-04-27 17:09:53 +00:00
|
|
|
"style": {
|
|
|
|
"fill": "#777777",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"72f51982c4844cb9",
|
|
|
|
"4014b042aee9da95",
|
|
|
|
"3c8f18d59bc57893",
|
|
|
|
"0c4ddf3cde7a1e48",
|
2024-05-18 07:40:16 +00:00
|
|
|
"aadbfea0ba5c45ac",
|
|
|
|
"6d6cb3547780038f"
|
2024-04-27 17:09:53 +00:00
|
|
|
],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1188,
|
|
|
|
"y": 173,
|
2024-05-18 07:40:16 +00:00
|
|
|
"w": 2524,
|
|
|
|
"h": 1214
|
2024-04-27 17:09:53 +00:00
|
|
|
},
|
2024-04-29 22:28:34 +00:00
|
|
|
{
|
|
|
|
"id": "45b2c91cc17508eb",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"name": "routine -scene",
|
|
|
|
"style": {
|
|
|
|
"fill": "#777777",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"045e623bc9372013",
|
|
|
|
"3e3cab934a02705f",
|
|
|
|
"64c6321bb60023c8",
|
|
|
|
"25501926b0199872",
|
|
|
|
"b34b57138cb1f0b8",
|
|
|
|
"b69787e8c4f19d69",
|
|
|
|
"f988b45c3d4a17ef",
|
|
|
|
"9f00d3d0bf810df6",
|
|
|
|
"307791bd329226f2",
|
|
|
|
"9b5a799c5df750d4",
|
|
|
|
"d806e40ba2ef7092",
|
2024-08-10 15:40:02 +00:00
|
|
|
"e667a9372137a0e2"
|
2024-04-29 22:28:34 +00:00
|
|
|
],
|
|
|
|
"x": 68,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2173,
|
2024-07-21 15:21:51 +00:00
|
|
|
"w": 2564,
|
2024-08-10 15:40:02 +00:00
|
|
|
"h": 2594
|
2024-04-29 22:28:34 +00:00
|
|
|
},
|
2024-07-27 07:51:17 +00:00
|
|
|
{
|
|
|
|
"id": "690626cfbeb2561c",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"name": "routine mode",
|
|
|
|
"style": {
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true,
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"bad6bd5983b2fc9f",
|
|
|
|
"c30c5a2566decb7b",
|
|
|
|
"f102fde8fbfe7c18",
|
|
|
|
"3ace672b36b6d59a",
|
|
|
|
"da8810eee603cc4b",
|
|
|
|
"f887a03f0fb2827a",
|
|
|
|
"303274117f982501",
|
|
|
|
"d5c3ea38b7e24cce",
|
|
|
|
"73754465446fef43",
|
|
|
|
"1f5be99b367a12d0",
|
|
|
|
"0e78c14186033ece",
|
|
|
|
"000413191731e86e",
|
|
|
|
"af2d889126787278",
|
|
|
|
"e763cda95bda7657",
|
|
|
|
"d5b08905e305cd02",
|
|
|
|
"920db71eee0d2d26"
|
|
|
|
],
|
|
|
|
"x": 2754,
|
|
|
|
"y": 2119,
|
|
|
|
"w": 2552,
|
|
|
|
"h": 382
|
|
|
|
},
|
2024-04-27 11:29:07 +00:00
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "29b883f9654391c8",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "ae92592138b2c924",
|
|
|
|
"name": "cleanup measurement",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"7662aba4a1cc9dd0",
|
|
|
|
"0e0adba49a29f70f",
|
|
|
|
"b6d241198242a6e5",
|
|
|
|
"71e189afd8659a2d",
|
|
|
|
"f54479dc5f66620e",
|
|
|
|
"ce0256824b38971d",
|
|
|
|
"e5ceb5335c3b0d43",
|
|
|
|
"577298e83998f6d7",
|
|
|
|
"af147f11a3d4d652",
|
2024-07-27 07:51:17 +00:00
|
|
|
"afcaa4289efc76f2",
|
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1539,
|
2024-07-27 07:51:17 +00:00
|
|
|
"w": 922,
|
2024-04-27 16:59:38 +00:00
|
|
|
"h": 382
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1efacea0cfc080e2",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "eefe7f96cf64784b",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "convert to dimmer (0-99)",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
2024-04-27 16:59:38 +00:00
|
|
|
"stroke": "#92d04f",
|
2024-04-27 11:29:07 +00:00
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
2024-04-27 16:59:38 +00:00
|
|
|
"label": true
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
"nodes": [
|
2024-04-27 16:59:38 +00:00
|
|
|
"5070cadd19aa3954",
|
|
|
|
"d40b223a978b9a1e",
|
|
|
|
"6f7e7a5d7ebd031d",
|
|
|
|
"ba9d70c1045cb088",
|
|
|
|
"e7ac1f9f3c8ae78c",
|
|
|
|
"4f02d67d81a83e86",
|
2024-08-10 14:54:49 +00:00
|
|
|
"99e1c9e8654a9f81",
|
|
|
|
"191e6f3cf830909c",
|
|
|
|
"5cc363dda9bce25f"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1179,
|
2024-08-10 14:54:49 +00:00
|
|
|
"w": 1022,
|
|
|
|
"h": 262
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "414cdce0186b98d1",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "eefe7f96cf64784b",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "convert to percent",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
2024-04-27 16:59:38 +00:00
|
|
|
"0414c3f0d95341ac",
|
|
|
|
"b6f0d1b534279a98",
|
|
|
|
"6ec40cadb83543dd",
|
|
|
|
"d84b5b147f5fa7a4",
|
|
|
|
"73a136cc319902eb",
|
|
|
|
"bc396dcc308c42ee",
|
2024-08-10 14:54:49 +00:00
|
|
|
"f9f49c8d382ee23d",
|
|
|
|
"3086da9f511d035c",
|
|
|
|
"9185658a21e14bc0"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 879,
|
2024-08-10 14:54:49 +00:00
|
|
|
"w": 1022,
|
|
|
|
"h": 262
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e9594aa2f7507ac5",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "eefe7f96cf64784b",
|
|
|
|
"name": "convert to number",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"c213314798c4a9be",
|
|
|
|
"2e643b1746a93b44",
|
|
|
|
"4b32e84f6c624568",
|
|
|
|
"31b42964ff3deb4f",
|
|
|
|
"c2532fc6bfffd154",
|
|
|
|
"e112327c4a55aa35",
|
2024-08-10 14:54:49 +00:00
|
|
|
"91841d3915124c8e",
|
|
|
|
"3354f1abc3e1c2cb",
|
|
|
|
"8218f7e7b47837c8"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 579,
|
2024-08-10 14:54:49 +00:00
|
|
|
"w": 1022,
|
|
|
|
"h": 262
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "4c2fd374879bcc62",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "eefe7f96cf64784b",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "convert payload to boolean",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
2024-04-27 16:59:38 +00:00
|
|
|
"a72b20551a3b1f8c",
|
|
|
|
"b75da43db9ea9e7e",
|
|
|
|
"ef13c93a34fcab87",
|
|
|
|
"45647475dad51f30",
|
|
|
|
"825837a029db8ec5",
|
2024-08-10 14:54:49 +00:00
|
|
|
"bd6f2717b2f30241",
|
|
|
|
"73a1379dd26a21ce",
|
|
|
|
"5727bb6deb67bb8e"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 316.5,
|
2024-08-10 14:54:49 +00:00
|
|
|
"w": 1022,
|
|
|
|
"h": 224.5
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "1f31199c6478bed6",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "eefe7f96cf64784b",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "convert minute from midnight to hour",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
2024-04-27 16:59:38 +00:00
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
"nodes": [
|
2024-04-27 16:59:38 +00:00
|
|
|
"20617e4a877c8fc3",
|
|
|
|
"2467c6c0b11061b2",
|
|
|
|
"0385dd3208b83d41"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-04-27 16:59:38 +00:00
|
|
|
"y": 199,
|
|
|
|
"w": 402,
|
|
|
|
"h": 82
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
2024-04-27 16:59:38 +00:00
|
|
|
{
|
|
|
|
"id": "72f51982c4844cb9",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "86745759c5123379",
|
|
|
|
"name": "get search",
|
2024-04-27 11:29:07 +00:00
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
2024-04-27 16:59:38 +00:00
|
|
|
"2e0a9a817ddbf587",
|
|
|
|
"e37a5575a3f29d39",
|
|
|
|
"76d1c023d5b35ff4",
|
|
|
|
"c7a019355872d175",
|
|
|
|
"2ca73eb7becd74fa",
|
|
|
|
"67b1906b253417ba",
|
|
|
|
"c818166ce482c9ea"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1214,
|
|
|
|
"y": 199,
|
2024-04-27 16:59:38 +00:00
|
|
|
"w": 882,
|
|
|
|
"h": 142
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "4014b042aee9da95",
|
|
|
|
"type": "group",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-27 16:59:38 +00:00
|
|
|
"g": "86745759c5123379",
|
|
|
|
"name": "search temperature",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.1",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"ddd39f991efd9d31",
|
|
|
|
"caa4b983330ad4e6",
|
|
|
|
"3b472a6e4d9e2543",
|
|
|
|
"32eced70dca88722",
|
2024-05-18 07:40:16 +00:00
|
|
|
"f4db36e02df945e3"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1214,
|
2024-05-18 07:40:16 +00:00
|
|
|
"y": 619,
|
|
|
|
"w": 832,
|
|
|
|
"h": 142
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "3c8f18d59bc57893",
|
|
|
|
"type": "group",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-27 16:59:38 +00:00
|
|
|
"g": "86745759c5123379",
|
|
|
|
"name": "search humidity",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.1",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"fe7aea286ecc9d35",
|
|
|
|
"bef84cb5efd8c2ca",
|
|
|
|
"49927aaaafcc60ec",
|
|
|
|
"928c3fc0fa3c5d18",
|
2024-05-18 07:40:16 +00:00
|
|
|
"cc102f3a82a49a8e"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1214,
|
2024-05-18 07:40:16 +00:00
|
|
|
"y": 799,
|
|
|
|
"w": 812,
|
|
|
|
"h": 142
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "0c4ddf3cde7a1e48",
|
|
|
|
"type": "group",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-27 16:59:38 +00:00
|
|
|
"g": "86745759c5123379",
|
|
|
|
"name": "search luminosity",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.1",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"13fd23967c40a92e",
|
|
|
|
"1efc470e05455106",
|
|
|
|
"aa96d5f77fcf68e5",
|
2024-05-18 07:40:16 +00:00
|
|
|
"a270d561b0b64cf1",
|
|
|
|
"046bf60c40a4df98"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1214,
|
2024-05-18 07:40:16 +00:00
|
|
|
"y": 979,
|
|
|
|
"w": 832,
|
|
|
|
"h": 142
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"id": "aadbfea0ba5c45ac",
|
|
|
|
"type": "group",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-04-27 16:59:38 +00:00
|
|
|
"g": "86745759c5123379",
|
|
|
|
"name": "search motion",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.1",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"2056847a88301b2a",
|
|
|
|
"c421ec88d5d06d7d",
|
|
|
|
"fc6bb2e0b3eb77b2",
|
|
|
|
"618d9c3f33eefa02",
|
|
|
|
"e68d7c0f7721c679",
|
|
|
|
"12b1109de2f09cfc",
|
|
|
|
"a064a6c08fd2f40e",
|
|
|
|
"6b4bc7764df41753",
|
|
|
|
"6c18cec9a1d74489",
|
|
|
|
"02373ad0b61f2a49",
|
|
|
|
"719eb321350dc033",
|
|
|
|
"0845a36d7c0aef49",
|
|
|
|
"333d8ba06abef807",
|
|
|
|
"276eb14e1448224d"
|
|
|
|
],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1214,
|
2024-05-18 07:40:16 +00:00
|
|
|
"y": 1159,
|
2024-04-27 16:59:38 +00:00
|
|
|
"w": 2192,
|
|
|
|
"h": 202
|
|
|
|
},
|
2024-04-28 14:21:20 +00:00
|
|
|
{
|
|
|
|
"id": "045e623bc9372013",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "get routine",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true,
|
|
|
|
"fill": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"e520201563045cb4",
|
|
|
|
"a8f829fc8739cbb4",
|
|
|
|
"c85ce3c75b98194c",
|
|
|
|
"72d48a3deee90360",
|
|
|
|
"e3a3ecfeaece1f56",
|
|
|
|
"4d2bb338a00188bc",
|
2024-07-21 15:21:51 +00:00
|
|
|
"88ccb4248f722c7c",
|
|
|
|
"990a132bdc19ba61",
|
|
|
|
"d23cdc7e80275f61"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2199,
|
2024-07-21 15:21:51 +00:00
|
|
|
"w": 902,
|
2024-04-28 14:21:20 +00:00
|
|
|
"h": 142
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "3e3cab934a02705f",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine mode",
|
|
|
|
"style": {
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true,
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"786e0b4140b91eec",
|
|
|
|
"62542a01ce24c466",
|
|
|
|
"e3a35f2dd6b2effb",
|
|
|
|
"662f3d7d7dc36aa5",
|
|
|
|
"d6ab2dddb189d358",
|
|
|
|
"2910033beb566769",
|
|
|
|
"d443f248bce0dea7",
|
|
|
|
"5c82e25e697c0d09",
|
|
|
|
"c1a22098f4c6b607",
|
|
|
|
"f01348b36d2a9638",
|
|
|
|
"48d872c1b6b9f14e",
|
|
|
|
"d23ac11c26d59e4c",
|
|
|
|
"a69fbd6551e4fdc3",
|
|
|
|
"caaebc71902e0463"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2379,
|
2024-07-21 15:21:51 +00:00
|
|
|
"w": 2092,
|
|
|
|
"h": 262
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "64c6321bb60023c8",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine motion",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"0ecfc7dac3dc83c0",
|
|
|
|
"c5b20f0c23888919",
|
|
|
|
"323c3fcbf4964c63",
|
|
|
|
"4ce06c7bae7e516c",
|
|
|
|
"410b8eabf0b0e224",
|
|
|
|
"4062a49e5518576b",
|
|
|
|
"7864c4a726691281",
|
|
|
|
"47a324541ec2b6d3",
|
|
|
|
"a161c5ca3d8a7cbd",
|
|
|
|
"6e52a200ac67e354",
|
|
|
|
"c46a31d677767693",
|
|
|
|
"6d71d5859b10c11e"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2679,
|
2024-04-28 14:21:20 +00:00
|
|
|
"w": 2012,
|
|
|
|
"h": 202
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "25501926b0199872",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine retention",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"4a635ad2a4ed1736",
|
|
|
|
"d0d24a8b117023f6",
|
|
|
|
"52a33cee0e647f92",
|
|
|
|
"6a0f0e71db157af3",
|
|
|
|
"9b3093c5a5deb452",
|
|
|
|
"b8b9d93908937f8c",
|
|
|
|
"22152f0515ad69cc",
|
|
|
|
"4d9991942988ca8c",
|
|
|
|
"d063b27f8e80f37a",
|
|
|
|
"4722e25f42aea056",
|
|
|
|
"cae336906ea60890",
|
|
|
|
"393ec8decef297e9",
|
|
|
|
"4424ab4df00e08ab",
|
|
|
|
"ffbd707de9b88a2a"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2919,
|
2024-04-28 14:21:20 +00:00
|
|
|
"w": 2432,
|
|
|
|
"h": 202
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b34b57138cb1f0b8",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine darkness",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"e4e85b184291d354",
|
|
|
|
"868cdb733181338e",
|
|
|
|
"eca9437aa8d37772",
|
|
|
|
"e2dec83660823bf1",
|
|
|
|
"71ecc4394b7cd05d",
|
|
|
|
"61c2bd67b3234fc7",
|
|
|
|
"466c44b0fc1258a7",
|
|
|
|
"8ebbcb564e209cfe",
|
|
|
|
"f7baae7f1933153b",
|
|
|
|
"173b0a787256ad6e",
|
|
|
|
"f4fc24ae76a91012",
|
|
|
|
"3abf64e6a345da67"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3159,
|
2024-04-28 14:21:20 +00:00
|
|
|
"w": 2132,
|
|
|
|
"h": 202
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b69787e8c4f19d69",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine luminosity",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"cf26b829266bd04d",
|
|
|
|
"ee16cba79f20cab6",
|
|
|
|
"4adbb709556ae11d",
|
|
|
|
"71518dbc12244577",
|
|
|
|
"7fa7e12c70c95e89",
|
|
|
|
"288d2e1448cc8b87",
|
|
|
|
"a657a100c0565a83",
|
|
|
|
"a39f08f65c396752",
|
|
|
|
"72d6ed833a034f7d",
|
|
|
|
"0ca5636806f3803d",
|
|
|
|
"d4b36602686961b1",
|
|
|
|
"89bf9e5c676a419c"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3399,
|
2024-04-28 14:21:20 +00:00
|
|
|
"w": 2142,
|
|
|
|
"h": 202
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f988b45c3d4a17ef",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine value",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"7faaa39c9c2c3e20",
|
|
|
|
"5471122f3d914196",
|
|
|
|
"9143e0b7b9fb3da2",
|
|
|
|
"d8a3424e6a6f2827",
|
|
|
|
"38e608120e43ab47",
|
|
|
|
"b45278a6c6f45dfa",
|
|
|
|
"121a9d42a981eb6b",
|
|
|
|
"03700a180e6f8f5b",
|
|
|
|
"9817b8c4d33159f8",
|
|
|
|
"a91140dc661eacbf",
|
|
|
|
"e1587fba40d7939d",
|
|
|
|
"3543fc558bdce918",
|
|
|
|
"621c0f611ba16957",
|
|
|
|
"00f7d91e9a6c7617",
|
|
|
|
"56ad085f1663d4c0",
|
|
|
|
"a8bcb0395fa8accc",
|
|
|
|
"0d08a03de0051e7c",
|
|
|
|
"587236e6160da46c",
|
|
|
|
"5a60da9d02342972",
|
|
|
|
"fd900a26e130d2ff"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3639,
|
2024-04-28 14:21:20 +00:00
|
|
|
"w": 2512,
|
|
|
|
"h": 382
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "9f00d3d0bf810df6",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine timer",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"37f065b203f116d2",
|
|
|
|
"04fda8ed412120ca",
|
|
|
|
"cbe63d29435cb7ce",
|
|
|
|
"bfe242eadca39791",
|
|
|
|
"9dd47ae7d0e90c33",
|
|
|
|
"7953d461e902f8ac",
|
|
|
|
"834ce9850cdb0a72",
|
|
|
|
"8a154930c7214f18",
|
2024-05-01 08:52:11 +00:00
|
|
|
"23ef9aaffb31c21d",
|
|
|
|
"fe78724dc1f72f65",
|
|
|
|
"dfea66c91b07899f",
|
|
|
|
"4a5ceb9b3c8f086f",
|
|
|
|
"f71bea4c343fe0db",
|
|
|
|
"952e936c8f1df120",
|
|
|
|
"62c79bf2c5d8ec18",
|
|
|
|
"f0d22091d2275f34",
|
|
|
|
"87a3f60a0c03a21b",
|
|
|
|
"5fbf2cbdb32f0e97",
|
2024-05-01 10:09:39 +00:00
|
|
|
"68ca4fce9324436b",
|
|
|
|
"ec1f489e4f505a2f"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4059,
|
2024-05-01 10:09:39 +00:00
|
|
|
"w": 1972,
|
|
|
|
"h": 322
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "307791bd329226f2",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
2024-07-21 15:21:51 +00:00
|
|
|
"name": "routine nocturnal",
|
2024-04-28 14:21:20 +00:00
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"7017965f91bd177c",
|
|
|
|
"56d6ee950d3d34c2",
|
|
|
|
"eadfca81c8de4eb0",
|
|
|
|
"dfec2e7efb555d4d",
|
|
|
|
"ce2126235b863201",
|
|
|
|
"e09b198994376110"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4419,
|
2024-07-21 15:21:51 +00:00
|
|
|
"w": 732,
|
2024-04-28 14:21:20 +00:00
|
|
|
"h": 142
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "9b5a799c5df750d4",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "routine daily",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"096892189e1be538",
|
|
|
|
"ecec645c51268d24",
|
|
|
|
"b51db40b65f89f75",
|
|
|
|
"0edba4106bc26051",
|
|
|
|
"c63c05889184c3bc",
|
2024-07-21 15:21:51 +00:00
|
|
|
"e19c1916670880d7",
|
|
|
|
"bde274663e77041e"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4599,
|
2024-07-21 15:21:51 +00:00
|
|
|
"w": 992,
|
2024-04-28 14:21:20 +00:00
|
|
|
"h": 142
|
|
|
|
},
|
2024-05-18 07:40:16 +00:00
|
|
|
{
|
|
|
|
"id": "67c721e1c392ce95",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "ae92592138b2c924",
|
|
|
|
"name": "cleanup - get short field",
|
|
|
|
"style": {
|
|
|
|
"stroke": "#92d04f",
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.05",
|
|
|
|
"label": true
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"434f87c8d8fc6bbe",
|
|
|
|
"c24f3d6f90d2b48c",
|
|
|
|
"1063523382ddaa94",
|
|
|
|
"4c8f3b4e9500ab16",
|
|
|
|
"aeb0d3b6747c9280",
|
|
|
|
"1b97b56ade9a8291"
|
|
|
|
],
|
|
|
|
"x": 94,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1959,
|
2024-05-18 07:40:16 +00:00
|
|
|
"w": 662,
|
|
|
|
"h": 142
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6d6cb3547780038f",
|
|
|
|
"type": "group",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "86745759c5123379",
|
|
|
|
"name": "get search field",
|
|
|
|
"style": {
|
|
|
|
"fill": "#92d04f",
|
|
|
|
"fill-opacity": "0.1",
|
|
|
|
"label": true,
|
|
|
|
"stroke": "#92d04f"
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
"63d576c59c72d487",
|
|
|
|
"c8adad442791f18d",
|
|
|
|
"0993151366888a6b",
|
|
|
|
"887a9038d6639660",
|
|
|
|
"57578e259ab0268c",
|
|
|
|
"91e7dfc3c8108b06",
|
|
|
|
"e43d2ea5180895eb",
|
|
|
|
"2296b4ea298a4c72",
|
|
|
|
"eabe1caabd0e57bb",
|
|
|
|
"d6ae0dbd98f320d7",
|
|
|
|
"0ec06f9bc9a77ac2",
|
|
|
|
"a1b41356df668e41",
|
|
|
|
"68788cf7b1f1d8b6",
|
|
|
|
"ab77d6fa10f465f3",
|
|
|
|
"8e60adca1a22f123",
|
|
|
|
"0fe612fcfd28c570",
|
|
|
|
"77270fac9cacc97f",
|
|
|
|
"34e98bc055db6ee2"
|
|
|
|
],
|
|
|
|
"x": 1214,
|
|
|
|
"y": 379,
|
|
|
|
"w": 2472,
|
|
|
|
"h": 202
|
|
|
|
},
|
2024-04-27 16:59:38 +00:00
|
|
|
{
|
|
|
|
"id": "afcaa4289efc76f2",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "range",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "btwn",
|
|
|
|
"v": "-50",
|
|
|
|
"vt": "num",
|
|
|
|
"v2": "50",
|
|
|
|
"v2t": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1820,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"b6d241198242a6e5"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "af147f11a3d4d652",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "round",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$round(msg.payload,1)",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 530,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1640,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"577298e83998f6d7"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "577298e83998f6d7",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "range",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "btwn",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num",
|
|
|
|
"v2": "99",
|
|
|
|
"v2t": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "true",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1640,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"b6d241198242a6e5"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e5ceb5335c3b0d43",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "range",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "btwn",
|
|
|
|
"v": "-20000",
|
|
|
|
"vt": "num",
|
|
|
|
"v2": "20000",
|
|
|
|
"v2t": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1760,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"b6d241198242a6e5"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ce0256824b38971d",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "range",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "btwn",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num",
|
|
|
|
"v2": "20000",
|
|
|
|
"v2t": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1700,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"b6d241198242a6e5"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f54479dc5f66620e",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "range",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "btwn",
|
|
|
|
"v": "-20",
|
|
|
|
"vt": "num",
|
|
|
|
"v2": "50",
|
|
|
|
"v2t": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "true",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1580,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"b6d241198242a6e5"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "71e189afd8659a2d",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "round",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$round(msg.payload,1)",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 530,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1580,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f54479dc5f66620e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b6d241198242a6e5",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "cleanup measurement",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-07-27 07:51:17 +00:00
|
|
|
"x": 975,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1820,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0e0adba49a29f70f",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "select measurement",
|
|
|
|
"property": "measurement",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "temperature",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "humidity",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "luminosity",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "power",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "current",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 6,
|
|
|
|
"x": 320,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1820,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"71e189afd8659a2d"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"af147f11a3d4d652"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ce0256824b38971d"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"e5ceb5335c3b0d43"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"afcaa4289efc76f2"
|
|
|
|
],
|
|
|
|
[
|
2024-07-27 07:51:17 +00:00
|
|
|
"73cc2886c2652521"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "7662aba4a1cc9dd0",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "cleanup measurement",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1820,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"0e0adba49a29f70f"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "99e1c9e8654a9f81",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "convert to dimmer",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-08-10 14:54:49 +00:00
|
|
|
"x": 1075,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1400,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "4f02d67d81a83e86",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "convert to dimmer",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1280,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"5070cadd19aa3954"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e7ac1f9f3c8ae78c",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "0",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1340,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"191e6f3cf830909c"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ba9d70c1045cb088",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "nb",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$number(msg.payload)",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1280,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"191e6f3cf830909c"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6f7e7a5d7ebd031d",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "99",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "99",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1220,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"191e6f3cf830909c"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d40b223a978b9a1e",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "format to dimmer",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "gt",
|
|
|
|
"v": "99",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "lt",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "istype",
|
|
|
|
"v": "number",
|
|
|
|
"vt": "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "false"
|
2024-08-10 14:54:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-08-10 14:54:49 +00:00
|
|
|
"outputs": 6,
|
2024-04-27 16:59:38 +00:00
|
|
|
"x": 590,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1280,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"6f7e7a5d7ebd031d"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"e7ac1f9f3c8ae78c"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ba9d70c1045cb088"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"6f7e7a5d7ebd031d"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"e7ac1f9f3c8ae78c"
|
2024-08-10 14:54:49 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"5cc363dda9bce25f"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "5070cadd19aa3954",
|
|
|
|
"type": "json",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "convert payload to json",
|
|
|
|
"property": "payload",
|
|
|
|
"action": "obj",
|
|
|
|
"pretty": false,
|
|
|
|
"x": 330,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1280,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"d40b223a978b9a1e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f9f49c8d382ee23d",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "convert to percent",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-08-10 14:54:49 +00:00
|
|
|
"x": 1075,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1100,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "bc396dcc308c42ee",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "convert to percent",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 980,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"0414c3f0d95341ac"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "73a136cc319902eb",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "0",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1040,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"9185658a21e14bc0"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d84b5b147f5fa7a4",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "nb",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$number(msg.payload)",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 980,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"9185658a21e14bc0"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6ec40cadb83543dd",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "100",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "100",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 920,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"9185658a21e14bc0"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b6f0d1b534279a98",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "format to percent",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "gt",
|
|
|
|
"v": "100",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "lt",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "istype",
|
|
|
|
"v": "number",
|
|
|
|
"vt": "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "false"
|
2024-08-10 14:54:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-08-10 14:54:49 +00:00
|
|
|
"outputs": 6,
|
2024-04-27 16:59:38 +00:00
|
|
|
"x": 590,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 980,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"6ec40cadb83543dd"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73a136cc319902eb"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"d84b5b147f5fa7a4"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"6ec40cadb83543dd"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73a136cc319902eb"
|
2024-08-10 14:54:49 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"3086da9f511d035c"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0414c3f0d95341ac",
|
|
|
|
"type": "json",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "convert payload to json",
|
|
|
|
"property": "payload",
|
|
|
|
"action": "obj",
|
|
|
|
"pretty": false,
|
|
|
|
"x": 330,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 980,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b6f0d1b534279a98"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "91841d3915124c8e",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "convert to number",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-08-10 14:54:49 +00:00
|
|
|
"x": 1075,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 740,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e112327c4a55aa35",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "convert to number",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 680,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c213314798c4a9be"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c2532fc6bfffd154",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "0",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 740,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"8218f7e7b47837c8"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "31b42964ff3deb4f",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 680,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"8218f7e7b47837c8"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "4b32e84f6c624568",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "nb",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$number(msg.payload)",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 620,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"8218f7e7b47837c8"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2e643b1746a93b44",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "format to number",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "istype",
|
|
|
|
"v": "number",
|
|
|
|
"vt": "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "false"
|
2024-08-10 14:54:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-08-10 14:54:49 +00:00
|
|
|
"outputs": 4,
|
2024-04-27 16:59:38 +00:00
|
|
|
"x": 590,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 680,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"4b32e84f6c624568"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"31b42964ff3deb4f"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"c2532fc6bfffd154"
|
2024-08-10 14:54:49 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"3354f1abc3e1c2cb"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c213314798c4a9be",
|
|
|
|
"type": "json",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "convert payload to json",
|
|
|
|
"property": "payload",
|
|
|
|
"action": "obj",
|
|
|
|
"pretty": false,
|
|
|
|
"x": 330,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 680,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"2e643b1746a93b44"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "bd6f2717b2f30241",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "convert to boolean",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-08-10 14:54:49 +00:00
|
|
|
"x": 1075,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 500,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "825837a029db8ec5",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "true",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 440,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"5727bb6deb67bb8e"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "45647475dad51f30",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "false",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 380,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 14:54:49 +00:00
|
|
|
"5727bb6deb67bb8e"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ef13c93a34fcab87",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "format to boolean",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "lte",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "gt",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "false"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "true"
|
2024-08-10 14:54:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-08-10 14:54:49 +00:00
|
|
|
"outputs": 5,
|
2024-04-27 16:59:38 +00:00
|
|
|
"x": 590,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 380,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"45647475dad51f30"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"825837a029db8ec5"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"45647475dad51f30"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"825837a029db8ec5"
|
2024-08-10 14:54:49 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"73a1379dd26a21ce"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b75da43db9ea9e7e",
|
|
|
|
"type": "json",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "convert payload to json",
|
|
|
|
"property": "payload",
|
|
|
|
"action": "obj",
|
|
|
|
"pretty": false,
|
|
|
|
"x": 310,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 380,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"ef13c93a34fcab87"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "a72b20551a3b1f8c",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "convert to boolean",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 380,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b75da43db9ea9e7e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0385dd3208b83d41",
|
|
|
|
"type": "function",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1f31199c6478bed6",
|
|
|
|
"name": "minute to HH:mm",
|
|
|
|
"func": "var d = Number(msg.payload);\nvar h = Math.floor(d / 60);\nvar m = Math.floor(d % 60);\nif (h < 10) { h = h < 5 ? '00' : '0' + h; }\nif (m < 10) { m = m < 5 ? '00' : '0' + m; }\nmsg.payload = h + ':' + m;\nreturn msg;",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 290,
|
|
|
|
"y": 240,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"2467c6c0b11061b2"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2467c6c0b11061b2",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1f31199c6478bed6",
|
|
|
|
"name": "minute to HH:mm",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 455,
|
|
|
|
"y": 240,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "20617e4a877c8fc3",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1f31199c6478bed6",
|
|
|
|
"name": "minute to HH:mm",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
|
|
|
"y": 240,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"0385dd3208b83d41"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2623529da72f4fab",
|
|
|
|
"type": "catch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "a0496edd95de60f3",
|
|
|
|
"name": "catch error",
|
|
|
|
"scope": null,
|
|
|
|
"uncaught": false,
|
|
|
|
"x": 620,
|
|
|
|
"y": 60,
|
|
|
|
"wires": [
|
|
|
|
[
|
2024-04-29 22:28:34 +00:00
|
|
|
"b1fb932b0ddc8a02"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2e0a9a817ddbf587",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"name": "get search",
|
|
|
|
"links": [],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1255,
|
|
|
|
"y": 300,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"76d1c023d5b35ff4"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e37a5575a3f29d39",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"name": "get search",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 2055,
|
|
|
|
"y": 300,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "76d1c023d5b35ff4",
|
|
|
|
"type": "delay",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"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,
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1400,
|
|
|
|
"y": 300,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c7a019355872d175"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c7a019355872d175",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"name": "check bucket",
|
|
|
|
"property": "scene",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "hask",
|
|
|
|
"v": "bucket",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1590,
|
|
|
|
"y": 300,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"2ca73eb7becd74fa"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"c818166ce482c9ea"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2ca73eb7becd74fa",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"name": "exists",
|
|
|
|
"property": "metrics[msg.scene.bucket]",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "hask",
|
|
|
|
"v": "measurement",
|
|
|
|
"vt": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1770,
|
|
|
|
"y": 240,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"67b1906b253417ba"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"c818166ce482c9ea"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "67b1906b253417ba",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"name": "rsp 1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "search",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "{'response':1}",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "measurement",
|
|
|
|
"pt": "msg",
|
2024-04-27 17:09:53 +00:00
|
|
|
"to": "metrics[msg.scene.bucket][msg.measurement]",
|
2024-04-27 16:59:38 +00:00
|
|
|
"tot": "global"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1930,
|
|
|
|
"y": 240,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"e37a5575a3f29d39"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c818166ce482c9ea",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "72f51982c4844cb9",
|
|
|
|
"name": "rsp -1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "search",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "{'response':-1}",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1930,
|
|
|
|
"y": 300,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"e37a5575a3f29d39"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ddd39f991efd9d31",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4014b042aee9da95",
|
|
|
|
"name": "search temperature",
|
2024-04-27 11:29:07 +00:00
|
|
|
"links": [],
|
2024-05-01 16:11:37 +00:00
|
|
|
"x": 1255,
|
2024-05-18 07:40:16 +00:00
|
|
|
"y": 720,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f4db36e02df945e3"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "caa4b983330ad4e6",
|
|
|
|
"type": "link out",
|
2024-04-27 16:59:38 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4014b042aee9da95",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "search temperature",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 1835,
|
|
|
|
"y": 720,
|
|
|
|
"wires": []
|
2024-04-27 16:59:38 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "3b472a6e4d9e2543",
|
|
|
|
"type": "debug",
|
2024-04-27 16:59:38 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4014b042aee9da95",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "search temperature",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 1910,
|
|
|
|
"y": 660,
|
|
|
|
"wires": []
|
2024-04-27 16:59:38 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "32eced70dca88722",
|
|
|
|
"type": "link call",
|
2024-04-27 16:59:38 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4014b042aee9da95",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "",
|
|
|
|
"links": [
|
|
|
|
"63d576c59c72d487"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
|
|
|
"x": 1680,
|
|
|
|
"y": 720,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"caa4b983330ad4e6",
|
|
|
|
"3b472a6e4d9e2543"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "f4db36e02df945e3",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4014b042aee9da95",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "check measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
2024-05-18 07:40:16 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "measurement",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "temperature",
|
|
|
|
"tot": "str"
|
|
|
|
},
|
2024-04-27 16:59:38 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "[\t 'cmv',\t 'left bay',\t 'right bay',\t 'detector',\t 'door',\t 'air conditioner',\t 'sensor',\t 'probe'\t ]",
|
|
|
|
"tot": "jsonata"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1440,
|
|
|
|
"y": 720,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"32eced70dca88722"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "fe7aea286ecc9d35",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3c8f18d59bc57893",
|
|
|
|
"name": "search humidity",
|
2024-04-27 16:59:38 +00:00
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1835,
|
2024-05-01 16:11:37 +00:00
|
|
|
"y": 900,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "bef84cb5efd8c2ca",
|
|
|
|
"type": "debug",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3c8f18d59bc57893",
|
|
|
|
"name": "search humidity",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 1900,
|
|
|
|
"y": 840,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "49927aaaafcc60ec",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "3c8f18d59bc57893",
|
|
|
|
"name": "search humidity",
|
|
|
|
"links": [],
|
|
|
|
"x": 1255,
|
2024-05-01 16:11:37 +00:00
|
|
|
"y": 900,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"928c3fc0fa3c5d18"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "928c3fc0fa3c5d18",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3c8f18d59bc57893",
|
|
|
|
"name": "check measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "humidity",
|
|
|
|
"tot": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "[\t 'detector',\t 'sensor',\t 'probe'\t ]",
|
2024-04-27 16:59:38 +00:00
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1440,
|
|
|
|
"y": 900,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"cc102f3a82a49a8e"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "cc102f3a82a49a8e",
|
|
|
|
"type": "link call",
|
2024-04-27 16:59:38 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3c8f18d59bc57893",
|
|
|
|
"name": "",
|
|
|
|
"links": [
|
|
|
|
"63d576c59c72d487"
|
|
|
|
],
|
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
|
|
|
"x": 1680,
|
|
|
|
"y": 900,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"fe7aea286ecc9d35",
|
|
|
|
"bef84cb5efd8c2ca"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "13fd23967c40a92e",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "0c4ddf3cde7a1e48",
|
|
|
|
"name": "search luminosity",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 1835,
|
|
|
|
"y": 1080,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1efc470e05455106",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "0c4ddf3cde7a1e48",
|
|
|
|
"name": "search luminosity",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
2024-04-27 16:59:38 +00:00
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1910,
|
|
|
|
"y": 1020,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "aa96d5f77fcf68e5",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "0c4ddf3cde7a1e48",
|
|
|
|
"name": "search luminosity",
|
|
|
|
"links": [],
|
|
|
|
"x": 1255,
|
|
|
|
"y": 1080,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"a270d561b0b64cf1"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2056847a88301b2a",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"tot": "msg"
|
2024-05-18 07:40:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "final_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2040,
|
|
|
|
"y": 1260,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a064a6c08fd2f40e"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "c421ec88d5d06d7d",
|
|
|
|
"type": "link out",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "search motion",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 3215,
|
|
|
|
"y": 1320,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "fc6bb2e0b3eb77b2",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "rsp -1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "search",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "{'response':-1}",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 3090,
|
|
|
|
"y": 1320,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e68d7c0f7721c679"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "618d9c3f33eefa02",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "rsp 1",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "search",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "{'response':1}",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "final_payload",
|
|
|
|
"tot": "msg"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 3090,
|
|
|
|
"y": 1260,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e68d7c0f7721c679",
|
|
|
|
"c421ec88d5d06d7d"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e68d7c0f7721c679",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "search motion",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 3280,
|
|
|
|
"y": 1260,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "12b1109de2f09cfc",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "search motion",
|
|
|
|
"links": [],
|
|
|
|
"x": 1255,
|
|
|
|
"y": 1320,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"0845a36d7c0aef49"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "a064a6c08fd2f40e",
|
|
|
|
"type": "split",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "field",
|
|
|
|
"x": 2230,
|
|
|
|
"y": 1260,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"719eb321350dc033"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6b4bc7764df41753",
|
|
|
|
"type": "join",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": true,
|
|
|
|
"timeout": "",
|
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"reduceExp": "",
|
|
|
|
"reduceInit": "",
|
|
|
|
"reduceInitType": "",
|
|
|
|
"reduceFixup": "",
|
|
|
|
"x": 2930,
|
|
|
|
"y": 1260,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"618d9c3f33eefa02"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "6c18cec9a1d74489",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "exists",
|
|
|
|
"property": "motion",
|
2024-04-27 11:29:07 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "true"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"t": "else"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-04-27 16:59:38 +00:00
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2590,
|
|
|
|
"y": 1260,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"02373ad0b61f2a49"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"6b4bc7764df41753"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "02373ad0b61f2a49",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "set activ",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "final_payload",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2760,
|
|
|
|
"y": 1200,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"6b4bc7764df41753"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "719eb321350dc033",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "from global",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "motion",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "metrics[msg.scene.bucket]['motion'][msg.field]",
|
|
|
|
"tot": "global"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2410,
|
|
|
|
"y": 1260,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"6c18cec9a1d74489"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0845a36d7c0aef49",
|
|
|
|
"type": "change",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "check measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "motion",
|
|
|
|
"tot": "str"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1440,
|
|
|
|
"y": 1320,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"333d8ba06abef807"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "333d8ba06abef807",
|
|
|
|
"type": "link call",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "",
|
|
|
|
"links": [
|
|
|
|
"2e0a9a817ddbf587"
|
|
|
|
],
|
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1670,
|
2024-05-18 07:40:16 +00:00
|
|
|
"y": 1320,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"276eb14e1448224d"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "276eb14e1448224d",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "aadbfea0ba5c45ac",
|
|
|
|
"name": "rsp",
|
|
|
|
"property": "search.response",
|
2024-04-27 11:29:07 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "eq",
|
|
|
|
"v": "1",
|
|
|
|
"vt": "num"
|
2024-04-27 16:59:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"outputs": 2,
|
|
|
|
"x": 1850,
|
|
|
|
"y": 1320,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"2056847a88301b2a"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"fc6bb2e0b3eb77b2"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e520201563045cb4",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "get routine",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2300,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
2024-04-27 16:59:38 +00:00
|
|
|
[
|
2024-07-21 15:21:51 +00:00
|
|
|
"990a132bdc19ba61"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a8f829fc8739cbb4",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "from global",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "metrics[msg.scene.bucket][msg.scene.type]",
|
|
|
|
"tot": "global"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 490,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2300,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"c85ce3c75b98194c"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "c85ce3c75b98194c",
|
|
|
|
"type": "switch",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "exists",
|
|
|
|
"property": "routine",
|
|
|
|
"propertyType": "msg",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "istype",
|
|
|
|
"v": "object",
|
|
|
|
"vt": "object"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 670,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2300,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4d2bb338a00188bc"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"72d48a3deee90360"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "72d48a3deee90360",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "rsp -1",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 830,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2300,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e3a3ecfeaece1f56"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e3a3ecfeaece1f56",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "get routine",
|
2024-04-27 11:29:07 +00:00
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 955,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2240,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4d2bb338a00188bc",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "rsp 1",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 830,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2240,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e3a3ecfeaece1f56"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "88ccb4248f722c7c",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "045e623bc9372013",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "rsp 1",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.actif",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.actif?true:false",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.mouvement",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.mouvement?true:false",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.nocturne",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.nocturne?true:false",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.maintient",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.maintient?true:false",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.minuterie",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.minuterie?$number(msg.routine.minuterie):15",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.faible",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.faible?$number(msg.routine.faible):4",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.fort",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.fort?$number(msg.routine.fort):40",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-07-21 15:21:51 +00:00
|
|
|
"p": "routine.obscurite",
|
2024-05-18 07:40:16 +00:00
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.obscurite?$number(msg.routine.obscurite):0",
|
2024-04-27 11:29:07 +00:00
|
|
|
"tot": "jsonata"
|
2024-05-18 07:40:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "metrics[msg.scene.bucket][msg.scene.measurement][msg.scene.field]",
|
|
|
|
"tot": "global"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 670,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2240,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
2024-05-18 07:40:16 +00:00
|
|
|
[]
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "786e0b4140b91eec",
|
|
|
|
"type": "switch",
|
2024-04-27 16:59:38 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "mode automate",
|
|
|
|
"property": "metrics.system.mode.automate",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "automatic",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 1060,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2480,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-08-10 15:40:02 +00:00
|
|
|
"62542a01ce24c466"
|
2024-05-18 07:40:16 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"d443f248bce0dea7"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "62542a01ce24c466",
|
|
|
|
"type": "switch",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "mode type exists",
|
|
|
|
"property": "metrics.system.mode",
|
|
|
|
"propertyType": "global",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "hask",
|
|
|
|
"v": "scene.type",
|
|
|
|
"vt": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1290,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2420,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e3a35f2dd6b2effb"
|
|
|
|
],
|
|
|
|
[
|
2024-07-21 15:21:51 +00:00
|
|
|
"d6ab2dddb189d358"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e3a35f2dd6b2effb",
|
|
|
|
"type": "switch",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "mode type not off",
|
|
|
|
"property": "metrics.system.mode[msg.scene.type]",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "neq",
|
|
|
|
"v": "off",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1530,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2480,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-21 15:21:51 +00:00
|
|
|
"d6ab2dddb189d358"
|
2024-05-18 07:40:16 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"d443f248bce0dea7"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "662f3d7d7dc36aa5",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "switch",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "mode master",
|
|
|
|
"property": "metrics.system.mode.master",
|
|
|
|
"propertyType": "global",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
2024-05-18 07:40:16 +00:00
|
|
|
"v": "about.automate",
|
|
|
|
"vt": "global"
|
2024-04-27 16:59:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 830,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2540,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"786e0b4140b91eec"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d443f248bce0dea7"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d6ab2dddb189d358",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "actif",
|
|
|
|
"property": "routine.actif",
|
2024-04-27 11:29:07 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "true"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1730,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2420,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"2910033beb566769"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"d443f248bce0dea7"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2024-04-27 11:29:07 +00:00
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "2910033beb566769",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "rsp 1",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1890,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2480,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"5c82e25e697c0d09",
|
|
|
|
"f01348b36d2a9638"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d443f248bce0dea7",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "rsp -1",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-27 11:29:07 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1890,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2540,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"5c82e25e697c0d09",
|
|
|
|
"f01348b36d2a9638"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "5c82e25e697c0d09",
|
|
|
|
"type": "debug",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "routine mode",
|
2024-04-27 16:59:38 +00:00
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 2070,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2540,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "c1a22098f4c6b607",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "routine mode",
|
2024-04-27 11:29:07 +00:00
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2600,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"caaebc71902e0463"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "f01348b36d2a9638",
|
|
|
|
"type": "link out",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "routine mode",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 2015,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2600,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
2024-04-27 16:59:38 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "48d872c1b6b9f14e",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "link call",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "",
|
|
|
|
"links": [
|
2024-05-18 07:40:16 +00:00
|
|
|
"e520201563045cb4"
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 470,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2600,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d23ac11c26d59e4c"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d23ac11c26d59e4c",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
2024-04-27 16:59:38 +00:00
|
|
|
"name": "rsp",
|
2024-05-18 07:40:16 +00:00
|
|
|
"property": "routine.response",
|
2024-04-27 16:59:38 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
2024-04-27 11:29:07 +00:00
|
|
|
{
|
|
|
|
"t": "eq",
|
2024-04-27 16:59:38 +00:00
|
|
|
"v": "1",
|
|
|
|
"vt": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-04-27 16:59:38 +00:00
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 650,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2600,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"662f3d7d7dc36aa5"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a69fbd6551e4fdc3"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a69fbd6551e4fdc3",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"name": "rsp 0",
|
2024-04-27 16:59:38 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
2024-04-27 16:59:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 1890,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2600,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
2024-04-27 11:29:07 +00:00
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"5c82e25e697c0d09",
|
|
|
|
"f01348b36d2a9638"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "caaebc71902e0463",
|
|
|
|
"type": "delay",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "3e3cab934a02705f",
|
|
|
|
"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": 280,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2600,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"48d872c1b6b9f14e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0ecfc7dac3dc83c0",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "routine motion",
|
2024-04-27 11:29:07 +00:00
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1915,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2840,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "c5b20f0c23888919",
|
|
|
|
"type": "switch",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "motion actif",
|
|
|
|
"property": "routine.motion",
|
|
|
|
"propertyType": "msg",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 290,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2780,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"323c3fcbf4964c63"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"c46a31d677767693"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "323c3fcbf4964c63",
|
|
|
|
"type": "switch",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "has measurement",
|
|
|
|
"property": "metrics[msg.scene.bucket]",
|
|
|
|
"propertyType": "global",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "hask",
|
|
|
|
"v": "motion",
|
|
|
|
"vt": "str"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 510,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2720,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"4062a49e5518576b"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"c46a31d677767693"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "4ce06c7bae7e516c",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "rsp 1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
2024-04-27 16:59:38 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1370,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2720,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"410b8eabf0b0e224"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "410b8eabf0b0e224",
|
|
|
|
"type": "join",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": "false",
|
|
|
|
"timeout": "",
|
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"x": 1530,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2780,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"a161c5ca3d8a7cbd"
|
|
|
|
]
|
|
|
|
]
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4062a49e5518576b",
|
|
|
|
"type": "change",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "find all motion sensor",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "metrics[msg.scene.bucket]motion",
|
|
|
|
"tot": "global",
|
|
|
|
"dc": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 760,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2720,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"7864c4a726691281"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "7864c4a726691281",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "split",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "split measurement",
|
2024-04-27 16:59:38 +00:00
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "field",
|
2024-08-10 14:54:49 +00:00
|
|
|
"property": "payload",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1010,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2780,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"47a324541ec2b6d3"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "47a324541ec2b6d3",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "true",
|
|
|
|
"property": "payload",
|
2024-04-27 16:59:38 +00:00
|
|
|
"propertyType": "msg",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"t": "true"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1210,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2780,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4ce06c7bae7e516c"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"410b8eabf0b0e224"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a161c5ca3d8a7cbd",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "regain initial payload",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "old_payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "delete",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
2024-04-27 16:59:38 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1740,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2840,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"0ecfc7dac3dc83c0",
|
|
|
|
"6e52a200ac67e354"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "6e52a200ac67e354",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "routine motion",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 1980,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2780,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c46a31d677767693",
|
2024-04-27 16:59:38 +00:00
|
|
|
"type": "change",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "rsp 0",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-04-27 16:59:38 +00:00
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "old_payload",
|
2024-04-27 16:59:38 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
],
|
2024-04-27 16:59:38 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 710,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2840,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a161c5ca3d8a7cbd"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "6d71d5859b10c11e",
|
|
|
|
"type": "link in",
|
2024-04-27 11:29:07 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "64c6321bb60023c8",
|
|
|
|
"name": "routine motion",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2780,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"c5b20f0c23888919"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4a635ad2a4ed1736",
|
|
|
|
"type": "switch",
|
2024-04-27 16:59:38 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "retention actif",
|
|
|
|
"property": "routine.retention",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
2024-04-27 16:59:38 +00:00
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 300,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3020,
|
2024-04-27 16:59:38 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d0d24a8b117023f6"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"4722e25f42aea056"
|
2024-04-27 16:59:38 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d0d24a8b117023f6",
|
2024-04-27 11:29:07 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "has measurement",
|
|
|
|
"property": "metrics[msg.scene.bucket]",
|
|
|
|
"propertyType": "global",
|
2024-04-27 11:29:07 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "hask",
|
|
|
|
"v": "retention",
|
|
|
|
"vt": "str"
|
2024-04-27 11:29:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 530,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2960,
|
2024-04-27 11:29:07 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"ffbd707de9b88a2a"
|
2024-04-27 11:29:07 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4722e25f42aea056"
|
2024-04-27 11:29:07 +00:00
|
|
|
]
|
|
|
|
]
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "52a33cee0e647f92",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "rsp 1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 1790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2960,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"6a0f0e71db157af3"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "6a0f0e71db157af3",
|
|
|
|
"type": "join",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": "false",
|
|
|
|
"timeout": "",
|
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"x": 1950,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3020,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"4d9991942988ca8c"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "9b3093c5a5deb452",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "find all motion sensor",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "old_payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "metrics[msg.scene.bucket]motion",
|
|
|
|
"tot": "global",
|
|
|
|
"dc": true
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1140,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2960,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"b8b9d93908937f8c"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "b8b9d93908937f8c",
|
|
|
|
"type": "split",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "split measurement",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "field",
|
2024-08-10 14:54:49 +00:00
|
|
|
"property": "payload",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1430,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2960,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"22152f0515ad69cc"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "22152f0515ad69cc",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "true",
|
|
|
|
"property": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "true"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1630,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3020,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"52a33cee0e647f92"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"6a0f0e71db157af3"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4d9991942988ca8c",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "regain initial payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "old_payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "delete",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2160,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3080,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d063b27f8e80f37a",
|
|
|
|
"393ec8decef297e9"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d063b27f8e80f37a",
|
|
|
|
"type": "debug",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "routine retention",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 2400,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3020,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4722e25f42aea056",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "rsp 0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
2024-05-18 07:40:16 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
2024-04-28 14:21:20 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 730,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3080,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4d9991942988ca8c"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "cae336906ea60890",
|
|
|
|
"type": "link in",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "routine retention",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3020,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
2024-05-18 07:40:16 +00:00
|
|
|
[
|
|
|
|
"4a635ad2a4ed1736"
|
|
|
|
]
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "393ec8decef297e9",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "routine retention",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 2335,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3080,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "4424ab4df00e08ab",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "not off",
|
|
|
|
"property": "scene.off",
|
|
|
|
"propertyType": "msg",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "neq",
|
|
|
|
"v": "metrics[msg.scene.bucket][msg.scene.measurement][msg.scene.field]",
|
|
|
|
"vt": "global"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 890,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3020,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"9b3093c5a5deb452"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4d9991942988ca8c"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "ffbd707de9b88a2a",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "25501926b0199872",
|
|
|
|
"name": "rsp -1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 730,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2960,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4424ab4df00e08ab"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e4e85b184291d354",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "darkness actif",
|
|
|
|
"property": "routine.darkness",
|
|
|
|
"propertyType": "msg",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "gt",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 300,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3260,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"868cdb733181338e"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"f4fc24ae76a91012"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "868cdb733181338e",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "has measurement",
|
|
|
|
"property": "metrics[msg.scene.bucket]",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "hask",
|
|
|
|
"v": "luminosity",
|
|
|
|
"vt": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 530,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3200,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"eca9437aa8d37772"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"f4fc24ae76a91012"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "eca9437aa8d37772",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "find all luminosity sensor",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "set",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "metrics[msg.scene.bucket]luminosity",
|
|
|
|
"tot": "global"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3200,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e2dec83660823bf1"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e2dec83660823bf1",
|
|
|
|
"type": "split",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "split measurement",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "field",
|
2024-08-10 14:54:49 +00:00
|
|
|
"property": "payload",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1050,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3260,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"71ecc4394b7cd05d"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "71ecc4394b7cd05d",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "field <= reglage",
|
|
|
|
"property": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "lte",
|
2024-07-21 15:21:51 +00:00
|
|
|
"v": "routine.darkness",
|
|
|
|
"vt": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 1280,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3260,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"8ebbcb564e209cfe"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"61c2bd67b3234fc7"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "61c2bd67b3234fc7",
|
|
|
|
"type": "join",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": true,
|
|
|
|
"timeout": "",
|
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"reduceExp": "",
|
|
|
|
"reduceInit": "",
|
|
|
|
"reduceInitType": "num",
|
|
|
|
"reduceFixup": "",
|
|
|
|
"x": 1630,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3260,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"f7baae7f1933153b"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "466c44b0fc1258a7",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "routine darkness",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 2015,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3320,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8ebbcb564e209cfe",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
2024-04-28 14:21:20 +00:00
|
|
|
"name": "rsp 1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1470,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3200,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"61c2bd67b3234fc7"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "f7baae7f1933153b",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "regain initial payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "old_payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "delete",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1840,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3320,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"466c44b0fc1258a7",
|
|
|
|
"173b0a787256ad6e"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "173b0a787256ad6e",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "routine darkness",
|
2024-04-28 14:21:20 +00:00
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2090,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3260,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "f4fc24ae76a91012",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "rsp 0",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 730,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3320,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"f7baae7f1933153b"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "3abf64e6a345da67",
|
|
|
|
"type": "link in",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b34b57138cb1f0b8",
|
|
|
|
"name": "routine darkness",
|
2024-04-28 14:21:20 +00:00
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3260,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e4e85b184291d354"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "cf26b829266bd04d",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "luminosity actif",
|
|
|
|
"property": "routine.luminosity",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "gt",
|
|
|
|
"v": "0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 310,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3500,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"ee16cba79f20cab6"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d4b36602686961b1"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "ee16cba79f20cab6",
|
|
|
|
"type": "switch",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "has measurement",
|
|
|
|
"property": "metrics[msg.scene.bucket]",
|
|
|
|
"propertyType": "global",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "hask",
|
|
|
|
"v": "luminosity",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 540,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3440,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4adbb709556ae11d"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"d4b36602686961b1"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4adbb709556ae11d",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "find all luminosity sensor",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "metrics[msg.scene.bucket]luminosity",
|
|
|
|
"tot": "global"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 800,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3440,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"71518dbc12244577"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "71518dbc12244577",
|
|
|
|
"type": "split",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "split measurement",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "field",
|
2024-08-10 14:54:49 +00:00
|
|
|
"property": "payload",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1060,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3500,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"7fa7e12c70c95e89"
|
|
|
|
]
|
|
|
|
]
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "7fa7e12c70c95e89",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "field >= reglage",
|
|
|
|
"property": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "gte",
|
2024-07-21 15:21:51 +00:00
|
|
|
"v": "routine.luminosity",
|
|
|
|
"vt": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1290,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3500,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a39f08f65c396752"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"288d2e1448cc8b87"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "288d2e1448cc8b87",
|
|
|
|
"type": "join",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": true,
|
|
|
|
"timeout": "",
|
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"reduceExp": "",
|
|
|
|
"reduceInit": "",
|
|
|
|
"reduceInitType": "num",
|
|
|
|
"reduceFixup": "",
|
|
|
|
"x": 1640,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3500,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"72d6ed833a034f7d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a657a100c0565a83",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "routine luminosity",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 2025,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3560,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "a39f08f65c396752",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
2024-04-28 14:21:20 +00:00
|
|
|
"name": "rsp 1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1480,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3440,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"288d2e1448cc8b87"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "72d6ed833a034f7d",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "reagin initial payload",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"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": 1850,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3560,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a657a100c0565a83",
|
|
|
|
"0ca5636806f3803d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0ca5636806f3803d",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "routine luminosity",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 2100,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3500,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d4b36602686961b1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "rsp 0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "old_payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 740,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3560,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"72d6ed833a034f7d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "89bf9e5c676a419c",
|
|
|
|
"type": "link in",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "b69787e8c4f19d69",
|
|
|
|
"name": "routine luminosity",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3500,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"cf26b829266bd04d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "7faaa39c9c2c3e20",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "reglage",
|
|
|
|
"property": "metrics.system.mode[msg.scene.type]",
|
|
|
|
"propertyType": "global",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "eq",
|
|
|
|
"v": "high",
|
|
|
|
"vt": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "eq",
|
|
|
|
"v": "low",
|
|
|
|
"vt": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1620,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3740,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"5471122f3d914196"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"9143e0b7b9fb3da2"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "5471122f3d914196",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "high",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "msg.routine.high?msg.routine.high:40",
|
|
|
|
"tot": "jsonata"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3740,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d8a3424e6a6f2827"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "9143e0b7b9fb3da2",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "low",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "msg.routine.low?msg.routine.low:4",
|
|
|
|
"tot": "jsonata"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3800,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d8a3424e6a6f2827"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d8a3424e6a6f2827",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "compare payload to existing value",
|
|
|
|
"property": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "neq",
|
|
|
|
"v": "metrics[msg.scene.bucket][msg.scene.measurement][msg.scene.field]",
|
|
|
|
"vt": "global"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2060,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3860,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"00f7d91e9a6c7617"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"56ad085f1663d4c0"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "38e608120e43ab47",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "routine luminosite",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 2435,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3980,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b45278a6c6f45dfa",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "state",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "eq",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1190,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3740,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"121a9d42a981eb6b"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a8bcb0395fa8accc"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "121a9d42a981eb6b",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "scene off",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "scene.off",
|
|
|
|
"tot": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1800,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3680,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d8a3424e6a6f2827"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "03700a180e6f8f5b",
|
|
|
|
"type": "switch",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "format",
|
|
|
|
"property": "scene.format",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "dimmer",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "number",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "boolean",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 4,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3920,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a91140dc661eacbf"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"a91140dc661eacbf"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"9817b8c4d33159f8"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"fd900a26e130d2ff",
|
|
|
|
"5a60da9d02342972"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "9817b8c4d33159f8",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "booelan",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "$boolean($number(msg.payload))",
|
|
|
|
"tot": "jsonata"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1800,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3920,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d8a3424e6a6f2827"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a91140dc661eacbf",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "payload to number",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$number(msg.payload)",
|
|
|
|
"tot": "jsonata"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 990,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3740,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"b45278a6c6f45dfa"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e1587fba40d7939d",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "set payload as existing value",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "metrics[msg.scene.bucket][msg.scene.measurement][msg.scene.field]",
|
|
|
|
"tot": "global"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 560,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3980,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"03700a180e6f8f5b"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "3543fc558bdce918",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "system bucket",
|
|
|
|
"property": "bucket",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "neq",
|
|
|
|
"v": "system",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 300,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3920,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"03700a180e6f8f5b"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"e1587fba40d7939d"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "621c0f611ba16957",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "routine value",
|
2024-04-28 14:21:20 +00:00
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2490,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3920,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "00f7d91e9a6c7617",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "rsp 1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2310,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3860,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"38e608120e43ab47",
|
|
|
|
"621c0f611ba16957"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "56ad085f1663d4c0",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "rsp -1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 2310,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3920,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"621c0f611ba16957",
|
|
|
|
"38e608120e43ab47"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a8bcb0395fa8accc",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "has dimmer reglage",
|
2024-07-21 15:21:51 +00:00
|
|
|
"property": "scene.format",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-07-21 15:21:51 +00:00
|
|
|
"t": "eq",
|
|
|
|
"v": "dimmer",
|
2024-05-18 07:40:16 +00:00
|
|
|
"vt": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1400,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3800,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"7faaa39c9c2c3e20"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"0d08a03de0051e7c"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0d08a03de0051e7c",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "scene on",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "scene.on",
|
|
|
|
"tot": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1800,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3860,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d8a3424e6a6f2827"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "587236e6160da46c",
|
|
|
|
"type": "link in",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
|
|
|
"name": "routine value",
|
2024-04-28 14:21:20 +00:00
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3920,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"3543fc558bdce918"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "5a60da9d02342972",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "f988b45c3d4a17ef",
|
2024-04-28 14:21:20 +00:00
|
|
|
"name": "rsp 0",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2310,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3980,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"38e608120e43ab47",
|
|
|
|
"621c0f611ba16957"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "fd900a26e130d2ff",
|
|
|
|
"type": "debug",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "f988b45c3d4a17ef",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "routine value - unknown format",
|
|
|
|
"active": true,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 1030,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 3980,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "37f065b203f116d2",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "routine timer",
|
2024-04-28 14:21:20 +00:00
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1895,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4340,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "04fda8ed412120ca",
|
|
|
|
"type": "delay",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "5 s",
|
|
|
|
"pauseType": "delay",
|
|
|
|
"timeout": "5",
|
|
|
|
"timeoutUnits": "seconds",
|
|
|
|
"rate": "1",
|
|
|
|
"nbRateUnits": "1",
|
|
|
|
"rateUnits": "second",
|
|
|
|
"randomFirst": "1",
|
|
|
|
"randomLast": "5",
|
|
|
|
"randomUnits": "seconds",
|
|
|
|
"drop": false,
|
|
|
|
"allowrate": false,
|
|
|
|
"outputs": 1,
|
|
|
|
"x": 450,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4280,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"bfe242eadca39791"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "cbe63d29435cb7ce",
|
|
|
|
"type": "switch",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "timer actif",
|
|
|
|
"property": "routine.timer",
|
|
|
|
"propertyType": "msg",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "gt",
|
|
|
|
"v": "0",
|
|
|
|
"vt": "num"
|
2024-07-21 15:21:51 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 280,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4340,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-21 15:21:51 +00:00
|
|
|
"04fda8ed412120ca",
|
|
|
|
"8a154930c7214f18"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"8a154930c7214f18"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "bfe242eadca39791",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "existing value is not like scene off",
|
|
|
|
"property": "metrics[msg.scene.bucket][msg.scene.measurement][msg.scene.field]",
|
|
|
|
"propertyType": "global",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "neq",
|
|
|
|
"v": "scene.off",
|
|
|
|
"vt": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"outputs": 2,
|
|
|
|
"x": 700,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4280,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"fe78724dc1f72f65"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"7953d461e902f8ac"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "9dd47ae7d0e90c33",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "routine timer",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 1950,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4280,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "7953d461e902f8ac",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "rsp -1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1770,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4280,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"9dd47ae7d0e90c33",
|
|
|
|
"37f065b203f116d2",
|
|
|
|
"23ef9aaffb31c21d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2024-05-18 07:40:16 +00:00
|
|
|
{
|
|
|
|
"id": "834ce9850cdb0a72",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "routine timer",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4340,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-21 15:21:51 +00:00
|
|
|
"cbe63d29435cb7ce"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "8a154930c7214f18",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "rsp 0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1770,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4340,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"37f065b203f116d2",
|
|
|
|
"23ef9aaffb31c21d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "23ef9aaffb31c21d",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "routine timer out",
|
|
|
|
"mode": "link",
|
|
|
|
"links": [
|
|
|
|
"96f83c7e2e8a15cc",
|
|
|
|
"3cc31621bae4b8f4"
|
|
|
|
],
|
|
|
|
"x": 1895,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4160,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "7017965f91bd177c",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "307791bd329226f2",
|
2024-07-21 15:21:51 +00:00
|
|
|
"name": "nocturnal actif",
|
|
|
|
"property": "routine.nocturnal",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "true"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 300,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4520,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"ce2126235b863201"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e09b198994376110"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "56d6ee950d3d34c2",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "307791bd329226f2",
|
2024-07-21 15:21:51 +00:00
|
|
|
"name": "routine nocturnal",
|
2024-05-18 07:40:16 +00:00
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 615,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4520,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "eadfca81c8de4eb0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "307791bd329226f2",
|
2024-07-21 15:21:51 +00:00
|
|
|
"name": "routine nocturnal",
|
2024-04-28 14:21:20 +00:00
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4460,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "dfec2e7efb555d4d",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "307791bd329226f2",
|
2024-07-21 15:21:51 +00:00
|
|
|
"name": "routine nocturnal",
|
2024-05-18 07:40:16 +00:00
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4520,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"7017965f91bd177c"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ce2126235b863201",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "307791bd329226f2",
|
|
|
|
"name": "rsp",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "metrics.system.mode.nycthemer",
|
|
|
|
"tot": "global"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.response='night'?1:-1",
|
|
|
|
"tot": "jsonata"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 490,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4460,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"eadfca81c8de4eb0",
|
|
|
|
"56d6ee950d3d34c2"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e09b198994376110",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "307791bd329226f2",
|
|
|
|
"name": "rsp 0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 490,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4520,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"56d6ee950d3d34c2",
|
|
|
|
"eadfca81c8de4eb0"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "096892189e1be538",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "routine daily",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 635,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4700,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ecec645c51268d24",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "rsp 0",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "routine.response",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 510,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4700,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"096892189e1be538",
|
|
|
|
"0edba4106bc26051"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b51db40b65f89f75",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.daily?-1:1",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.update_daily",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.routine.response=1",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 510,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4640,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"096892189e1be538",
|
|
|
|
"0edba4106bc26051"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0edba4106bc26051",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "routine daily",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 690,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4640,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c63c05889184c3bc",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "routine daily",
|
2024-04-28 14:21:20 +00:00
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4640,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-07-21 15:21:51 +00:00
|
|
|
"bde274663e77041e"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e19c1916670880d7",
|
|
|
|
"type": "comment",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "rsp : 1 if done, -1 if not done, 0 if not present",
|
|
|
|
"info": "",
|
2024-07-21 15:21:51 +00:00
|
|
|
"x": 890,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4700,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d806e40ba2ef7092",
|
|
|
|
"type": "comment",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "return msg.routine.response : 1 = active and valid, 0 = not active, -1 active and not valid",
|
|
|
|
"info": "",
|
2024-08-10 15:40:02 +00:00
|
|
|
"x": 1420,
|
|
|
|
"y": 2240,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e667a9372137a0e2",
|
|
|
|
"type": "comment",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "45b2c91cc17508eb",
|
|
|
|
"name": "scene must call \"routine mode\" first",
|
|
|
|
"info": "",
|
2024-08-10 15:40:02 +00:00
|
|
|
"x": 1260,
|
|
|
|
"y": 2300,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b1fb932b0ddc8a02",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "a0496edd95de60f3",
|
|
|
|
"name": "topic",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "topic",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "routine",
|
|
|
|
"tot": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 790,
|
|
|
|
"y": 60,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"9be1a70bcb57bda6"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "9be1a70bcb57bda6",
|
|
|
|
"type": "link out",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "a0496edd95de60f3",
|
|
|
|
"name": "catch error",
|
|
|
|
"mode": "link",
|
|
|
|
"links": [
|
|
|
|
"a52f0e788cd4dca3"
|
|
|
|
],
|
|
|
|
"x": 915,
|
|
|
|
"y": 60,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "dfea66c91b07899f",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "timer from routine",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "scene.off",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "timer",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "{\t 'path':msg.scene.type & '/' & msg.scene.bucket & '/' & msg.scene.measurement & '/' & msg.scene.field,\t 'time':$millis() + (msg.routine.timer * 60000)\t}",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1370,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4160,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"4a5ceb9b3c8f086f"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "fe78724dc1f72f65",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "delay",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "rate 10 msg / s",
|
|
|
|
"pauseType": "rate",
|
2024-04-28 14:21:20 +00:00
|
|
|
"timeout": "5",
|
|
|
|
"timeoutUnits": "seconds",
|
2024-05-18 07:40:16 +00:00
|
|
|
"rate": "10",
|
2024-04-28 14:21:20 +00:00
|
|
|
"nbRateUnits": "1",
|
|
|
|
"rateUnits": "second",
|
|
|
|
"randomFirst": "1",
|
|
|
|
"randomLast": "5",
|
|
|
|
"randomUnits": "seconds",
|
|
|
|
"drop": false,
|
|
|
|
"allowrate": false,
|
|
|
|
"outputs": 1,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 980,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4220,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"ec1f489e4f505a2f"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4a5ceb9b3c8f086f",
|
|
|
|
"type": "function",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "copy msg",
|
|
|
|
"func": "// script var\nvar msg = msg;\nvar newmsg = {};\n\nif (typeof msg === 'undefined'){\n return null;\n}\n\n// recreate msg\nnewmsg = {\n 'payload': msg\n};\n\nnode.status({ fill: 'green', shape: \"ring\", text: msg.timer.path });\nreturn newmsg;",
|
2024-04-28 14:21:20 +00:00
|
|
|
"outputs": 1,
|
2024-05-18 07:40:16 +00:00
|
|
|
"timeout": "",
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "\n",
|
|
|
|
"finalize": "\n",
|
|
|
|
"libs": [],
|
|
|
|
"x": 1580,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4160,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f71bea4c343fe0db"
|
|
|
|
]
|
|
|
|
]
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "f71bea4c343fe0db",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "to global",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "timers[msg.payload.timer.path]",
|
|
|
|
"pt": "global",
|
|
|
|
"to": "payload",
|
|
|
|
"tot": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1760,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4160,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"23ef9aaffb31c21d"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "62c79bf2c5d8ec18",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "routine timer cron",
|
|
|
|
"links": [
|
|
|
|
"004bb30c27c94fb4"
|
|
|
|
],
|
|
|
|
"x": 855,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4100,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f0d22091d2275f34"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f0d22091d2275f34",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "from global",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "timers",
|
|
|
|
"tot": "global"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1010,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4100,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
2024-05-18 07:40:16 +00:00
|
|
|
[
|
|
|
|
"87a3f60a0c03a21b"
|
|
|
|
]
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "87a3f60a0c03a21b",
|
|
|
|
"type": "split",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "",
|
|
|
|
"x": 1190,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4100,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"5fbf2cbdb32f0e97"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "5fbf2cbdb32f0e97",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "check expired timer",
|
|
|
|
"property": "payload.timer.time",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "lt",
|
|
|
|
"v": "$millis()",
|
|
|
|
"vt": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 1,
|
|
|
|
"x": 1390,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4100,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"68ca4fce9324436b"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "68ca4fce9324436b",
|
|
|
|
"type": "function",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "copy msg",
|
2024-07-21 15:21:51 +00:00
|
|
|
"func": "// script var\nvar msg = msg;\nvar newmsg = {};\n\nif (typeof msg === 'undefined'){\n return null;\n}\n\n// recreate msg\nnewmsg = msg.payload;\n\nnode.status({ fill: 'green', shape: \"ring\", text: msg.payload.timer.path });\nreturn newmsg;",
|
2024-05-18 07:40:16 +00:00
|
|
|
"outputs": 1,
|
|
|
|
"timeout": "",
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "\n",
|
|
|
|
"finalize": "\n",
|
|
|
|
"libs": [],
|
|
|
|
"x": 1600,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4100,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"952e936c8f1df120"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "952e936c8f1df120",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9f00d3d0bf810df6",
|
2024-05-18 07:40:16 +00:00
|
|
|
"name": "rsp 1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
2024-05-18 07:40:16 +00:00
|
|
|
{
|
|
|
|
"t": "delete",
|
|
|
|
"p": "timers[msg.timer.path]",
|
|
|
|
"pt": "global"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "delete",
|
|
|
|
"p": "parts",
|
|
|
|
"pt": "msg"
|
|
|
|
},
|
2024-04-28 14:21:20 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-01 10:09:39 +00:00
|
|
|
"x": 1770,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4100,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"23ef9aaffb31c21d",
|
|
|
|
"9dd47ae7d0e90c33",
|
|
|
|
"37f065b203f116d2"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "ec1f489e4f505a2f",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "9f00d3d0bf810df6",
|
|
|
|
"name": "bucket",
|
|
|
|
"property": "bucket",
|
2024-04-28 14:21:20 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "neq",
|
|
|
|
"v": "system",
|
|
|
|
"vt": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1170,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4220,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"dfea66c91b07899f"
|
2024-04-28 14:21:20 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"7953d461e902f8ac"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "434f87c8d8fc6bbe",
|
|
|
|
"type": "change",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "67c721e1c392ce95",
|
|
|
|
"name": "split",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "split_field",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$reverse($split(msg.field,' '))",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "end_field",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "end_field",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$match(msg.split_field[0],/[0-9]+/)",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 270,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2000,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c24f3d6f90d2b48c"
|
|
|
|
]
|
|
|
|
]
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "c24f3d6f90d2b48c",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "67c721e1c392ce95",
|
|
|
|
"name": "check",
|
|
|
|
"property": "end_field",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "nempty"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 430,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2000,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"1063523382ddaa94"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"4c8f3b4e9500ab16"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "1063523382ddaa94",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "67c721e1c392ce95",
|
|
|
|
"name": "end",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "end_field",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "' '&msg.end_field.match",
|
|
|
|
"tot": "jsonata"
|
2024-04-28 14:21:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "short_field",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "$substringBefore(msg.field,msg.end_field)",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 590,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2000,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"1b97b56ade9a8291"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "4c8f3b4e9500ab16",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "67c721e1c392ce95",
|
|
|
|
"name": "end",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "end_field",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "",
|
|
|
|
"tot": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "short_field",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "field",
|
|
|
|
"tot": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 590,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2060,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"1b97b56ade9a8291"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "aeb0d3b6747c9280",
|
|
|
|
"type": "link in",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "67c721e1c392ce95",
|
|
|
|
"name": "cleanup - get short field",
|
|
|
|
"links": [],
|
|
|
|
"x": 135,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2000,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"434f87c8d8fc6bbe"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1b97b56ade9a8291",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "67c721e1c392ce95",
|
|
|
|
"name": "cleanup - get short field",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 715,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2000,
|
2024-05-18 07:40:16 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "63d576c59c72d487",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "get search field",
|
|
|
|
"links": [],
|
|
|
|
"x": 1255,
|
|
|
|
"y": 540,
|
|
|
|
"wires": [
|
2024-04-28 14:21:20 +00:00
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"91e7dfc3c8108b06"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "c8adad442791f18d",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "get search field",
|
2024-04-28 14:21:20 +00:00
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 3495,
|
|
|
|
"y": 540,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0993151366888a6b",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "rsp -1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "search",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "{'response':-1}",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "",
|
|
|
|
"tot": "str"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 3370,
|
|
|
|
"y": 540,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"57578e259ab0268c",
|
|
|
|
"c8adad442791f18d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "887a9038d6639660",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "rsp 1",
|
2024-04-28 14:21:20 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "search",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "{'response':1}",
|
2024-04-28 14:21:20 +00:00
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-04-28 14:21:20 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "exists",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "delete",
|
|
|
|
"p": "exists",
|
|
|
|
"pt": "msg"
|
2024-04-28 14:21:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 3370,
|
|
|
|
"y": 480,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"57578e259ab0268c",
|
|
|
|
"c8adad442791f18d"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "57578e259ab0268c",
|
2024-04-28 14:21:20 +00:00
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "get search field",
|
2024-04-28 14:21:20 +00:00
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 3560,
|
|
|
|
"y": 480,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "91e7dfc3c8108b06",
|
|
|
|
"type": "link call",
|
2024-04-28 14:21:20 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "",
|
|
|
|
"links": [
|
|
|
|
"2e0a9a817ddbf587"
|
|
|
|
],
|
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
|
|
|
"x": 1410,
|
|
|
|
"y": 540,
|
2024-04-28 14:21:20 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"e43d2ea5180895eb"
|
2024-04-28 14:21:20 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "e43d2ea5180895eb",
|
|
|
|
"type": "switch",
|
2024-04-29 22:28:34 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "rsp",
|
|
|
|
"property": "search.response",
|
|
|
|
"propertyType": "msg",
|
2024-04-29 22:28:34 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "eq",
|
|
|
|
"v": "1",
|
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
2024-04-29 22:28:34 +00:00
|
|
|
}
|
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 1590,
|
|
|
|
"y": 540,
|
2024-04-29 22:28:34 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"ab77d6fa10f465f3"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"0993151366888a6b"
|
2024-04-29 22:28:34 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "2296b4ea298a4c72",
|
|
|
|
"type": "comment",
|
2024-04-29 22:28:34 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "select field by preference order",
|
|
|
|
"info": "",
|
|
|
|
"x": 1510,
|
|
|
|
"y": 480,
|
2024-04-29 22:28:34 +00:00
|
|
|
"wires": []
|
2024-05-01 08:52:11 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "eabe1caabd0e57bb",
|
2024-05-01 08:52:11 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "suffix",
|
2024-05-01 08:52:11 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "field",
|
2024-05-01 08:52:11 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "payload",
|
2024-05-01 08:52:11 +00:00
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "payload",
|
2024-05-01 08:52:11 +00:00
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "[' 5',' 4',' 3',' 2',' 1','']",
|
2024-05-01 08:52:11 +00:00
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2070,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"d6ae0dbd98f320d7"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "d6ae0dbd98f320d7",
|
|
|
|
"type": "split",
|
2024-05-01 08:52:11 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "",
|
|
|
|
"x": 2230,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"68788cf7b1f1d8b6"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0ec06f9bc9a77ac2",
|
|
|
|
"type": "switch",
|
2024-05-01 08:52:11 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "has field",
|
|
|
|
"property": "measurement",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "hask",
|
|
|
|
"v": "field",
|
|
|
|
"vt": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 2560,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"a1b41356df668e41"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"0fe612fcfd28c570"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a1b41356df668e41",
|
2024-05-01 08:52:11 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "exists",
|
2024-05-01 08:52:11 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-05-18 07:40:16 +00:00
|
|
|
"p": "exists",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "measurement[msg.field]",
|
2024-05-01 08:52:11 +00:00
|
|
|
"tot": "msg"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 2730,
|
|
|
|
"y": 420,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"0fe612fcfd28c570"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "68788cf7b1f1d8b6",
|
|
|
|
"type": "change",
|
2024-05-01 08:52:11 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "field",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "field",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "msg.field&msg.payload",
|
|
|
|
"tot": "jsonata"
|
|
|
|
}
|
2024-05-01 08:52:11 +00:00
|
|
|
],
|
2024-05-18 07:40:16 +00:00
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 2390,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"0ec06f9bc9a77ac2"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "ab77d6fa10f465f3",
|
2024-05-01 08:52:11 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "fields",
|
2024-05-01 08:52:11 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "delete",
|
|
|
|
"p": "exists",
|
|
|
|
"pt": "msg"
|
2024-05-01 08:52:11 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1750,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"8e60adca1a22f123"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "8e60adca1a22f123",
|
2024-05-01 08:52:11 +00:00
|
|
|
"type": "split",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
2024-05-01 08:52:11 +00:00
|
|
|
"name": "",
|
|
|
|
"splt": "\\n",
|
|
|
|
"spltType": "str",
|
|
|
|
"arraySplt": 1,
|
|
|
|
"arraySpltType": "len",
|
|
|
|
"stream": false,
|
|
|
|
"addname": "",
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1910,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"eabe1caabd0e57bb"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "0fe612fcfd28c570",
|
|
|
|
"type": "join",
|
2024-05-01 08:52:11 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
2024-05-01 08:52:11 +00:00
|
|
|
"propertyType": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": "false",
|
2024-05-01 08:52:11 +00:00
|
|
|
"timeout": "",
|
2024-05-18 07:40:16 +00:00
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"x": 2890,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"77270fac9cacc97f"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "77270fac9cacc97f",
|
|
|
|
"type": "join",
|
2024-05-01 08:52:11 +00:00
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "",
|
|
|
|
"mode": "auto",
|
|
|
|
"build": "object",
|
|
|
|
"property": "payload",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"key": "topic",
|
|
|
|
"joiner": "\\n",
|
|
|
|
"joinerType": "str",
|
|
|
|
"accumulate": "false",
|
|
|
|
"timeout": "",
|
|
|
|
"count": "",
|
|
|
|
"reduceRight": false,
|
|
|
|
"x": 3050,
|
|
|
|
"y": 480,
|
2024-05-01 08:52:11 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"34e98bc055db6ee2"
|
2024-05-01 08:52:11 +00:00
|
|
|
]
|
|
|
|
]
|
2024-05-01 10:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "34e98bc055db6ee2",
|
2024-05-01 10:09:39 +00:00
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "6d6cb3547780038f",
|
|
|
|
"name": "exists",
|
|
|
|
"property": "exists",
|
2024-05-01 10:09:39 +00:00
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"t": "istype",
|
|
|
|
"v": "number",
|
|
|
|
"vt": "number"
|
2024-05-01 10:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 3210,
|
|
|
|
"y": 480,
|
2024-05-01 10:09:39 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"887a9038d6639660"
|
2024-05-01 10:09:39 +00:00
|
|
|
],
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"0993151366888a6b"
|
2024-05-01 10:09:39 +00:00
|
|
|
]
|
|
|
|
]
|
2024-05-01 16:11:37 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-18 07:40:16 +00:00
|
|
|
"id": "a270d561b0b64cf1",
|
2024-05-01 16:11:37 +00:00
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
2024-05-18 07:40:16 +00:00
|
|
|
"g": "0c4ddf3cde7a1e48",
|
|
|
|
"name": "check measurement",
|
2024-05-01 16:11:37 +00:00
|
|
|
"rules": [
|
2024-05-18 07:40:16 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "measurement",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "luminosity",
|
|
|
|
"tot": "str"
|
|
|
|
},
|
2024-05-01 16:11:37 +00:00
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "payload",
|
|
|
|
"pt": "msg",
|
2024-05-18 07:40:16 +00:00
|
|
|
"to": "[\t 'detector',\t 'sensor',\t 'probe'\t ]",
|
|
|
|
"tot": "jsonata"
|
2024-05-01 16:11:37 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
2024-05-18 07:40:16 +00:00
|
|
|
"x": 1440,
|
|
|
|
"y": 1080,
|
2024-05-01 16:11:37 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
2024-05-18 07:40:16 +00:00
|
|
|
"046bf60c40a4df98"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "046bf60c40a4df98",
|
|
|
|
"type": "link call",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "0c4ddf3cde7a1e48",
|
|
|
|
"name": "",
|
|
|
|
"links": [
|
|
|
|
"63d576c59c72d487"
|
|
|
|
],
|
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
|
|
|
"x": 1680,
|
|
|
|
"y": 1080,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"13fd23967c40a92e",
|
|
|
|
"1efc470e05455106"
|
2024-05-01 16:11:37 +00:00
|
|
|
]
|
|
|
|
]
|
2024-07-21 15:21:51 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "990a132bdc19ba61",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "scene auto",
|
|
|
|
"property": "scene.path",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "istype",
|
|
|
|
"v": "string",
|
|
|
|
"vt": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 290,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2300,
|
2024-07-21 15:21:51 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"d23cdc7e80275f61"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"a8f829fc8739cbb4"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d23cdc7e80275f61",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "045e623bc9372013",
|
|
|
|
"name": "from global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "scenes[msg.scene.type][msg.scene.path]",
|
|
|
|
"tot": "global"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.type",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "routine.type",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.format",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "routine.format",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.on",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "routine.on",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.off",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "routine.off",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "tmp",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "$split(msg.routine.path,'/')",
|
|
|
|
"tot": "jsonata"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.bucket",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "tmp[0]",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.measurement",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "tmp[1]",
|
|
|
|
"tot": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "scene.field",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "tmp[2]",
|
|
|
|
"tot": "msg"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 490,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 2240,
|
2024-07-21 15:21:51 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c85ce3c75b98194c"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "bde274663e77041e",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "9b5a799c5df750d4",
|
|
|
|
"name": "scene has daily key",
|
|
|
|
"property": "scenes[msg.scene.type][msg.scene.path]",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "hask",
|
|
|
|
"v": "daily",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 310,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 4640,
|
2024-07-21 15:21:51 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b51db40b65f89f75"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ecec645c51268d24"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "bad6bd5983b2fc9f",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "mode automate",
|
|
|
|
"property": "metrics.system.mode.automate",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "automatic",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 3720,
|
|
|
|
"y": 2340,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f887a03f0fb2827a"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73754465446fef43"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c30c5a2566decb7b",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "mode type exists",
|
|
|
|
"property": "metrics.system.mode",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "hask",
|
|
|
|
"v": "scene.type",
|
|
|
|
"vt": "msg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 4170,
|
|
|
|
"y": 2220,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f102fde8fbfe7c18"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"303274117f982501"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f102fde8fbfe7c18",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "mode type not off",
|
|
|
|
"property": "metrics.system.mode[msg.scene.type]",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "neq",
|
|
|
|
"v": "off",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 4410,
|
|
|
|
"y": 2160,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"303274117f982501"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73754465446fef43"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "3ace672b36b6d59a",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "mode master",
|
|
|
|
"property": "metrics.system.mode.master",
|
|
|
|
"propertyType": "global",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "about.automate",
|
|
|
|
"vt": "global"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 3490,
|
|
|
|
"y": 2400,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"bad6bd5983b2fc9f"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73754465446fef43"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "da8810eee603cc4b",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "actif",
|
|
|
|
"property": "routine.actif",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 4850,
|
|
|
|
"y": 2280,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"d5c3ea38b7e24cce"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73754465446fef43"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f887a03f0fb2827a",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "system bucket",
|
|
|
|
"property": "scene.bucket",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "neq",
|
|
|
|
"v": "system",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 3940,
|
|
|
|
"y": 2280,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c30c5a2566decb7b"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"303274117f982501"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "303274117f982501",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "system bucket",
|
|
|
|
"property": "scene.bucket",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "neq",
|
|
|
|
"v": "system",
|
|
|
|
"vt": "str"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "true",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 4660,
|
|
|
|
"y": 2340,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"da8810eee603cc4b"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"73754465446fef43"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d5c3ea38b7e24cce",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "rsp 1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 5010,
|
|
|
|
"y": 2340,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"1f5be99b367a12d0",
|
|
|
|
"000413191731e86e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "73754465446fef43",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "rsp -1",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "-1",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 5010,
|
|
|
|
"y": 2400,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"1f5be99b367a12d0",
|
|
|
|
"000413191731e86e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1f5be99b367a12d0",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "routine mode",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "true",
|
|
|
|
"targetType": "full",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 5190,
|
|
|
|
"y": 2400,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0e78c14186033ece",
|
|
|
|
"type": "link in",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "routine mode",
|
|
|
|
"links": [],
|
|
|
|
"x": 2795,
|
|
|
|
"y": 2460,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"920db71eee0d2d26"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "000413191731e86e",
|
|
|
|
"type": "link out",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "routine mode",
|
|
|
|
"mode": "return",
|
|
|
|
"links": [],
|
|
|
|
"x": 5135,
|
|
|
|
"y": 2460,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "af2d889126787278",
|
|
|
|
"type": "link call",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "",
|
|
|
|
"links": [
|
|
|
|
"e520201563045cb4"
|
|
|
|
],
|
|
|
|
"linkType": "static",
|
|
|
|
"timeout": "30",
|
|
|
|
"x": 3130,
|
|
|
|
"y": 2460,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"e763cda95bda7657"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e763cda95bda7657",
|
|
|
|
"type": "switch",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "rsp",
|
|
|
|
"property": "routine.response",
|
|
|
|
"propertyType": "msg",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "eq",
|
|
|
|
"v": "1",
|
|
|
|
"vt": "num"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"t": "else"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"checkall": "false",
|
|
|
|
"repair": false,
|
|
|
|
"outputs": 2,
|
|
|
|
"x": 3310,
|
|
|
|
"y": 2460,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"3ace672b36b6d59a"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"d5b08905e305cd02"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d5b08905e305cd02",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"name": "rsp 0",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "routine.response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "0",
|
|
|
|
"tot": "num"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 5010,
|
|
|
|
"y": 2460,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"1f5be99b367a12d0",
|
|
|
|
"000413191731e86e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "920db71eee0d2d26",
|
|
|
|
"type": "delay",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"d": true,
|
|
|
|
"g": "690626cfbeb2561c",
|
|
|
|
"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": 2940,
|
|
|
|
"y": 2460,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"af2d889126787278"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2024-07-27 07:51:17 +00:00
|
|
|
{
|
|
|
|
"id": "73cc2886c2652521",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "29b883f9654391c8",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
2024-08-10 14:54:49 +00:00
|
|
|
"p": "response",
|
2024-07-27 07:51:17 +00:00
|
|
|
"pt": "msg",
|
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 850,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1880,
|
2024-07-27 07:51:17 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b6d241198242a6e5"
|
|
|
|
]
|
|
|
|
]
|
2024-08-10 14:54:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "191e6f3cf830909c",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 950,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1340,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"99e1c9e8654a9f81"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "5cc363dda9bce25f",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "1efacea0cfc080e2",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1400,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"99e1c9e8654a9f81"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "3086da9f511d035c",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1100,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f9f49c8d382ee23d"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "9185658a21e14bc0",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "414cdce0186b98d1",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 950,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 1040,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"f9f49c8d382ee23d"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "3354f1abc3e1c2cb",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 800,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"8218f7e7b47837c8"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8218f7e7b47837c8",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "e9594aa2f7507ac5",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 950,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 740,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"91841d3915124c8e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "73a1379dd26a21ce",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "false",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 790,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 500,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"bd6f2717b2f30241"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "5727bb6deb67bb8e",
|
|
|
|
"type": "change",
|
|
|
|
"z": "bcb4426f5301b9f2",
|
|
|
|
"g": "4c2fd374879bcc62",
|
|
|
|
"name": "rsp",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"t": "set",
|
|
|
|
"p": "response",
|
|
|
|
"pt": "msg",
|
|
|
|
"to": "true",
|
|
|
|
"tot": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"action": "",
|
|
|
|
"property": "",
|
|
|
|
"from": "",
|
|
|
|
"to": "",
|
|
|
|
"reg": false,
|
|
|
|
"x": 950,
|
2024-08-10 15:40:02 +00:00
|
|
|
"y": 440,
|
2024-08-10 14:54:49 +00:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"bd6f2717b2f30241"
|
|
|
|
]
|
|
|
|
]
|
2024-04-27 11:29:07 +00:00
|
|
|
}
|
|
|
|
]
|