[ { "id": "677f66663a198839", "type": "tab", "label": "U.System", "disabled": false, "info": "", "env": [] }, { "id": "19589484518b9c6d", "type": "group", "z": "677f66663a198839", "name": "system - room", "style": { "fill": "#ffC000", "fill-opacity": "0.05", "label": true, "stroke": "#ffC000" }, "nodes": [ "da2f54e055f1d1ac", "804c8129107645c1", "ca7b372f821ad44a" ], "x": 94, "y": 19, "w": 352, "h": 82 }, { "id": "f2395f53893d1689", "type": "group", "z": "677f66663a198839", "name": "system - mode", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "f8998acf5aadbdb9", "fa7ddb9a4e76d4f4" ], "x": 68, "y": 173, "w": 2074, "h": 854 }, { "id": "b797275a94ef83a0", "type": "group", "z": "677f66663a198839", "name": "system - clock", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "74e688fe3aca2cf8", "ce95f1d44dfe8e41" ], "x": 68, "y": 1073, "w": 2154, "h": 794 }, { "id": "a36cc06f8dcbf00f", "type": "group", "z": "677f66663a198839", "name": "system - statistics", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "f29264eda4a17c64", "669888077b4dd178" ], "x": 68, "y": 2753, "w": 2364, "h": 854 }, { "id": "efb33694649f8cca", "type": "group", "z": "677f66663a198839", "g": "1d2cd86f8aa4ad98", "name": "system - update - nycthemer", "style": { "label": true, "fill": "#92d04f", "fill-opacity": "0.05" }, "nodes": [ "5a6eb0e1ac869f15", "abbb527592df8f13", "4d3db92ea8a04423", "e83b088826de7bae", "42207b73be13eb88", "3631362524ac76c2", "3093560fba474989", "699d2f8babf2c777", "32f83da1742957b9", "1b94e49c6892430e", "486b70cea417c936", "35d6c8c0ecd67d15", "cefb48c3c6af8823", "f508a3f31bab139f", "77a6b5d427afc6c4", "06143f7b0cf08d31", "9a98ec99a05b6bd2", "4bb0b7fdcfbac2ec", "e25877a06b36a847" ], "x": 94, "y": 5051.5, "w": 2532, "h": 209.5 }, { "id": "c09962536325e13b", "type": "group", "z": "677f66663a198839", "g": "1d2cd86f8aa4ad98", "name": "system - update - high/low", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "dc928aa9dc8584f9", "ce836243f955dacc", "0fd0eeb840396afe", "4fc76f6c3f766c17", "e5ffb0daf3640ce6", "dfc1b5a5332179d3", "3e79ac3541f286cc", "5597c735c47c9f96", "8e19b120dae4551b", "1ce50655a8c2c3fa", "5ea98e4de1007f8a", "544325135170880d", "cc09d013af2551be", "5091c04ccb0ab761", "cf471b8980158bc0", "444b573a678eae86", "5e20f1a216d065db", "cd757066177ff887" ], "x": 94, "y": 5299, "w": 2312, "h": 202 }, { "id": "0164b91ce85885f1", "type": "group", "z": "677f66663a198839", "g": "1d2cd86f8aa4ad98", "name": "system - update - morning/evening limit", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "2a146094dde8c67c", "61ec09a3e29e77c5", "47f238a05f860cb8", "c7abcfa95d057080", "6938d471973bc8bc", "9211d80f8af2ae48", "222b3ef53e24b016", "0c5f9cad2a1fc910", "2adde777c1bbd4de", "470dca557c06170b", "294b6294066023f5", "d825d08b9338b067", "cbeae92b5052493c", "4e99af88ffdba5db", "efa356bb8b1556a7", "04a79aac2088b2e7", "6758f88a8d6ea407", "8ecd0ebf784afdaf", "c7751d4872064d44", "c2dc31e0130a863a", "e793ce4ebc5bfd58", "9d1ff2ced120c248", "cbb425cbf7f607de", "cb76330540a412e2", "4172bf899d0bf2ac" ], "x": 94, "y": 5539, "w": 3592, "h": 262 }, { "id": "1fb10d380183f0fb", "type": "group", "z": "677f66663a198839", "g": "1d2cd86f8aa4ad98", "name": "system - update - mode fire", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "54bfe450e2c0b4c4", "03dfda7ced4cff37", "ce1d069be85a0c57", "0a813fe1a03dd9d2", "c9db5272d112461d", "fa6ddb12553bf2a6", "0e504e3987b7b54d", "a45686b8b8fb6208", "ec3963cba00585e6", "a97dae7ab39393ae", "a70dd192770618ae", "8b9e4f8c047317ef", "8ef54afe5d6ae844" ], "x": 94, "y": 5839, "w": 1872, "h": 142 }, { "id": "8661cca3effea007", "type": "group", "z": "677f66663a198839", "name": "catch error", "style": { "fill": "#ff0000", "fill-opacity": "0.05", "label": true, "stroke": "#ff0000" }, "nodes": [ "64318333e0c24a2e", "ccb5ea956a7da538", "cff2ab3b56cd2174" ], "x": 534, "y": 19, "w": 422, "h": 82 }, { "id": "880406b4567be814", "type": "group", "z": "677f66663a198839", "name": "system - notification", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "1da397975de7d1ec", "f8be0b4c8fdf7515", "c76679b82b664526" ], "x": 68, "y": 2393, "w": 4644, "h": 314 }, { "id": "dcc6c15deafac254", "type": "group", "z": "677f66663a198839", "g": "1d2cd86f8aa4ad98", "name": "scene - update - mode offloading", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "6337b865cf950f75", "9b3b8bcdc0855c1e", "b828dd28be2d989e", "5bebd5edcaa27d4a", "081ee35748300e41", "219a16797f4e660b", "941c328aa789cd20", "50f976acb93639ae", "86e872ce81dbe1db", "d97a1426ddf5daa7", "d26c676d569b6493", "83ab06e68c831d58", "41bbda7f511c5b0e", "356c903039ddfce7", "0b19e3eea697dc84", "99ce56d98201828a", "a1d41139aa3a5c13", "228d06b3bd715a6b", "711c5bc0a5934b37", "7c4e8673f8d8b792", "af2a612b4b2c9920", "c6a9b69aea5a9499" ], "x": 94, "y": 6019, "w": 3792, "h": 202 }, { "id": "15c8b4ba4882bbdd", "type": "group", "z": "677f66663a198839", "g": "1d2cd86f8aa4ad98", "name": "system - update - mode automate", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "0bb26accb9a85c1d", "f3389085895c7a52", "92eb163189c941c8", "a5545316cd07a12d", "4c8301f4f4f9d22c", "9955845661cb93e3", "28fd1db5907e99c4", "0aba07706a309cb3", "067b3ebf52d05fb3", "d22de47308056f7f", "d2636d6f38eb5682" ], "x": 94, "y": 6259, "w": 1712, "h": 142 }, { "id": "1021acef5727d683", "type": "group", "z": "677f66663a198839", "name": "room - clock", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "69645e55501064d8", "a4306c9de01d4722", "90046052f5bcb625" ], "x": 68, "y": 1913, "w": 3584, "h": 434 }, { "id": "dad2ac027d4f9f24", "type": "group", "z": "677f66663a198839", "g": "3d031d2deeae776a", "name": "system - ui - danger", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "68a233d0b60bf782", "8c2ef16fb2ddd993", "1ceb6708c71a814b", "b0da73a9ef6b358d", "90eddf07569aadc0", "5b6c97eb42f7b833", "2302782a6ca41102", "27a767a07e780b79", "cc58fa2dc61acc60", "25ee1e1a9352792c", "9d60e3aa832ca2e6", "cf5f496c29268604", "3284f13d382e81d1", "c3c13d6fa17c274d", "5b282cccd8556d60", "909b4ec2024b4b79", "323fe7d6c43684c6", "dcf05c7a22428a38" ], "x": 94, "y": 3979, "w": 562, "h": 502 }, { "id": "a0476b1a7ec53d40", "type": "group", "z": "677f66663a198839", "g": "3d031d2deeae776a", "name": "system - ui - style", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "6c9ecc5fe46a02a5", "1c80c2edc1e21840" ], "x": 94, "y": 4879, "w": 252, "h": 82 }, { "id": "dd003c121420d45a", "type": "group", "z": "677f66663a198839", "g": "3d031d2deeae776a", "name": "config - ui - delete metric", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "cfd1c312affb0a45", "aaba9cf674e8cfe0", "4eb13f33c92436a9", "a103f8cc78fc5ad7", "61464b0778183fdb", "9cd19202a5858a27", "9401ba1506c0d201", "f59d0b8138fa7525", "43b5266fef6d73b9", "55366488e4c7e9c3", "649a5ab3d32438c5", "5c6b98d2f2d16291", "e9341386035b1f2c", "d274c198b7d6186e", "41f5791b1f5773f4", "d5741bb4d825808f", "608c1dd85cfe7947", "385e81d9be142966", "3737a5a641de4ed0", "acda966a000b4e22", "d4e3490de6550eea", "b15ee9861786845f", "eeff7c0a47ecf9ee", "5a86c32a699d6a2e", "1ff5fd68e1799ae5", "2a90b9bd2e0a777c", "7a76fc8d520b5b9e", "772791bd8b527740", "34f9df4fdd3bd8df", "8b6c9751b1c7cc20", "d7987f4bac2a1be7", "06183d3762a605b4", "6c0c33d1effc0c8d", "648265bba2a83bd7" ], "x": 94, "y": 4519, "w": 2042, "h": 322 }, { "id": "57bf8eefe70206c0", "type": "group", "z": "677f66663a198839", "g": "3d031d2deeae776a", "name": "system - ui - timers", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "3cc31621bae4b8f4", "fad6ea5928c43d20", "c44490a40f109a5c", "3373b870924b043e", "e26532940aaa52c6", "b4802ba3090bfb72", "b1aec9ed9eb8059e", "da6f3da669e024d3", "4f2f73098fe566cb", "a7721a73d1926ce0", "b5be1daf52eae0ec", "8009a084ca3785ef", "f53cc6991fe5640c", "c0a84f51998336e3", "da26fce301e2b672", "fb5a869082c28238", "b70d53e7c8c8615f", "0ca8ceaa6a406075", "970c53cf60f3037d" ], "x": 94, "y": 3679, "w": 2472, "h": 262 }, { "id": "c76679b82b664526", "type": "group", "z": "677f66663a198839", "g": "880406b4567be814", "name": "system - notification - ui", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true, "stroke": "#a4a4a4" }, "nodes": [ "d1f40d903ba49ae7", "32eb12f106b8c786", "07a07e509b818c1f", "c32288ec6571a37f" ], "x": 4054, "y": 2419, "w": 632, "h": 82 }, { "id": "f8998acf5aadbdb9", "type": "group", "z": "677f66663a198839", "g": "f2395f53893d1689", "name": "system - mode - device", "style": { "fill": "#ffC000", "fill-opacity": "0.05", "label": true }, "nodes": [ "aaee376ab741c976", "11010cbbc6f9b2c8", "e281bad48bd293b1", "4dab258c1a09367d", "35c1bab44d004988", "de7d9964bf29e382", "d41e4cebce2bca43", "97dc196e81b7409d", "0c700c804ad43278", "0fd97492731debd9", "ba0d99bb4b415430", "6623e31afbcb8143", "7639c6337690230d", "928da51d7458e5c8", "b517f0ddca2c408f", "4bdaadef97887180" ], "x": 94, "y": 199, "w": 702, "h": 802 }, { "id": "fa7ddb9a4e76d4f4", "type": "group", "z": "677f66663a198839", "g": "f2395f53893d1689", "name": "system - mode - ui", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "9115d56d55c93df5", "349f3c40d1c1b12e", "021f86a9f6ab04ae", "34e6ce73275a532e", "bf9261f8ae1151d3", "24516baa1174ca38", "ae364154f775506a", "003aaac69cd1095e", "04863aeaaaed38cf", "ca06a9cb7106d9e8", "97e27495865247db", "587bde08ed6671de", "c40ffe49c0a0ff99", "8ff81811fc69c047", "e7fce90947d78bb6", "7162e871274ba773", "9c410754eeed38a4", "1d6431834655bebd", "17ccab488210a553", "0eaec60a9f3079c3", "e5711a71b3892db1", "f7f098848fd8f773" ], "x": 894, "y": 199, "w": 1222, "h": 802 }, { "id": "74e688fe3aca2cf8", "type": "group", "z": "677f66663a198839", "g": "b797275a94ef83a0", "name": "system - clock - device", "style": { "fill": "#ffC000", "fill-opacity": "0.05", "label": true }, "nodes": [ "5230d94fd1a50ee4", "832cdc9413fa68e9", "346449e7aa3acf06", "bc5b2e9697867707", "b1c1797c1d7105fc", "d192a18518dbaddb", "66fc117529d78f16", "edeeccf645772a19", "76299bb5b2511493", "337719979ff14b9d", "cae30937ad7f610d" ], "x": 94, "y": 1099, "w": 742, "h": 502 }, { "id": "ce95f1d44dfe8e41", "type": "group", "z": "677f66663a198839", "g": "b797275a94ef83a0", "name": "system - clock - ui", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "d7b772643055b543", "bf58597579fa65ac", "eb0e20481326e5c8", "9dbdaedc889b5e55", "8a2cc36fee115da2", "3ee329a652898c8e", "c43a832d72d5f53c", "35b93554c4c3380f", "3c3ee84183ecc882", "18ca1e572ed1016e", "b0ed6159a28316ed", "e161c2ee367d789c", "30c1212e2308599a", "8393b1d9a9587d31", "58eb4557bbe9720b", "caf9f9d55230f2c7", "04c0023c70785d63", "1b40d5db9a25ad98", "5e8e2d18d89e920c", "ab6b3f6d38264d59", "14fc27d24bd74772", "8a25ef86b6027c7c", "b8192e76c51fbbc4", "61f16e58b8dd9743", "45366ae388d08a21", "3d531a0a7bd86cc6", "cc201fa7c244f54c", "54939b731493ac8e", "04d9f9e663d23588" ], "x": 934, "y": 1099, "w": 1262, "h": 742 }, { "id": "f29264eda4a17c64", "type": "group", "z": "677f66663a198839", "g": "a36cc06f8dcbf00f", "name": "system - statistics - update", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "b4dcaf3216134966", "ff1a30fbddcaa9fd", "38177fb0e91fdd3e", "d4a3fdcacd1fd1b5", "490e37ccfca71dba", "f4bd51a249bc40ab", "8f3269222142f0f4", "30972c85a28530dc", "0ed67256bb147e2b", "824a1416d7a3cfe1", "b2547f7ff4878848", "dff88b670b073ad9", "ef2234fa4551184f", "66b91b737f90ea46", "b5f125bb007480a0", "3839ed033b24f53f", "043c5221abd8d856", "77c59c4ebafe42bf", "77736ba628ab516c", "dfeb8a18db2eaef3", "673139e4d39c82c4", "38b4444508aa953e", "3aa89a8bd365e23f" ], "x": 94, "y": 2779, "w": 1062, "h": 562 }, { "id": "669888077b4dd178", "type": "group", "z": "677f66663a198839", "g": "a36cc06f8dcbf00f", "name": "system - statistics - ui", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "b17e3350f9ba81ad", "16111c5661efcc71", "deb62bbcd93f939a", "724cba04d6600bc8", "85184cd9cd45e820", "b105c14c0fdc8160", "bd3ccecd7ffb358a", "30ef8005a9e47bc3", "24ac821b70937ab9", "0b20ddd97c1ede52", "5a3104504f4a3395", "a0f5fe52e7f961cd", "a8090bc0c14620a4", "ae20c2d4314177d6", "117fb09fe859797f", "c44f928da06c7300", "7f49756b83bfd4c2", "2c98293fd7165f55", "8a2831b7ca3f44bb", "444cfa997924f2d1", "df6025b5aae9e534", "6d0a3f786ee1e6dc", "219a160adad0a1f0", "882afb599b11dfc2", "3942f23acf0c46ef", "7c26fd276e02a4e0", "9514e7483e1fbf25", "aa2c1cbac43ce23d", "5b377209d189ce5f", "44098478ecf1656f", "57d699f1b6a32708", "f6d83a5f32df320b", "5f0e5572410a109e", "b689b18c57b97204", "4c0b8b1cef01a74c", "547a266fcc858486", "a240016548c6caa5" ], "x": 1254, "y": 2779, "w": 1152, "h": 802 }, { "id": "f8be0b4c8fdf7515", "type": "group", "z": "677f66663a198839", "g": "880406b4567be814", "name": "systeme - notification - device", "style": { "fill": "#ffC000", "fill-opacity": "0.05", "label": true }, "nodes": [ "c2a86c4367422bab", "f9007d094495cf1e", "e959a705e61b2af2", "7cd892b62dd21dce", "f5258c11e0ecb735", "35d60f74b9485fd9" ], "x": 94, "y": 2419, "w": 662, "h": 202 }, { "id": "1da397975de7d1ec", "type": "group", "z": "677f66663a198839", "g": "880406b4567be814", "name": "system - notification - source - report", "style": { "fill": "#0070c0", "fill-opacity": "0.05", "label": true }, "nodes": [ "91b1a3ba200b7224", "10809fbcb58e7b57", "88cbf187e19ac35c", "b8e78b8410b6e649", "2a6fa1ae5525a75e", "c4d69a3eae0c83ef", "26cae0d4e5242b12", "ec804897907337da", "7b7d209612be6c16", "c9092af874161855", "a843eb029ae7f201", "b5bc4310321b1731", "29343b8ebe517525", "254eee2678120cf3", "bfd0b1ea1714250f", "99be15052a15c189", "14f62bd272d8de3a", "bb4c95232da30fce", "016f3f5a3657de3a", "e2462c311d89f2ca", "68af043bd05046dd", "8930fcc47c05b10e", "eae52aeb7020086f", "af13aea998f5e85c", "f6df529b06c4fa42" ], "x": 854, "y": 2419, "w": 3092, "h": 262 }, { "id": "69645e55501064d8", "type": "group", "z": "677f66663a198839", "g": "1021acef5727d683", "name": "room - clock - device", "style": { "fill": "#ffC000", "fill-opacity": "0.05", "label": true }, "nodes": [ "685a0ab8aaa24747", "260725a140f7cb61", "62d9811cb83cb6dd", "44266579fe2f82fd", "06ce61297d900620", "c90a6632bc4b63a3", "b9934bb215edafe6" ], "x": 94, "y": 1939, "w": 842, "h": 142 }, { "id": "a4306c9de01d4722", "type": "group", "z": "677f66663a198839", "g": "1021acef5727d683", "name": "room - clock - source", "style": { "fill": "#0070c0", "fill-opacity": "0.05", "label": true }, "nodes": [ "28812ef076d967f4", "7f0910ae6f903617", "85890de261cf2a1f", "ac912f36def02119", "ffb6d8f6427b4d52", "7a46605f38735c66", "b9f3d00e902f65a2", "1acc4b7b4c392c1f", "59e31b73c4ea2253", "5e6d3072053bc3d4", "61f1ad5814d37ec9" ], "x": 1034, "y": 1939, "w": 1282, "h": 202 }, { "id": "90046052f5bcb625", "type": "group", "z": "677f66663a198839", "g": "1021acef5727d683", "name": "room - ui - clock", "style": { "fill": "#6f2fa0", "fill-opacity": "0.05", "label": true }, "nodes": [ "511350d9f34ce767", "7aaae6f81accc54b", "20845c677b589935", "f5f89b6efb421399", "5673ce2c9088f475", "f718cac6e7ec06c5", "79fe08848f124125", "a87c14e04ed75544", "61ed7b677cad542e", "af46ed6d30e60e05", "7f2dd140d1c88cb9", "dad6bb6b40fef41e", "a65aa958e432f9a5", "dfa33a746c317040", "655dfbfe2810fe09", "4a94f4581ddd3f73" ], "x": 2414, "y": 1939, "w": 1212, "h": 382 }, { "id": "1d2cd86f8aa4ad98", "type": "group", "z": "677f66663a198839", "name": "system - update", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "15c8b4ba4882bbdd", "dcc6c15deafac254", "1fb10d380183f0fb", "0164b91ce85885f1", "c09962536325e13b", "efb33694649f8cca" ], "x": 68, "y": 5025.5, "w": 3844, "h": 1401.5 }, { "id": "3d031d2deeae776a", "type": "group", "z": "677f66663a198839", "name": "system - ui - various", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "57bf8eefe70206c0", "dad2ac027d4f9f24", "dd003c121420d45a", "a0476b1a7ec53d40" ], "x": 68, "y": 3653, "w": 2524, "h": 1334 }, { "id": "da2f54e055f1d1ac", "type": "change", "z": "677f66663a198839", "g": "19589484518b9c6d", "name": "room", "rules": [ { "t": "set", "p": "room", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" }, { "t": "set", "p": "#:(onMemory)::delete_stack_from_ui", "pt": "flow", "to": "{\"bucket\":\"\",\"measurement\":\"\",\"field\":\"\"}", "tot": "json" }, { "t": "set", "p": "#:(onMemory)::statistics", "pt": "flow", "to": "{\t 'counter':{\t 'stack':0,\t 'mqtt':0,\t 'influxdb':0,\t 'zigbee':0,\t 'zwave':0,\t 'rfxcom':0,\t 'bluetooth':0,\t 'loop':0,\t 'gate':0,\t 'offloading':0,\t 'reset':$millis()\t }\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 60, "wires": [ [ "ca7b372f821ad44a" ] ] }, { "id": "804c8129107645c1", "type": "link in", "z": "677f66663a198839", "g": "19589484518b9c6d", "name": "system - room", "links": [ "a0f0f63b3934f168" ], "x": 135, "y": 60, "wires": [ [ "da2f54e055f1d1ac" ] ] }, { "id": "ca7b372f821ad44a", "type": "link out", "z": "677f66663a198839", "g": "19589484518b9c6d", "name": "system - room", "mode": "link", "links": [ "6eafb2a9c1ec95c0" ], "x": 405, "y": 60, "wires": [] }, { "id": "aaee376ab741c976", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / assistant / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "assistant", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 240, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "11010cbbc6f9b2c8", "type": "link out", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "system - mode - device", "mode": "link", "links": [ "bfa594bf1f876c92" ], "x": 755, "y": 240, "wires": [] }, { "id": "e281bad48bd293b1", "type": "link in", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "system - mode - device", "links": [ "3fe55eddaf0140ee" ], "x": 135, "y": 240, "wires": [ [ "4bdaadef97887180" ] ] }, { "id": "4dab258c1a09367d", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / automate / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "automate", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 300, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "35c1bab44d004988", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / heating / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "heating", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 360, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "de7d9964bf29e382", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / cumulus / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "cumulus", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 420, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "d41e4cebce2bca43", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / offloading / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "offloading", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 480, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "97dc196e81b7409d", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / lighting / text / low", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "lighting", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "low", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 540, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "0c700c804ad43278", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / fire / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "fire", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 600, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "0fd97492731debd9", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / master / text / iotmodred", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "master", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "iotredloop", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 660, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "ba0d99bb4b415430", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / notification / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 720, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "6623e31afbcb8143", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / nycthemer / text / night", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "nycthemer", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "night", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 780, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "7639c6337690230d", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / presence / text / present", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "presence", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "present", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 840, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "928da51d7458e5c8", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / sound / text / low", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "sound", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "low", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 900, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "b517f0ddca2c408f", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "mode / airflow / text / automatic", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "airflow", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "automatic", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 960, "wires": [ [ "11010cbbc6f9b2c8" ] ] }, { "id": "9115d56d55c93df5", "type": "link in", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "system - mode - ui - metric", "links": [ "031a6afd8300356a" ], "x": 935, "y": 300, "wires": [ [ "021f86a9f6ab04ae" ] ] }, { "id": "349f3c40d1c1b12e", "type": "link out", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "system - mode - ui - metric", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 2075, "y": 240, "wires": [] }, { "id": "021f86a9f6ab04ae", "type": "switch", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "check bucket", "property": "bucket", "propertyType": "msg", "rules": [ { "t": "eq", "v": "system", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1090, "y": 300, "wires": [ [ "04863aeaaaed38cf" ] ] }, { "id": "34e6ce73275a532e", "type": "change", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "from global", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics.system.mode", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1090, "y": 360, "wires": [ [ "bf9261f8ae1151d3" ] ] }, { "id": "bf9261f8ae1151d3", "type": "split", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "split measurement", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "field", "x": 1310, "y": 360, "wires": [ [ "003aaac69cd1095e" ] ] }, { "id": "24516baa1174ca38", "type": "change", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "set metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "topic", "tot": "msg" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" }, { "t": "delete", "p": "parts", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1940, "y": 240, "wires": [ [ "349f3c40d1c1b12e" ] ] }, { "id": "ae364154f775506a", "type": "link in", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "system - mode - ui - load", "links": [ "e509e8b44c9007e1" ], "x": 935, "y": 360, "wires": [ [ "34e6ce73275a532e" ] ] }, { "id": "003aaac69cd1095e", "type": "switch", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "select field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "assistant", "vt": "str" }, { "t": "eq", "v": "automate", "vt": "str" }, { "t": "eq", "v": "heating", "vt": "str" }, { "t": "eq", "v": "cumulus", "vt": "str" }, { "t": "eq", "v": "offloading", "vt": "str" }, { "t": "eq", "v": "lighting", "vt": "str" }, { "t": "eq", "v": "fire", "vt": "str" }, { "t": "eq", "v": "master", "vt": "str" }, { "t": "eq", "v": "notification", "vt": "str" }, { "t": "eq", "v": "nycthemer", "vt": "str" }, { "t": "eq", "v": "presence", "vt": "str" }, { "t": "eq", "v": "sound", "vt": "str" }, { "t": "eq", "v": "airflow", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 13, "x": 1550, "y": 360, "wires": [ [ "ca06a9cb7106d9e8" ], [ "97e27495865247db" ], [ "587bde08ed6671de" ], [ "c40ffe49c0a0ff99" ], [ "8ff81811fc69c047" ], [ "e7fce90947d78bb6" ], [ "7162e871274ba773" ], [ "9c410754eeed38a4" ], [ "1d6431834655bebd" ], [ "17ccab488210a553" ], [ "0eaec60a9f3079c3" ], [ "e5711a71b3892db1" ], [ "f7f098848fd8f773" ] ] }, { "id": "04863aeaaaed38cf", "type": "switch", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "name": "check measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "mode", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1320, "y": 300, "wires": [ [ "003aaac69cd1095e" ] ] }, { "id": "ca06a9cb7106d9e8", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "assistant", "label": "Assistant", "tooltip": "", "order": 11, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "assistant", "topicType": "str", "className": "", "x": 1740, "y": 240, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "97e27495865247db", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "automate", "label": "Automate", "tooltip": "", "order": 2, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Manuel", "value": "manual", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "automate", "topicType": "str", "className": "", "x": 1740, "y": 300, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "587bde08ed6671de", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "heating", "label": "Chauffage", "tooltip": "", "order": 7, "width": "6", "height": "1", "passthru": false, "multiple": false, "chips": false, "clearable": false, "options": [ { "label": "Chauffage", "value": "automatic", "type": "str" }, { "label": "Climatisation", "value": "cool", "type": "str" }, { "label": "Manuel", "value": "manual", "type": "str" }, { "label": "Hors-Gel", "value": "anti-freeze", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "heating", "topicType": "str", "className": "", "typeIsComboBox": true, "x": 1740, "y": 360, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "c40ffe49c0a0ff99", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "cumulus", "label": "Cumulus", "tooltip": "", "order": 8, "width": "6", "height": "1", "passthru": false, "multiple": false, "chips": false, "clearable": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Manuel", "value": "manual", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "cumulus", "topicType": "str", "className": "", "x": 1740, "y": 420, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "8ff81811fc69c047", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "offloading", "label": "Delestage", "tooltip": "", "order": 10, "width": "6", "height": "1", "passthru": false, "multiple": false, "chips": false, "clearable": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Délesté", "value": "offloaded", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "offloading", "topicType": "str", "className": "", "x": 1740, "y": 480, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "e7fce90947d78bb6", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "lighting", "label": "Eclairage", "tooltip": "", "order": 4, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Fort", "value": "high", "type": "str" }, { "label": "Faible", "value": "low", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "lighting", "topicType": "str", "className": "", "x": 1740, "y": 540, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "7162e871274ba773", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "fire", "label": "Incendie", "tooltip": "", "order": 12, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "fire", "topicType": "str", "className": "", "x": 1730, "y": 600, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "9c410754eeed38a4", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "master", "label": "Maitre", "tooltip": "", "order": 1, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "IotRedLoop", "value": "iotredloop", "type": "str" }, { "label": "IOT ModRED", "value": "iotmodred", "type": "str" }, { "label": "Jeedom", "value": "Jeedom", "type": "str" }, { "label": "Home Assistant", "value": "hassio", "type": "str" } ], "payload": "", "topic": "master", "topicType": "str", "className": "", "x": 1730, "y": 660, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "1d6431834655bebd", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "notification", "label": "Notification", "tooltip": "", "order": 6, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Ecrit", "value": "text", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "notification", "topicType": "str", "className": "", "x": 1750, "y": 720, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "17ccab488210a553", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "nycthemer", "label": "Nyctémère", "tooltip": "", "order": 3, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Jour", "value": "day", "type": "str" }, { "label": "Nuit", "value": "night", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "nycthemer", "topicType": "str", "className": "", "x": 1750, "y": 780, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "0eaec60a9f3079c3", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "presence", "label": "Présence", "tooltip": "", "order": 13, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Présent", "value": "present", "type": "str" }, { "label": "Absent", "value": "absent", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "presence", "topicType": "str", "className": "", "x": 1740, "y": 840, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "e5711a71b3892db1", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "sound", "label": "Son", "tooltip": "", "order": 5, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Fort", "value": "high", "type": "str" }, { "label": "Faible", "value": "low", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "sound", "topicType": "str", "className": "", "x": 1730, "y": 900, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "f7f098848fd8f773", "type": "ui-dropdown", "z": "677f66663a198839", "g": "fa7ddb9a4e76d4f4", "group": "d96c0844834ca9d7", "name": "airflow", "label": "Ventilation", "tooltip": "", "order": 9, "width": "6", "height": "1", "passthru": false, "multiple": false, "options": [ { "label": "Automatique", "value": "automatic", "type": "str" }, { "label": "Manuel", "value": "manual", "type": "str" }, { "label": "Arrêt", "value": "off", "type": "str" } ], "payload": "", "topic": "airflow", "topicType": "str", "className": "", "x": 1730, "y": 960, "wires": [ [ "24516baa1174ca38" ] ] }, { "id": "5230d94fd1a50ee4", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute dawn / number / 420", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute dawn", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "420", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 1140, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "832cdc9413fa68e9", "type": "link out", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "system - clock - device", "mode": "link", "links": [ "bfa594bf1f876c92" ], "x": 795, "y": 1140, "wires": [] }, { "id": "346449e7aa3acf06", "type": "link in", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "system - clock - device", "links": [ "3fe55eddaf0140ee" ], "x": 135, "y": 1140, "wires": [ [ "cae30937ad7f610d" ] ] }, { "id": "bc5b2e9697867707", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute dusk / number / 1200", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute dusk", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "1200", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 1200, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "b1c1797c1d7105fc", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute morning limit / number / 420", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute morning limit", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "420", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 540, "y": 1260, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "d192a18518dbaddb", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute evening limit / number / 1200", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute evening limit", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "1200", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 1320, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "66fc117529d78f16", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute morning work / number / 420", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute morning work", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "420", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 1380, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "edeeccf645772a19", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute morning rest / number / 510", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute morning rest", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "510", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 540, "y": 1440, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "76299bb5b2511493", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute evening rest / number / 1230", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute evening rest", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "1230", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 1560, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "337719979ff14b9d", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "clock / minute evening work / number / 1200", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "minute evening work", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "1200", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 1500, "wires": [ [ "832cdc9413fa68e9" ] ] }, { "id": "d7b772643055b543", "type": "link in", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "system - clock - ui - metric", "links": [ "031a6afd8300356a" ], "x": 975, "y": 1200, "wires": [ [ "eb0e20481326e5c8" ] ] }, { "id": "bf58597579fa65ac", "type": "link out", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "system - clock - ui - metric", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 2155, "y": 1620, "wires": [] }, { "id": "eb0e20481326e5c8", "type": "switch", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "check bucket", "property": "bucket", "propertyType": "msg", "rules": [ { "t": "eq", "v": "system", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1130, "y": 1200, "wires": [ [ "30c1212e2308599a" ] ] }, { "id": "9dbdaedc889b5e55", "type": "change", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "from global", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics.system.clock", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 1260, "wires": [ [ "8a2cc36fee115da2" ] ] }, { "id": "8a2cc36fee115da2", "type": "split", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "split measurement", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "field", "x": 1350, "y": 1260, "wires": [ [ "c43a832d72d5f53c" ] ] }, { "id": "3ee329a652898c8e", "type": "change", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "set metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "topic", "tot": "msg" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 1620, "wires": [ [ "bf58597579fa65ac" ] ] }, { "id": "c43a832d72d5f53c", "type": "switch", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "select field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "minute dawn", "vt": "str" }, { "t": "eq", "v": "minute dusk", "vt": "str" }, { "t": "eq", "v": "minute morning limit", "vt": "str" }, { "t": "eq", "v": "minute evening limit", "vt": "str" }, { "t": "eq", "v": "minute morning work", "vt": "str" }, { "t": "eq", "v": "minute evening work", "vt": "str" }, { "t": "eq", "v": "minute morning rest", "vt": "str" }, { "t": "eq", "v": "minute evening rest", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 8, "x": 1590, "y": 1260, "wires": [ [ "3c3ee84183ecc882" ], [ "18ca1e572ed1016e" ], [ "b0ed6159a28316ed" ], [ "e161c2ee367d789c" ], [ "1b40d5db9a25ad98", "8a25ef86b6027c7c" ], [ "5e8e2d18d89e920c", "61f16e58b8dd9743" ], [ "ab6b3f6d38264d59", "cc201fa7c244f54c" ], [ "14fc27d24bd74772", "04d9f9e663d23588" ] ] }, { "id": "35b93554c4c3380f", "type": "link in", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "system - clock - ui - load", "links": [ "e509e8b44c9007e1" ], "x": 975, "y": 1260, "wires": [ [ "9dbdaedc889b5e55" ] ] }, { "id": "3c3ee84183ecc882", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1140, "wires": [ [ "8393b1d9a9587d31" ] ] }, { "id": "18ca1e572ed1016e", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1200, "wires": [ [ "58eb4557bbe9720b" ] ] }, { "id": "b0ed6159a28316ed", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1260, "wires": [ [ "caf9f9d55230f2c7" ] ] }, { "id": "e161c2ee367d789c", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1320, "wires": [ [ "04c0023c70785d63" ] ] }, { "id": "30c1212e2308599a", "type": "switch", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "check measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "clock", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1360, "y": 1200, "wires": [ [ "c43a832d72d5f53c" ] ] }, { "id": "8393b1d9a9587d31", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 1, "width": "6", "height": "1", "name": "dawn", "label": "Lever du soleil", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2010, "y": 1140, "wires": [] }, { "id": "58eb4557bbe9720b", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 2, "width": "6", "height": "1", "name": "dusk", "label": "Coucher du soleil", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2010, "y": 1200, "wires": [] }, { "id": "caf9f9d55230f2c7", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 3, "width": "6", "height": "1", "name": "morning limit", "label": "Limite au matin", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2030, "y": 1260, "wires": [] }, { "id": "04c0023c70785d63", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 4, "width": "6", "height": "1", "name": "evening limit", "label": "Limite au soir", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2030, "y": 1320, "wires": [] }, { "id": "1b40d5db9a25ad98", "type": "ui-slider", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "name": "minute matin travail", "label": "", "tooltip": "", "order": 6, "width": "3", "height": "1", "passthru": false, "outs": "end", "topic": "minute matin travail", "topicType": "str", "thumbLabel": true, "min": "360", "max": "720", "step": "10", "className": "", "x": 1810, "y": 1620, "wires": [ [ "3ee329a652898c8e" ] ] }, { "id": "5e8e2d18d89e920c", "type": "ui-slider", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "name": "minute soir travail", "label": "", "tooltip": "", "order": 8, "width": "3", "height": "1", "passthru": false, "outs": "end", "topic": "minute soir travail", "topicType": "str", "thumbLabel": true, "min": "960", "max": "1380", "step": "10", "className": "", "x": 1810, "y": 1680, "wires": [ [ "3ee329a652898c8e" ] ] }, { "id": "ab6b3f6d38264d59", "type": "ui-slider", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "name": "minute matin repos", "label": "", "tooltip": "", "order": 10, "width": "3", "height": "1", "passthru": false, "outs": "end", "topic": "minute matin repos", "topicType": "str", "thumbLabel": true, "min": "360", "max": "720", "step": "10", "className": "", "x": 1810, "y": 1740, "wires": [ [ "3ee329a652898c8e" ] ] }, { "id": "14fc27d24bd74772", "type": "ui-slider", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "name": "minute soir repos", "label": "", "tooltip": "", "order": 12, "width": "3", "height": "1", "passthru": false, "outs": "end", "topic": "minute soir repos", "topicType": "str", "thumbLabel": true, "min": "960", "max": "1380", "step": "10", "className": "", "x": 1810, "y": 1800, "wires": [ [ "3ee329a652898c8e" ] ] }, { "id": "8a25ef86b6027c7c", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1380, "wires": [ [ "b8192e76c51fbbc4" ] ] }, { "id": "b8192e76c51fbbc4", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 5, "width": "3", "height": "1", "name": "morning work delay", "label": "Décalage matin travail", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2050, "y": 1380, "wires": [] }, { "id": "61f16e58b8dd9743", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1440, "wires": [ [ "45366ae388d08a21" ] ] }, { "id": "45366ae388d08a21", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 7, "width": "3", "height": "1", "name": "evening wrok delay", "label": "Décalage soir travail", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2050, "y": 1440, "wires": [] }, { "id": "3d531a0a7bd86cc6", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 9, "width": "3", "height": "1", "name": "morning rest delay", "label": "Décalage matin repos", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2050, "y": 1500, "wires": [] }, { "id": "cc201fa7c244f54c", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1500, "wires": [ [ "3d531a0a7bd86cc6" ] ] }, { "id": "54939b731493ac8e", "type": "ui-text", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "group": "5585a336703abb4e", "order": 11, "width": "3", "height": "1", "name": "evening rest delay", "label": "Décalage soir repos", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2050, "y": 1560, "wires": [] }, { "id": "04d9f9e663d23588", "type": "link call", "z": "677f66663a198839", "g": "ce95f1d44dfe8e41", "name": "", "links": [ "20617e4a877c8fc3" ], "linkType": "static", "timeout": "30", "x": 1810, "y": 1560, "wires": [ [ "54939b731493ac8e" ] ] }, { "id": "b4dcaf3216134966", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - influxdb", "links": [ "4163673982458b27", "b20175d86ac76169" ], "x": 135, "y": 2940, "wires": [ [ "043c5221abd8d856" ] ] }, { "id": "ff1a30fbddcaa9fd", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - mqtt", "links": [ "0f1e413815ecc824" ], "x": 135, "y": 2880, "wires": [ [ "3839ed033b24f53f" ] ] }, { "id": "38177fb0e91fdd3e", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "increment statistic counter", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#:(onMemory)::statistics.counter[msg.topic]", "tot": "flow" }, { "t": "set", "p": "#:(onMemory)::statistics.counter[msg.topic]", "pt": "flow", "to": "$number(msg.payload)+1", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 930, "y": 2820, "wires": [ [ "f4bd51a249bc40ab" ] ] }, { "id": "d4a3fdcacd1fd1b5", "type": "delay", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "delay 50 ms", "pauseType": "delay", "timeout": "50", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 690, "y": 2820, "wires": [ [ "38177fb0e91fdd3e" ] ] }, { "id": "490e37ccfca71dba", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - kernel loop", "links": [ "031a6afd8300356a" ], "x": 135, "y": 2820, "wires": [ [ "b5f125bb007480a0" ] ] }, { "id": "f4bd51a249bc40ab", "type": "link out", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - update", "mode": "link", "links": [ "724cba04d6600bc8" ], "x": 1115, "y": 2820, "wires": [] }, { "id": "8f3269222142f0f4", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - gate", "links": [ "094771ea30e6c0b6" ], "x": 135, "y": 3240, "wires": [ [ "30972c85a28530dc" ] ] }, { "id": "30972c85a28530dc", "type": "switch", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "check payload", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "close", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 300, "y": 3240, "wires": [ [ "38b4444508aa953e" ] ] }, { "id": "0ed67256bb147e2b", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - zwave", "links": [ "82908fcfdf7f599a" ], "x": 135, "y": 3000, "wires": [ [ "77c59c4ebafe42bf" ] ] }, { "id": "824a1416d7a3cfe1", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - bluetooth", "links": [ "a411175648a9f14e" ], "x": 135, "y": 3180, "wires": [ [ "673139e4d39c82c4" ] ] }, { "id": "b2547f7ff4878848", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - zigbee", "links": [ "3398dde44269eb08" ], "x": 135, "y": 3060, "wires": [ [ "77736ba628ab516c" ] ] }, { "id": "dff88b670b073ad9", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - rfxcom", "links": [ "f0991abcca9403bc" ], "x": 135, "y": 3120, "wires": [ [ "dfeb8a18db2eaef3" ] ] }, { "id": "ef2234fa4551184f", "type": "link in", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "system - statistics - offloading", "links": [], "x": 135, "y": 3300, "wires": [ [ "66b91b737f90ea46" ] ] }, { "id": "66b91b737f90ea46", "type": "switch", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "check payload", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 300, "y": 3300, "wires": [ [ "3aa89a8bd365e23f" ] ] }, { "id": "b5f125bb007480a0", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "loop", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 2820, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "3839ed033b24f53f", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "mqtt", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 2880, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "043c5221abd8d856", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "influxdb", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 2940, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "77c59c4ebafe42bf", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "zwave", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 3000, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "77736ba628ab516c", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "zigbee", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 3060, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "dfeb8a18db2eaef3", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "rfxcom", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 3120, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "673139e4d39c82c4", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "bluetooth", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 3180, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "38b4444508aa953e", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "gate", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 3240, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "3aa89a8bd365e23f", "type": "change", "z": "677f66663a198839", "g": "f29264eda4a17c64", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "offloading", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 3300, "wires": [ [ "d4a3fdcacd1fd1b5" ] ] }, { "id": "b17e3350f9ba81ad", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "from flow", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#:(onMemory)::statistics.counter", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1860, "y": 2820, "wires": [ [ "16111c5661efcc71", "a0f5fe52e7f961cd", "a8090bc0c14620a4", "ae20c2d4314177d6", "8a2831b7ca3f44bb", "9514e7483e1fbf25", "219a160adad0a1f0", "3942f23acf0c46ef", "5b377209d189ce5f", "f6d83a5f32df320b" ] ] }, { "id": "deb62bbcd93f939a", "type": "delay", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "limit 1 msg / s", "pauseType": "rate", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": true, "allowrate": false, "outputs": 1, "x": 1460, "y": 2820, "wires": [ [ "44098478ecf1656f" ] ] }, { "id": "724cba04d6600bc8", "type": "link in", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "system - statistics - ui", "links": [ "f4bd51a249bc40ab" ], "x": 1295, "y": 2820, "wires": [ [ "deb62bbcd93f939a" ] ] }, { "id": "85184cd9cd45e820", "type": "delay", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "limit 3 msg / s", "pauseType": "rate", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "3", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1700, "y": 3480, "wires": [ [ "5a3104504f4a3395" ] ] }, { "id": "b105c14c0fdc8160", "type": "link in", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "system - statistics - ui - journal", "links": [ "592483f2183c6711" ], "x": 1295, "y": 3480, "wires": [ [ "85184cd9cd45e820" ] ] }, { "id": "bd3ccecd7ffb358a", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 2, "width": "6", "height": "1", "name": "last reset", "label": "RAZ", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2300, "y": 2820, "wires": [] }, { "id": "30ef8005a9e47bc3", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 8, "width": "6", "height": "1", "name": "to MQTT", "label": "Vers MQTT", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2300, "y": 2880, "wires": [] }, { "id": "24ac821b70937ab9", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 9, "width": "6", "height": "1", "name": "to influxdb", "label": "Vers Influxdb", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2310, "y": 2940, "wires": [] }, { "id": "0b20ddd97c1ede52", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 7, "width": "6", "height": "1", "name": "to loop", "label": "Boucle noyau", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2290, "y": 3240, "wires": [] }, { "id": "5a3104504f4a3395", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 1, "width": "6", "height": "1", "name": "journal", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2290, "y": 3480, "wires": [] }, { "id": "a0f5fe52e7f961cd", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.mqtt", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 2880, "wires": [ [ "30ef8005a9e47bc3" ] ] }, { "id": "a8090bc0c14620a4", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.influxdb", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 2940, "wires": [ [ "24ac821b70937ab9" ] ] }, { "id": "ae20c2d4314177d6", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.loop", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3240, "wires": [ [ "0b20ddd97c1ede52" ] ] }, { "id": "117fb09fe859797f", "type": "link in", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "system - statistics - ui - rate", "links": [ "c15d0c66ed5af79f" ], "x": 1295, "y": 3420, "wires": [ [ "df6025b5aae9e534" ] ] }, { "id": "c44f928da06c7300", "type": "delay", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "limit 1 msg / s", "pauseType": "rate", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": true, "allowrate": false, "outputs": 1, "x": 1700, "y": 3420, "wires": [ [ "2c98293fd7165f55" ] ] }, { "id": "7f49756b83bfd4c2", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 4, "width": "6", "height": "1", "name": "rate", "label": "Flux", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2290, "y": 3420, "wires": [] }, { "id": "2c98293fd7165f55", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload&' msg / sec'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3420, "wires": [ [ "7f49756b83bfd4c2" ] ] }, { "id": "8a2831b7ca3f44bb", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.gate", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3300, "wires": [ [ "444cfa997924f2d1" ] ] }, { "id": "444cfa997924f2d1", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 5, "width": "6", "height": "1", "name": "gate", "label": "Blocage", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2290, "y": 3300, "wires": [] }, { "id": "df6025b5aae9e534", "type": "switch", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "check payload type", "property": "payload", "propertyType": "msg", "rules": [ { "t": "istype", "v": "number", "vt": "number" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1470, "y": 3420, "wires": [ [ "c44f928da06c7300" ] ] }, { "id": "6d0a3f786ee1e6dc", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 11, "width": "6", "height": "1", "name": "to Zigbee", "label": "Vers Zigbee", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2300, "y": 3060, "wires": [] }, { "id": "219a160adad0a1f0", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.zigbee", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3060, "wires": [ [ "6d0a3f786ee1e6dc" ] ] }, { "id": "882afb599b11dfc2", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 10, "width": "6", "height": "1", "name": "to Zwave", "label": "Vers Zwave", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2300, "y": 3000, "wires": [] }, { "id": "3942f23acf0c46ef", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.zwave", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3000, "wires": [ [ "882afb599b11dfc2" ] ] }, { "id": "7c26fd276e02a4e0", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 12, "width": "6", "height": "1", "name": "to Rfxcom", "label": "Vers Rfxcom", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2300, "y": 3120, "wires": [] }, { "id": "9514e7483e1fbf25", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.rfxcom", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3120, "wires": [ [ "7c26fd276e02a4e0" ] ] }, { "id": "aa2c1cbac43ce23d", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 13, "width": "6", "height": "1", "name": "to Bluetooth", "label": "Vers Bluetooth", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2310, "y": 3180, "wires": [] }, { "id": "5b377209d189ce5f", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.bluetooth", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3180, "wires": [ [ "aa2c1cbac43ce23d" ] ] }, { "id": "44098478ecf1656f", "type": "delay", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "delay 50 ms", "pauseType": "delay", "timeout": "50", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1670, "y": 2820, "wires": [ [ "b17e3350f9ba81ad" ] ] }, { "id": "57d699f1b6a32708", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 6, "width": "6", "height": "1", "name": "offloading", "label": "Délestage", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2300, "y": 3360, "wires": [] }, { "id": "f6d83a5f32df320b", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.offloading", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3360, "wires": [ [ "57d699f1b6a32708" ] ] }, { "id": "3cc31621bae4b8f4", "type": "link in", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "system - ui - timers", "links": [ "23ef9aaffb31c21d", "e509e8b44c9007e1" ], "x": 135, "y": 3780, "wires": [ [ "fb5a869082c28238" ] ] }, { "id": "fad6ea5928c43d20", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "from global", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "timers", "tot": "global" }, { "t": "set", "p": "timers", "pt": "msg", "to": "[]", "tot": "jsonata" }, { "t": "set", "p": "#:(onMemory)::timers", "pt": "flow", "to": "[]", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "remove", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 830, "y": 3780, "wires": [ [ "da6f3da669e024d3" ] ] }, { "id": "c44490a40f109a5c", "type": "split", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1210, "y": 3720, "wires": [ [ "b1aec9ed9eb8059e" ] ] }, { "id": "3373b870924b043e", "type": "join", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "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": 2130, "y": 3720, "wires": [ [ "e26532940aaa52c6" ] ] }, { "id": "e26532940aaa52c6", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "set payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#:(onMemory)::timers", "tot": "flow" }, { "t": "set", "p": "class", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2310, "y": 3720, "wires": [ [ "b4802ba3090bfb72" ] ] }, { "id": "b4802ba3090bfb72", "type": "ui-table", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "group": "75b9549ee42d3246", "name": "table", "label": "text", "order": 2, "width": "6", "height": "1", "maxrows": 0, "autocols": true, "columns": [], "x": 2490, "y": 3780, "wires": [ [] ] }, { "id": "da6f3da669e024d3", "type": "switch", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "has timers", "property": "payload", "propertyType": "msg", "rules": [ { "t": "nempty" }, { "t": "else" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1030, "y": 3780, "wires": [ [ "c44490a40f109a5c", "8009a084ca3785ef" ], [ "b4802ba3090bfb72", "b5be1daf52eae0ec" ] ] }, { "id": "4f2f73098fe566cb", "type": "ui-text", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "group": "75b9549ee42d3246", "order": 1, "width": "6", "height": "1", "name": "none", "label": "", "format": "{{msg.payload}}", "layout": "row-center", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 1570, "y": 3840, "wires": [] }, { "id": "a7721a73d1926ce0", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "set payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "Aucune minuterie en cours", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1390, "y": 3840, "wires": [ [ "4f2f73098fe566cb" ] ] }, { "id": "b5be1daf52eae0ec", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "reset", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t \"groups\": {\t \"hide\": [\"Système:Minuteries\"]\t }\t}", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1210, "y": 3840, "wires": [ [ "a7721a73d1926ce0" ] ] }, { "id": "8009a084ca3785ef", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "set", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t \"groups\": {\t \"show\": [\"Système:Minuteries\"]\t }\t}", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "remove", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1210, "y": 3900, "wires": [ [ "a7721a73d1926ce0" ] ] }, { "id": "f53cc6991fe5640c", "type": "ui-button", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "group": "75b9549ee42d3246", "name": "reset timers", "label": "Supprimer les minuteries", "order": 3, "width": "6", "height": "1", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "{}", "payloadType": "json", "topic": "topic", "topicType": "msg", "x": 190, "y": 3840, "wires": [ [ "c0a84f51998336e3" ] ] }, { "id": "c0a84f51998336e3", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "reset global tmers", "rules": [ { "t": "set", "p": "timers", "pt": "global", "to": "{}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 410, "y": 3840, "wires": [ [ "da26fce301e2b672" ] ] }, { "id": "da26fce301e2b672", "type": "delay", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "delay 250 ms", "pauseType": "delay", "timeout": "250", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 630, "y": 3840, "wires": [ [ "fad6ea5928c43d20" ] ] }, { "id": "16111c5661efcc71", "type": "moment", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "", "topic": "", "input": "payload.reset", "inputType": "msg", "inTz": "Europe/Paris", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD/MM/YY HH:mm", "locale": "fr", "output": "payload", "outputType": "msg", "outTz": "Europe/Paris", "x": 2080, "y": 2820, "wires": [ [ "bd3ccecd7ffb358a" ] ] }, { "id": "b1aec9ed9eb8059e", "type": "moment", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "format date", "topic": "", "input": "payload.timer.time", "inputType": "msg", "inTz": "Europe/Paris", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD/MM/YYYY HH:mm:ss", "locale": "fr-FR", "output": "date", "outputType": "msg", "outTz": "Europe/Paris", "x": 1390, "y": 3720, "wires": [ [ "970c53cf60f3037d" ] ] }, { "id": "abbb527592df8f13", "type": "change", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "set metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "topic", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1480, "y": 5100, "wires": [ [ "9a98ec99a05b6bd2", "4bb0b7fdcfbac2ec" ] ] }, { "id": "4d3db92ea8a04423", "type": "function", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "minute dawn", "func": "var newMsg = {};\nnewMsg.payload = msg.dawn;\nnewMsg.topic = 'minute dawn';\nreturn newMsg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1290, "y": 5100, "wires": [ [ "abbb527592df8f13" ] ] }, { "id": "e83b088826de7bae", "type": "function", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "minute dusk", "func": "var newMsg = {};\nnewMsg.payload = msg.dusk;\nnewMsg.topic = 'minute dusk';\nreturn newMsg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1290, "y": 5160, "wires": [ [ "abbb527592df8f13" ] ] }, { "id": "42207b73be13eb88", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "mode nycthemer", "property": "metrics.system.mode.nycthemer", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 850, "y": 5100, "wires": [ [ "77a6b5d427afc6c4", "06143f7b0cf08d31" ] ] }, { "id": "3631362524ac76c2", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "mode automate", "property": "metrics.system.mode.automate", "propertyType": "global", "rules": [ { "t": "eq", "v": "automatic", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 620, "y": 5100, "wires": [ [ "42207b73be13eb88" ] ] }, { "id": "3093560fba474989", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "mode master", "property": "metrics.system.mode.master", "propertyType": "global", "rules": [ { "t": "eq", "v": "about.automate", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 410, "y": 5100, "wires": [ [ "3631362524ac76c2" ] ] }, { "id": "699d2f8babf2c777", "type": "change", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "day", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "day", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1870, "y": 5160, "wires": [ [ "1b94e49c6892430e" ] ] }, { "id": "32f83da1742957b9", "type": "change", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "set metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "nycthemer", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2220, "y": 5220, "wires": [ [ "9a98ec99a05b6bd2", "4bb0b7fdcfbac2ec" ] ] }, { "id": "1b94e49c6892430e", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "new value", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "metrics.system.mode.nycthemer", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2040, "y": 5220, "wires": [ [ "32f83da1742957b9" ] ] }, { "id": "486b70cea417c936", "type": "change", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "night", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "night", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1870, "y": 5220, "wires": [ [ "1b94e49c6892430e" ] ] }, { "id": "35d6c8c0ecd67d15", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "evening", "property": "evening", "propertyType": "msg", "rules": [ { "t": "false" }, { "t": "true" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1700, "y": 5160, "wires": [ [ "699d2f8babf2c777" ], [ "486b70cea417c936" ] ] }, { "id": "cefb48c3c6af8823", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "morning", "property": "morning", "propertyType": "msg", "rules": [ { "t": "false" }, { "t": "true" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1520, "y": 5220, "wires": [ [ "35d6c8c0ecd67d15" ], [ "486b70cea417c936" ] ] }, { "id": "f508a3f31bab139f", "type": "change", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "compute nycthemer", "rules": [ { "t": "set", "p": "minute_morning_limit", "pt": "msg", "to": "metrics.system.clock['minute morning limit']", "tot": "global" }, { "t": "set", "p": "minute_evening_limit", "pt": "msg", "to": "metrics.system.clock['minute evening limit']", "tot": "global" }, { "t": "set", "p": "morning", "pt": "msg", "to": "msg.dawn > msg.minute_morning_limit ? msg.dawn : msg.minute_morning_limit", "tot": "jsonata" }, { "t": "set", "p": "evening", "pt": "msg", "to": "msg.dusk < msg.minute_evening_limit ? msg.dusk : msg.minute_evening_limit", "tot": "jsonata" }, { "t": "set", "p": "morning", "pt": "msg", "to": "msg.now < msg.morning", "tot": "jsonata" }, { "t": "set", "p": "evening", "pt": "msg", "to": "msg.now > msg.evening", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1310, "y": 5220, "wires": [ [ "cefb48c3c6af8823" ] ] }, { "id": "77a6b5d427afc6c4", "type": "switch", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "global exists", "property": "metrics.system.clock['minute morning limit']", "propertyType": "global", "rules": [ { "t": "nnull" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1070, "y": 5220, "wires": [ [ "f508a3f31bab139f" ] ] }, { "id": "06143f7b0cf08d31", "type": "delay", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "limit 1 msg / 2 h", "pauseType": "rate", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "2", "rateUnits": "hour", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": true, "allowrate": false, "outputs": 1, "x": 1080, "y": 5100, "wires": [ [ "4d3db92ea8a04423", "e83b088826de7bae" ] ] }, { "id": "9a98ec99a05b6bd2", "type": "link out", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "system - update - nycthemer", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 2355, "y": 5160, "wires": [] }, { "id": "4bb0b7fdcfbac2ec", "type": "debug", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "system - update - nycthemer", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 2460, "y": 5100, "wires": [] }, { "id": "dc928aa9dc8584f9", "type": "moment", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "H", "topic": "", "input": "", "inputType": "date", "inTz": "Europe/Paris", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "HH", "locale": "Fr", "output": "hour", "outputType": "msg", "outTz": "Europe/Paris", "x": 690, "y": 5340, "wires": [ [ "ce836243f955dacc" ] ] }, { "id": "ce836243f955dacc", "type": "moment", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "m", "topic": "", "input": "", "inputType": "date", "inTz": "Europe/Paris", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "mm", "locale": "Fr", "output": "minute", "outputType": "msg", "outTz": "Europe/Paris", "x": 850, "y": 5340, "wires": [ [ "0fd0eeb840396afe" ] ] }, { "id": "0fd0eeb840396afe", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "now", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$number(msg.hour) * 60 + $number(msg.minute)", "tot": "jsonata" }, { "t": "set", "p": "morning", "pt": "msg", "to": "metrics.system.clock['minute morning limit']", "tot": "global" }, { "t": "set", "p": "evening", "pt": "msg", "to": "metrics.system.clock['minute evening limit']", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1010, "y": 5340, "wires": [ [ "4fc76f6c3f766c17" ] ] }, { "id": "4fc76f6c3f766c17", "type": "switch", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "between", "property": "payload", "propertyType": "msg", "rules": [ { "t": "btwn", "v": "morning", "vt": "msg", "v2": "evening", "v2t": "msg" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1180, "y": 5340, "wires": [ [ "dfc1b5a5332179d3" ], [ "e5ffb0daf3640ce6" ] ] }, { "id": "e5ffb0daf3640ce6", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "false", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1350, "y": 5400, "wires": [ [ "5ea98e4de1007f8a", "8e19b120dae4551b", "3e79ac3541f286cc" ] ] }, { "id": "dfc1b5a5332179d3", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1350, "y": 5340, "wires": [ [ "3e79ac3541f286cc", "8e19b120dae4551b", "5ea98e4de1007f8a" ] ] }, { "id": "3e79ac3541f286cc", "type": "switch", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "mode lighting", "property": "metrics.system.mode.lighting", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1530, "y": 5340, "wires": [ [ "5597c735c47c9f96" ] ] }, { "id": "5597c735c47c9f96", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "set metric lighting", "rules": [ { "t": "set", "p": "field", "pt": "msg", "to": "lighting", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'high':'low'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1750, "y": 5340, "wires": [ [ "5e20f1a216d065db" ] ] }, { "id": "8e19b120dae4551b", "type": "switch", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "mode sound", "property": "metrics.system.mode.sound", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1530, "y": 5400, "wires": [ [ "1ce50655a8c2c3fa" ] ] }, { "id": "1ce50655a8c2c3fa", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "set metric sound", "rules": [ { "t": "set", "p": "field", "pt": "msg", "to": "sound", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'high':'low'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1740, "y": 5400, "wires": [ [ "5e20f1a216d065db" ] ] }, { "id": "5ea98e4de1007f8a", "type": "switch", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "mode notification", "property": "metrics.system.mode.notification", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1550, "y": 5460, "wires": [ [ "544325135170880d" ] ] }, { "id": "544325135170880d", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "set metric notification", "rules": [ { "t": "set", "p": "field", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'automatic':'text'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1800, "y": 5460, "wires": [ [ "5e20f1a216d065db" ] ] }, { "id": "cc09d013af2551be", "type": "switch", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "mode automate", "property": "metrics.system.mode.automate", "propertyType": "global", "rules": [ { "t": "eq", "v": "automatic", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 500, "y": 5340, "wires": [ [ "dc928aa9dc8584f9" ] ] }, { "id": "5091c04ccb0ab761", "type": "switch", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "mode master", "property": "metrics.system.mode.master", "propertyType": "global", "rules": [ { "t": "eq", "v": "about.automate", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 290, "y": 5340, "wires": [ [ "cc09d013af2551be" ] ] }, { "id": "cf471b8980158bc0", "type": "link out", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "system - update - high/low", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 2155, "y": 5400, "wires": [] }, { "id": "444b573a678eae86", "type": "link in", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "system - update - high/low", "links": [ "004bb30c27c94fb4" ], "x": 135, "y": 5340, "wires": [ [ "5091c04ccb0ab761" ] ] }, { "id": "5e20f1a216d065db", "type": "change", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "set repeat", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 5400, "wires": [ [ "cf471b8980158bc0", "cd757066177ff887" ] ] }, { "id": "cd757066177ff887", "type": "debug", "z": "677f66663a198839", "g": "c09962536325e13b", "name": "system - update - high/low", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 2250, "y": 5340, "wires": [] }, { "id": "2a146094dde8c67c", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "mode master", "property": "metrics.system.mode.master", "propertyType": "global", "rules": [ { "t": "eq", "v": "about.automate", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 490, "y": 5640, "wires": [ [ "61ec09a3e29e77c5" ] ] }, { "id": "61ec09a3e29e77c5", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "mode automate", "property": "metrics.system.mode.automate", "propertyType": "global", "rules": [ { "t": "eq", "v": "automatic", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 700, "y": 5640, "wires": [ [ "47f238a05f860cb8" ] ] }, { "id": "47f238a05f860cb8", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "metrics", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics", "tot": "global" }, { "t": "set", "p": "day", "pt": "msg", "to": "false", "tot": "bool" }, { "t": "set", "p": "eve", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 900, "y": 5640, "wires": [ [ "c7abcfa95d057080" ] ] }, { "id": "c7abcfa95d057080", "type": "split", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "buckets", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "property": "payload", "x": 1080, "y": 5640, "wires": [ [ "6938d471973bc8bc" ] ] }, { "id": "6938d471973bc8bc", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "clock", "property": "payload", "propertyType": "msg", "rules": [ { "t": "hask", "v": "clock", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1250, "y": 5700, "wires": [ [ "9211d80f8af2ae48" ], [ "0c5f9cad2a1fc910" ] ] }, { "id": "9211d80f8af2ae48", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "work day", "property": "payload.clock", "propertyType": "msg", "rules": [ { "t": "hask", "v": "work day", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1440, "y": 5640, "wires": [ [ "222b3ef53e24b016" ], [ "e793ce4ebc5bfd58" ] ] }, { "id": "222b3ef53e24b016", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "today", "property": "payload.clock['work day']", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1610, "y": 5580, "wires": [ [ "2adde777c1bbd4de" ], [ "e793ce4ebc5bfd58" ] ] }, { "id": "0c5f9cad2a1fc910", "type": "join", "z": "677f66663a198839", "g": "0164b91ce85885f1", "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": 2450, "y": 5700, "wires": [ [ "d825d08b9338b067", "4e99af88ffdba5db" ] ] }, { "id": "2adde777c1bbd4de", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "true", "rules": [ { "t": "set", "p": "day", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1770, "y": 5580, "wires": [ [ "e793ce4ebc5bfd58" ] ] }, { "id": "470dca557c06170b", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "tomorrow", "property": "payload.clock['work eve']", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2120, "y": 5580, "wires": [ [ "294b6294066023f5" ], [ "0c5f9cad2a1fc910" ] ] }, { "id": "294b6294066023f5", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "true", "rules": [ { "t": "set", "p": "eve", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2290, "y": 5580, "wires": [ [ "0c5f9cad2a1fc910" ] ] }, { "id": "d825d08b9338b067", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "day", "property": "day", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2610, "y": 5580, "wires": [ [ "cbeae92b5052493c" ], [ "efa356bb8b1556a7" ] ] }, { "id": "cbeae92b5052493c", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "morning work", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics.system.clock['minute morning work']", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2800, "y": 5580, "wires": [ [ "8ecd0ebf784afdaf" ] ] }, { "id": "4e99af88ffdba5db", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "eve", "property": "eve", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "else" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 2610, "y": 5700, "wires": [ [ "04a79aac2088b2e7" ], [ "6758f88a8d6ea407" ] ] }, { "id": "efa356bb8b1556a7", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "morning rest", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics.system.clock['minute morning rest']", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2790, "y": 5640, "wires": [ [ "8ecd0ebf784afdaf" ] ] }, { "id": "04a79aac2088b2e7", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "evening work", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics.system.clock['minute evening work']", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2790, "y": 5700, "wires": [ [ "c7751d4872064d44" ] ] }, { "id": "6758f88a8d6ea407", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "evening rest", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics.system.clock['minute evening rest']", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2790, "y": 5760, "wires": [ [ "c7751d4872064d44" ] ] }, { "id": "8ecd0ebf784afdaf", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "set metric morning", "rules": [ { "t": "set", "p": "field", "pt": "msg", "to": "minute morning limit", "tot": "str" }, { "t": "delete", "p": "day", "pt": "msg" }, { "t": "delete", "p": "eve", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3030, "y": 5580, "wires": [ [ "cb76330540a412e2" ] ] }, { "id": "c7751d4872064d44", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "set metric evening", "rules": [ { "t": "set", "p": "field", "pt": "msg", "to": "minute evening limit", "tot": "str" }, { "t": "delete", "p": "eve", "pt": "msg" }, { "t": "delete", "p": "day", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3030, "y": 5700, "wires": [ [ "cb76330540a412e2" ] ] }, { "id": "c2dc31e0130a863a", "type": "link out", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "system - update - morning/evening limit", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 3375, "y": 5640, "wires": [] }, { "id": "e793ce4ebc5bfd58", "type": "switch", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "work eve", "property": "payload.clock", "propertyType": "msg", "rules": [ { "t": "hask", "v": "work eve", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1940, "y": 5640, "wires": [ [ "470dca557c06170b" ], [ "0c5f9cad2a1fc910" ] ] }, { "id": "9d1ff2ced120c248", "type": "link in", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "system - update - morning/evening limit", "links": [ "004bb30c27c94fb4" ], "x": 135, "y": 5640, "wires": [ [ "4172bf899d0bf2ac" ] ] }, { "id": "cbb425cbf7f607de", "type": "debug", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "system - update - morning/evening", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 3500, "y": 5580, "wires": [] }, { "id": "cb76330540a412e2", "type": "change", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "set repeat", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3240, "y": 5640, "wires": [ [ "cbb425cbf7f607de", "c2dc31e0130a863a" ] ] }, { "id": "4172bf899d0bf2ac", "type": "delay", "z": "677f66663a198839", "g": "0164b91ce85885f1", "name": "delay 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": 290, "y": 5640, "wires": [ [ "2a146094dde8c67c" ] ] }, { "id": "54bfe450e2c0b4c4", "type": "link in", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "system - update - mode fire", "links": [ "031a6afd8300356a" ], "x": 135, "y": 5880, "wires": [ [ "03dfda7ced4cff37", "8b9e4f8c047317ef" ] ] }, { "id": "03dfda7ced4cff37", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "trigger", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "smoke", "vt": "str" }, { "t": "eq", "v": "heat", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 270, "y": 5880, "wires": [ [ "ce1d069be85a0c57" ], [ "ce1d069be85a0c57" ] ] }, { "id": "ce1d069be85a0c57", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "check payload", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 460, "y": 5880, "wires": [ [ "0a813fe1a03dd9d2" ] ] }, { "id": "0a813fe1a03dd9d2", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "mode master", "property": "metrics.system.mode.master", "propertyType": "global", "rules": [ { "t": "eq", "v": "about.automate", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 670, "y": 5880, "wires": [ [ "c9db5272d112461d" ] ] }, { "id": "c9db5272d112461d", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "mode automate", "property": "metrics.system.mode.automate", "propertyType": "global", "rules": [ { "t": "eq", "v": "automatic", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 880, "y": 5880, "wires": [ [ "fa6ddb12553bf2a6" ] ] }, { "id": "fa6ddb12553bf2a6", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "mode fire", "property": "metrics.system.mode.fire", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1080, "y": 5880, "wires": [ [ "0e504e3987b7b54d" ] ] }, { "id": "0e504e3987b7b54d", "type": "trigger", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "set fire then automatic", "op1": "fire", "op2": "automatic", "op1type": "str", "op2type": "str", "duration": "5", "extend": true, "overrideDelay": false, "units": "min", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 1300, "y": 5940, "wires": [ [ "a45686b8b8fb6208" ] ] }, { "id": "a45686b8b8fb6208", "type": "change", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "set metric fire", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "fire", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1540, "y": 5940, "wires": [ [ "ec3963cba00585e6", "8ef54afe5d6ae844" ] ] }, { "id": "ec3963cba00585e6", "type": "link out", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "system - update - mode fire", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 1685, "y": 5940, "wires": [] }, { "id": "a97dae7ab39393ae", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "mode fire", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "fire", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 440, "y": 5940, "wires": [ [ "a70dd192770618ae" ] ] }, { "id": "a70dd192770618ae", "type": "change", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "reset", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1090, "y": 5940, "wires": [ [ "0e504e3987b7b54d" ] ] }, { "id": "8b9e4f8c047317ef", "type": "switch", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "trigger", "property": "path", "propertyType": "msg", "rules": [ { "t": "eq", "v": "system/mode/fire", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 270, "y": 5940, "wires": [ [ "a97dae7ab39393ae" ] ] }, { "id": "8ef54afe5d6ae844", "type": "debug", "z": "677f66663a198839", "g": "1fb10d380183f0fb", "name": "system - update - mode fire", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1800, "y": 5880, "wires": [] }, { "id": "5a6eb0e1ac869f15", "type": "bigtimer", "z": "677f66663a198839", "g": "efb33694649f8cca", "outtopic": "soleil", "outpayload1": "", "outpayload2": "", "name": "Sun nycthemer", "comment": "", "lat": "45.938776", "lon": "5.380814", "starttime": "5000", "endtime": "5001", "starttime2": "720", "endtime2": "720", "startoff": "0", "endoff": "-30", "startoff2": 0, "endoff2": 0, "offs": 0, "outtext1": "", "outtext2": "", "timeout": 1440, "sun": true, "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "jan": true, "feb": true, "mar": true, "apr": true, "may": true, "jun": true, "jul": true, "aug": true, "sep": true, "oct": true, "nov": true, "dec": true, "day1": 0, "month1": 0, "day2": 0, "month2": 0, "day3": 0, "month3": 0, "day4": 0, "month4": 0, "day5": 0, "month5": 0, "day6": 0, "month6": 0, "day7": 0, "month7": 0, "day8": 0, "month8": 0, "day9": 0, "month9": 0, "day10": 0, "month10": 0, "day11": 0, "month11": 0, "day12": 0, "month12": 0, "d1": 0, "w1": 0, "d2": 0, "w2": 0, "d3": 0, "w3": 0, "d4": 0, "w4": 0, "d5": 0, "w5": 0, "d6": 0, "w6": 0, "xday1": 0, "xmonth1": 0, "xday2": 0, "xmonth2": 0, "xday3": 0, "xmonth3": 0, "xday4": 0, "xmonth4": 0, "xday5": 0, "xmonth5": 0, "xday6": 0, "xmonth6": 0, "xday7": 0, "xmonth7": 0, "xday8": 0, "xmonth8": 0, "xday9": 0, "xmonth9": 0, "xday10": 0, "xmonth10": 0, "xday11": 0, "xmonth11": 0, "xday12": 0, "xmonth12": 0, "xd1": 0, "xw1": 0, "xd2": 0, "xw2": 0, "xd3": 0, "xw3": 0, "xd4": 0, "xw4": 0, "xd5": 0, "xw5": 0, "xd6": 0, "xw6": 0, "suspend": false, "random": false, "randon1": false, "randoff1": false, "randon2": false, "randoff2": false, "repeat": true, "atstart": true, "odd": false, "even": false, "x": 200, "y": 5100, "wires": [ [], [ "3093560fba474989" ], [] ] }, { "id": "e25877a06b36a847", "type": "comment", "z": "677f66663a198839", "g": "efb33694649f8cca", "name": "bigtimer latitude, longitude must be set according to location", "info": "", "x": 340, "y": 5160, "wires": [] }, { "id": "64318333e0c24a2e", "type": "catch", "z": "677f66663a198839", "g": "8661cca3effea007", "name": "catch error", "scope": null, "uncaught": false, "x": 620, "y": 60, "wires": [ [ "ccb5ea956a7da538" ] ] }, { "id": "ccb5ea956a7da538", "type": "change", "z": "677f66663a198839", "g": "8661cca3effea007", "name": "topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "system", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 790, "y": 60, "wires": [ [ "cff2ab3b56cd2174" ] ] }, { "id": "cff2ab3b56cd2174", "type": "link out", "z": "677f66663a198839", "g": "8661cca3effea007", "name": "catch error", "mode": "link", "links": [ "a52f0e788cd4dca3" ], "x": 915, "y": 60, "wires": [] }, { "id": "c2a86c4367422bab", "type": "change", "z": "677f66663a198839", "g": "f8be0b4c8fdf7515", "name": "notification / message / text / ", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "message", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 2460, "wires": [ [ "f9007d094495cf1e" ] ] }, { "id": "f9007d094495cf1e", "type": "link out", "z": "677f66663a198839", "g": "f8be0b4c8fdf7515", "name": "system - monitor - device", "mode": "link", "links": [ "bfa594bf1f876c92" ], "x": 715, "y": 2460, "wires": [] }, { "id": "e959a705e61b2af2", "type": "link in", "z": "677f66663a198839", "g": "f8be0b4c8fdf7515", "name": "system - monitor - device", "links": [ "3fe55eddaf0140ee" ], "x": 135, "y": 2460, "wires": [ [ "35d60f74b9485fd9" ] ] }, { "id": "7cd892b62dd21dce", "type": "change", "z": "677f66663a198839", "g": "f8be0b4c8fdf7515", "name": "notification / photo / text / ", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "photo", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 2520, "wires": [ [ "f9007d094495cf1e" ] ] }, { "id": "91b1a3ba200b7224", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "get metrics from global", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1280, "y": 2460, "wires": [ [ "10809fbcb58e7b57", "bfd0b1ea1714250f", "bb4c95232da30fce" ] ] }, { "id": "10809fbcb58e7b57", "type": "split", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "split by buckets", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "bucket", "x": 1520, "y": 2460, "wires": [ [ "88cbf187e19ac35c" ] ] }, { "id": "88cbf187e19ac35c", "type": "switch", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "select measurement", "property": "payload", "propertyType": "msg", "rules": [ { "t": "hask", "v": "seen", "vt": "str" }, { "t": "hask", "v": "battery", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1740, "y": 2460, "wires": [ [ "2a6fa1ae5525a75e" ], [ "a843eb029ae7f201" ] ] }, { "id": "b8e78b8410b6e649", "type": "split", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "split by fields", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "field", "x": 2130, "y": 2460, "wires": [ [ "7b7d209612be6c16" ] ] }, { "id": "2a6fa1ae5525a75e", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "seen", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.seen", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1950, "y": 2460, "wires": [ [ "b8e78b8410b6e649" ] ] }, { "id": "c4d69a3eae0c83ef", "type": "switch", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "last seen > 24h", "property": "payload", "propertyType": "msg", "rules": [ { "t": "lte", "v": "$millis() - 86400000", "vt": "jsonata" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2520, "y": 2460, "wires": [ [ "68af043bd05046dd" ] ] }, { "id": "26cae0d4e5242b12", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "set message", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "msg.trans & ' ' & msg.bucket & ' ne répond pas depuis plus de 24h.'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2950, "y": 2460, "wires": [ [ "14f62bd272d8de3a" ] ] }, { "id": "ec804897907337da", "type": "link out", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "system - notification - source - report", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 3615, "y": 2580, "wires": [] }, { "id": "7b7d209612be6c16", "type": "switch", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "select fields", "property": "field", "propertyType": "msg", "rules": [ { "t": "regex", "v": "^(remote|button)", "vt": "str", "case": false }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2310, "y": 2460, "wires": [ [], [ "c4d69a3eae0c83ef" ] ] }, { "id": "c9092af874161855", "type": "split", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "split by fields", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "field", "x": 2130, "y": 2520, "wires": [ [ "b5bc4310321b1731" ] ] }, { "id": "a843eb029ae7f201", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "battery", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.battery", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1950, "y": 2520, "wires": [ [ "c9092af874161855" ] ] }, { "id": "b5bc4310321b1731", "type": "switch", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "battery < 30%", "property": "payload", "propertyType": "msg", "rules": [ { "t": "lte", "v": "30", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2320, "y": 2520, "wires": [ [ "29343b8ebe517525" ] ] }, { "id": "29343b8ebe517525", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "set message", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "'batterie ' & msg.field & ' ' & msg.bucket & ' inferieur à 30%.'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2950, "y": 2520, "wires": [ [ "14f62bd272d8de3a" ] ] }, { "id": "254eee2678120cf3", "type": "link in", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "system - notification - source - report", "links": [ "6917e9365bf15cf3", "764da2d0527c1ef6", "f1a09e5456fe03fe" ], "x": 895, "y": 2460, "wires": [ [ "f6df529b06c4fa42" ] ] }, { "id": "bfd0b1ea1714250f", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "set message", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "Il n'y a rien de spécial.", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1510, "y": 2640, "wires": [ [ "99be15052a15c189" ] ] }, { "id": "99be15052a15c189", "type": "trigger", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "wait 5 s", "op1": "", "op2": "", "op1type": "nul", "op2type": "pay", "duration": "5", "extend": false, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 3300, "y": 2640, "wires": [ [ "8930fcc47c05b10e" ] ] }, { "id": "14f62bd272d8de3a", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "reset", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3130, "y": 2580, "wires": [ [ "99be15052a15c189", "8930fcc47c05b10e" ] ] }, { "id": "bb4c95232da30fce", "type": "link out", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "system - notification - source - report - addon", "mode": "link", "links": [], "x": 1455, "y": 2580, "wires": [] }, { "id": "016f3f5a3657de3a", "type": "link in", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "system - notification - source - report - addon", "links": [], "x": 1655, "y": 2580, "wires": [ [ "14f62bd272d8de3a" ] ] }, { "id": "e2462c311d89f2ca", "type": "comment", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "report addon", "info": "", "x": 1550, "y": 2540, "wires": [] }, { "id": "68af043bd05046dd", "type": "link call", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "", "links": [ "df0e4ab2e1efc286" ], "linkType": "static", "timeout": "30", "x": 2740, "y": 2460, "wires": [ [ "26cae0d4e5242b12" ] ] }, { "id": "8930fcc47c05b10e", "type": "change", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "set metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "report", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3480, "y": 2580, "wires": [ [ "eae52aeb7020086f", "ec804897907337da" ] ] }, { "id": "eae52aeb7020086f", "type": "debug", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "system - notification - source - report", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 3750, "y": 2520, "wires": [] }, { "id": "af13aea998f5e85c", "type": "comment", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "one message per sentence", "info": "", "x": 3530, "y": 2640, "wires": [] }, { "id": "f6df529b06c4fa42", "type": "gate", "z": "677f66663a198839", "g": "1da397975de7d1ec", "name": "gate source", "controlTopic": "gate source", "defaultState": "closed", "openCmd": "open", "closeCmd": "close", "toggleCmd": "toggle", "defaultCmd": "default", "statusCmd": "status", "persist": false, "storeName": "default", "x": 1050, "y": 2460, "wires": [ [ "91b1a3ba200b7224" ] ] }, { "id": "f5258c11e0ecb735", "type": "change", "z": "677f66663a198839", "g": "f8be0b4c8fdf7515", "name": "notification / report / text / ", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "report", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "text", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 2580, "wires": [ [ "f9007d094495cf1e" ] ] }, { "id": "d1f40d903ba49ae7", "type": "ui-notification", "z": "677f66663a198839", "g": "c76679b82b664526", "ui": "2d75e4809d2a6fbf", "position": "center center", "colorDefault": true, "color": "#000000", "displayTime": "5", "showCountdown": true, "outputs": 0, "allowDismiss": true, "dismissText": "Close", "raw": false, "className": "", "name": "ui notification", "x": 4590, "y": 2460, "wires": [] }, { "id": "32eb12f106b8c786", "type": "link in", "z": "677f66663a198839", "g": "c76679b82b664526", "name": "scene - ui - notification", "links": [ "031a6afd8300356a" ], "x": 4095, "y": 2460, "wires": [ [ "07a07e509b818c1f" ] ] }, { "id": "07a07e509b818c1f", "type": "switch", "z": "677f66663a198839", "g": "c76679b82b664526", "name": "trigger", "property": "path", "propertyType": "msg", "rules": [ { "t": "eq", "v": "system/notification/message", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 4230, "y": 2460, "wires": [ [ "c32288ec6571a37f" ] ] }, { "id": "c32288ec6571a37f", "type": "switch", "z": "677f66663a198839", "g": "c76679b82b664526", "name": " not empty", "property": "payload", "propertyType": "msg", "rules": [ { "t": "nempty" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 4400, "y": 2460, "wires": [ [ "d1f40d903ba49ae7" ] ] }, { "id": "6337b865cf950f75", "type": "link in", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "system - update - mode offloading", "links": [ "031a6afd8300356a" ], "x": 135, "y": 6180, "wires": [ [ "9b3b8bcdc0855c1e" ] ] }, { "id": "9b3b8bcdc0855c1e", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "overload", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 300, "y": 6180, "wires": [ [ "af2a612b4b2c9920" ] ] }, { "id": "b828dd28be2d989e", "type": "delay", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "wait 3 s", "pauseType": "delay", "timeout": "3", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1300, "y": 6180, "wires": [ [ "5bebd5edcaa27d4a" ] ] }, { "id": "5bebd5edcaa27d4a", "type": "change", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "metrics", "rules": [ { "t": "set", "p": "old_payload", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "metrics", "tot": "global" }, { "t": "set", "p": "#:(onMemory)::overload", "pt": "flow", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1480, "y": 6180, "wires": [ [ "081ee35748300e41" ] ] }, { "id": "081ee35748300e41", "type": "split", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "buckets", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "bucket", "property": "payload", "x": 1660, "y": 6180, "wires": [ [ "219a16797f4e660b" ] ] }, { "id": "219a16797f4e660b", "type": "split", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "measurements", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "measurement", "property": "payload", "x": 1860, "y": 6180, "wires": [ [ "941c328aa789cd20" ] ] }, { "id": "941c328aa789cd20", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "overload", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2080, "y": 6180, "wires": [ [ "86e872ce81dbe1db" ], [ "83ab06e68c831d58" ] ] }, { "id": "50f976acb93639ae", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "overloaded", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2610, "y": 6060, "wires": [ [ "d97a1426ddf5daa7" ], [ "d26c676d569b6493" ] ] }, { "id": "86e872ce81dbe1db", "type": "split", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "fields", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "field", "property": "payload", "x": 2270, "y": 6120, "wires": [ [ "c6a9b69aea5a9499" ] ] }, { "id": "d97a1426ddf5daa7", "type": "change", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "set flow", "rules": [ { "t": "set", "p": "#:(onMemory)::overload", "pt": "flow", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2800, "y": 6060, "wires": [ [ "d26c676d569b6493" ] ] }, { "id": "d26c676d569b6493", "type": "join", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "", "mode": "auto", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "useparts": false, "accumulate": "false", "timeout": "", "count": "", "reduceRight": false, "x": 2970, "y": 6120, "wires": [ [ "83ab06e68c831d58" ] ] }, { "id": "83ab06e68c831d58", "type": "join", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "", "mode": "auto", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "useparts": false, "accumulate": "false", "timeout": "", "count": "", "reduceRight": false, "x": 3130, "y": 6180, "wires": [ [ "41bbda7f511c5b0e" ] ] }, { "id": "41bbda7f511c5b0e", "type": "join", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "", "mode": "auto", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "useparts": false, "accumulate": "false", "timeout": "", "count": "", "reduceRight": false, "x": 3290, "y": 6180, "wires": [ [ "356c903039ddfce7" ] ] }, { "id": "356c903039ddfce7", "type": "change", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "offloading", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "#:(onMemory)::overload", "tot": "flow" }, { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'offloaded':'automatic'", "tot": "jsonata" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3450, "y": 6180, "wires": [ [ "0b19e3eea697dc84", "99ce56d98201828a" ] ] }, { "id": "0b19e3eea697dc84", "type": "debug", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "system - update - mode offloading", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 3700, "y": 6120, "wires": [] }, { "id": "99ce56d98201828a", "type": "link out", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "system - update - mode offloading", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 3575, "y": 6180, "wires": [] }, { "id": "a1d41139aa3a5c13", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "mode master", "property": "metrics.system.mode.master", "propertyType": "global", "rules": [ { "t": "eq", "v": "about.automate", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 670, "y": 6180, "wires": [ [ "228d06b3bd715a6b" ] ] }, { "id": "228d06b3bd715a6b", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "mode automate", "property": "metrics.system.mode.automate", "propertyType": "global", "rules": [ { "t": "eq", "v": "automatic", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 880, "y": 6180, "wires": [ [ "711c5bc0a5934b37" ] ] }, { "id": "711c5bc0a5934b37", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "mode offloading", "property": "metrics.system.mode.offloading", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1100, "y": 6180, "wires": [ [ "b828dd28be2d989e" ] ] }, { "id": "7c4e8673f8d8b792", "type": "comment", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "xxx / overload / electric meter", "info": "", "x": 240, "y": 6120, "wires": [] }, { "id": "af2a612b4b2c9920", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "electric meter", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 490, "y": 6180, "wires": [ [ "a1d41139aa3a5c13" ] ] }, { "id": "c6a9b69aea5a9499", "type": "switch", "z": "677f66663a198839", "g": "dcc6c15deafac254", "name": "field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "electric meter", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2430, "y": 6120, "wires": [ [ "50f976acb93639ae" ], [ "d26c676d569b6493" ] ] }, { "id": "0bb26accb9a85c1d", "type": "link in", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "system - update - mode automate", "links": [ "031a6afd8300356a" ], "x": 135, "y": 6360, "wires": [ [ "f3389085895c7a52" ] ] }, { "id": "f3389085895c7a52", "type": "switch", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "overload", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 300, "y": 6360, "wires": [ [ "92eb163189c941c8" ] ] }, { "id": "92eb163189c941c8", "type": "switch", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "server", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 490, "y": 6360, "wires": [ [ "28fd1db5907e99c4" ] ] }, { "id": "a5545316cd07a12d", "type": "comment", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "xxx / overload / server", "info": "", "x": 220, "y": 6300, "wires": [] }, { "id": "4c8301f4f4f9d22c", "type": "delay", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "wait 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": 1080, "y": 6360, "wires": [ [ "9955845661cb93e3", "d22de47308056f7f" ] ] }, { "id": "9955845661cb93e3", "type": "change", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "set metric mode automate", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "mode", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "automate", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'off':'automatic'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1310, "y": 6300, "wires": [ [ "067b3ebf52d05fb3", "d2636d6f38eb5682" ] ] }, { "id": "28fd1db5907e99c4", "type": "switch", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "mode master", "property": "metrics.system.mode.master", "propertyType": "global", "rules": [ { "t": "eq", "v": "about.automate", "vt": "global" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 670, "y": 6360, "wires": [ [ "0aba07706a309cb3" ] ] }, { "id": "0aba07706a309cb3", "type": "switch", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "mode automate", "property": "metrics.system.mode.automate", "propertyType": "global", "rules": [ { "t": "neq", "v": "manuel", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 880, "y": 6360, "wires": [ [ "4c8301f4f4f9d22c" ] ] }, { "id": "067b3ebf52d05fb3", "type": "link out", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "system - update - mode automate", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 1495, "y": 6360, "wires": [] }, { "id": "d22de47308056f7f", "type": "change", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "set notification metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "message", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'arrêt':'automatique'", "tot": "jsonata" }, { "t": "set", "p": "payload", "pt": "msg", "to": "'Alerte de surcharge CPU, passage automate en mode '&msg.payload", "tot": "jsonata" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1300, "y": 6360, "wires": [ [ "067b3ebf52d05fb3" ] ] }, { "id": "d2636d6f38eb5682", "type": "debug", "z": "677f66663a198839", "g": "15c8b4ba4882bbdd", "name": "system - update - mode automate", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1620, "y": 6300, "wires": [] }, { "id": "5f0e5572410a109e", "type": "link in", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "system - statistics - ui - cpu usage", "links": [ "031a6afd8300356a" ], "x": 1295, "y": 3540, "wires": [ [ "4c0b8b1cef01a74c" ] ] }, { "id": "b689b18c57b97204", "type": "delay", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "limit 1 msg / s", "pauseType": "rate", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": true, "allowrate": false, "outputs": 1, "x": 1700, "y": 3540, "wires": [ [ "547a266fcc858486" ] ] }, { "id": "4c0b8b1cef01a74c", "type": "switch", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "cpu usage", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1460, "y": 3540, "wires": [ [ "b689b18c57b97204" ] ] }, { "id": "547a266fcc858486", "type": "change", "z": "677f66663a198839", "g": "669888077b4dd178", "name": "payload", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload&'%'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 3540, "wires": [ [ "a240016548c6caa5" ] ] }, { "id": "a240016548c6caa5", "type": "ui-text", "z": "677f66663a198839", "g": "669888077b4dd178", "group": "dc35508e5890fb69", "order": 3, "width": "6", "height": "1", "name": "cpu usage", "label": "Charge", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 2310, "y": 3540, "wires": [] }, { "id": "685a0ab8aaa24747", "type": "change", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "clock / work day / boolean / false", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "room", "tot": "msg" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "work day", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "boolean", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 670, "y": 1980, "wires": [ [ "260725a140f7cb61" ] ] }, { "id": "260725a140f7cb61", "type": "link out", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "room - clock - device", "mode": "link", "links": [ "bfa594bf1f876c92" ], "x": 895, "y": 2040, "wires": [] }, { "id": "62d9811cb83cb6dd", "type": "link in", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "room - clock - device", "links": [ "3fe55eddaf0140ee" ], "x": 135, "y": 2040, "wires": [ [ "06ce61297d900620" ] ] }, { "id": "44266579fe2f82fd", "type": "change", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "clock/ work eve / boolean / false", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "room", "tot": "msg" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "work eve", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "boolean", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 670, "y": 2040, "wires": [ [ "260725a140f7cb61" ] ] }, { "id": "06ce61297d900620", "type": "change", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "rooms", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "rooms", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 2040, "wires": [ [ "c90a6632bc4b63a3" ] ] }, { "id": "c90a6632bc4b63a3", "type": "split", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "rooms", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "room", "property": "payload", "x": 430, "y": 2040, "wires": [ [ "685a0ab8aaa24747", "44266579fe2f82fd" ] ] }, { "id": "b9934bb215edafe6", "type": "comment", "z": "677f66663a198839", "g": "69645e55501064d8", "name": "create clock for each room", "info": "", "x": 230, "y": 1980, "wires": [] }, { "id": "28812ef076d967f4", "type": "link out", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "room - clock - source - in", "mode": "link", "links": [ "151c140cd7171c80", "3db710d8b9023738", "42c36b63863ecb77", "84aad657cc3015c1", "f1ddd31035db0cc4" ], "x": 1335, "y": 1980, "wires": [] }, { "id": "7f0910ae6f903617", "type": "change", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "sync", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "sync", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1210, "y": 1980, "wires": [ [ "28812ef076d967f4" ] ] }, { "id": "85890de261cf2a1f", "type": "link in", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "room - clock - source - out", "links": [ "2ecf7207d27bb785", "bbae4d26e41478ea", "c469093ebb0005f9", "e0395c593211c049", "e0ee48357ee30544" ], "x": 1495, "y": 1980, "wires": [ [ "b9f3d00e902f65a2" ] ] }, { "id": "ac912f36def02119", "type": "switch", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "topic", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "day", "vt": "str" }, { "t": "eq", "v": "eve", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1970, "y": 1980, "wires": [ [ "7a46605f38735c66" ], [ "7a46605f38735c66" ] ] }, { "id": "ffb6d8f6427b4d52", "type": "link out", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "room - clock - source", "mode": "link", "links": [], "x": 2275, "y": 1980, "wires": [] }, { "id": "7a46605f38735c66", "type": "change", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "room", "tot": "msg" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "clock", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "'work '&msg.topic", "tot": "jsonata" }, { "t": "set", "p": "payload", "pt": "msg", "to": "$boolean(msg.payload)", "tot": "jsonata" }, { "t": "set", "p": "topic", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2150, "y": 1980, "wires": [ [ "ffb6d8f6427b4d52" ] ] }, { "id": "b9f3d00e902f65a2", "type": "switch", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "sync", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "sync", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1630, "y": 1980, "wires": [ [ "59e31b73c4ea2253", "61f1ad5814d37ec9" ], [ "1acc4b7b4c392c1f" ] ] }, { "id": "1acc4b7b4c392c1f", "type": "delay", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "250 ms", "pauseType": "delay", "timeout": "250", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1800, "y": 2100, "wires": [ [ "ac912f36def02119" ] ] }, { "id": "59e31b73c4ea2253", "type": "change", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "work day", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" }, { "t": "set", "p": "topic", "pt": "msg", "to": "day", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1800, "y": 1980, "wires": [ [ "ac912f36def02119" ] ] }, { "id": "5e6d3072053bc3d4", "type": "link in", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "room - clock - source", "links": [ "074a67bf0fcf09ad" ], "x": 1075, "y": 1980, "wires": [ [ "7f0910ae6f903617" ] ] }, { "id": "61f1ad5814d37ec9", "type": "change", "z": "677f66663a198839", "g": "a4306c9de01d4722", "name": "work eve", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" }, { "t": "set", "p": "topic", "pt": "msg", "to": "eve", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1800, "y": 2040, "wires": [ [ "ac912f36def02119" ] ] }, { "id": "68a233d0b60bf782", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - boot - device", "mode": "link", "links": [ "9bac1aa814ac44eb" ], "x": 615, "y": 4140, "wires": [] }, { "id": "8c2ef16fb2ddd993", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "boot devices definitions", "label": "Amorcer les définitions d'équipements", "order": 3, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "buttonColor": "", "textColor": "", "iconColor": "", "x": 230, "y": 4140, "wires": [ [ "68a233d0b60bf782" ] ] }, { "id": "1ceb6708c71a814b", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "freeze kernel", "label": "Congeler le noyau", "order": 7, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "freeze", "payloadType": "str", "topic": "gate loop", "topicType": "str", "buttonColor": "", "textColor": "", "iconColor": "", "x": 190, "y": 4320, "wires": [ [ "5b282cccd8556d60" ] ] }, { "id": "b0da73a9ef6b358d", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "load backup file", "label": "Lire le fichier de sauvegarde", "order": 4, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "buttonColor": "", "textColor": "", "iconColor": "", "x": 200, "y": 4200, "wires": [ [ "909b4ec2024b4b79" ] ] }, { "id": "90eddf07569aadc0", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "close kernel", "label": "Fermer le noyau", "order": 8, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "close", "payloadType": "str", "topic": "gate loop", "topicType": "str", "buttonColor": "", "textColor": "", "iconColor": "", "x": 190, "y": 4380, "wires": [ [ "3284f13d382e81d1" ] ] }, { "id": "5b6c97eb42f7b833", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "open kernel", "label": "Ouvrir le noyau", "order": 6, "width": "6", "height": "1", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "open", "payloadType": "str", "topic": "gate", "topicType": "str", "x": 190, "y": 4440, "wires": [ [ "c3c13d6fa17c274d" ] ] }, { "id": "2302782a6ca41102", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "write backup file", "label": "Ecrire le fichier de sauvegarde", "order": 5, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "buttonColor": "", "textColor": "", "iconColor": "", "x": 200, "y": 4260, "wires": [ [ "25ee1e1a9352792c" ] ] }, { "id": "27a767a07e780b79", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "reboot system", "label": "Amorcer le serveur", "order": 1, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "buttonColor": "", "textColor": "", "iconColor": "", "x": 200, "y": 4020, "wires": [ [ "cc58fa2dc61acc60" ] ] }, { "id": "cc58fa2dc61acc60", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - boot - reboot", "mode": "link", "links": [ "db21979f63985719" ], "x": 615, "y": 4020, "wires": [] }, { "id": "6c9ecc5fe46a02a5", "type": "ui-template", "z": "677f66663a198839", "g": "a0476b1a7ec53d40", "group": "", "page": "", "ui": "2d75e4809d2a6fbf", "name": "", "order": 0, "width": 0, "height": 0, "head": "", "format": ".v-card .remove,\n.v-card-text .remove {\n display: none !important;\n visibility: hidden;\n color: transparent !important;\n}\n\n.nrdb-ui-text:hover {\n border-bottom: 2px solid #CCCCCC;\n color: #CCCCCC !important;\n margin-bottom: -2px;\n}\n", "storeOutMessages": true, "passthru": true, "resendOnRefresh": true, "templateScope": "site:style", "className": "", "x": 260, "y": 4920, "wires": [ [] ] }, { "id": "1c80c2edc1e21840", "type": "link in", "z": "677f66663a198839", "g": "a0476b1a7ec53d40", "name": "system - ui - style", "links": [ "e509e8b44c9007e1" ], "x": 135, "y": 4920, "wires": [ [ "6c9ecc5fe46a02a5" ] ] }, { "id": "25ee1e1a9352792c", "type": "link call", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "", "links": [ "432e8063fae7039e" ], "linkType": "static", "timeout": "30", "x": 430, "y": 4260, "wires": [ [ "cf5f496c29268604" ] ] }, { "id": "9d60e3aa832ca2e6", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - kernel read from file", "mode": "link", "links": [ "92dac97dfb662f2d" ], "x": 615, "y": 4200, "wires": [] }, { "id": "cf5f496c29268604", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - kernel write to file", "mode": "link", "links": [], "x": 615, "y": 4260, "wires": [] }, { "id": "cfd1c312affb0a45", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "metrics", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "metrics", "tot": "global" }, { "t": "set", "p": "#:(onMemory)::data.buckets", "pt": "flow", "to": "[]", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 380, "y": 4620, "wires": [ [ "aaba9cf674e8cfe0" ] ] }, { "id": "aaba9cf674e8cfe0", "type": "split", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "bucket", "x": 550, "y": 4620, "wires": [ [ "4eb13f33c92436a9" ] ] }, { "id": "4eb13f33c92436a9", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "add", "rules": [ { "t": "set", "p": "#:(onMemory)::data.buckets[msg.parts.index]", "pt": "flow", "to": "{\"label\":msg.bucket, \"value\":msg.bucket}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 710, "y": 4620, "wires": [ [ "a103f8cc78fc5ad7" ] ] }, { "id": "a103f8cc78fc5ad7", "type": "join", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "mode": "auto", "build": "string", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 870, "y": 4620, "wires": [ [ "9cd19202a5858a27" ] ] }, { "id": "61464b0778183fdb", "type": "ui-dropdown", "z": "677f66663a198839", "g": "dd003c121420d45a", "group": "88a7ce8d8fd7e72b", "name": "buckets", "label": "Bucket", "tooltip": "", "order": 1, "width": "6", "height": "1", "passthru": false, "multiple": false, "chips": false, "clearable": false, "options": [ { "label": "» recharger", "value": "", "type": "str" } ], "payload": "", "topic": "topic", "topicType": "msg", "className": "", "typeIsComboBox": true, "x": 1220, "y": 4620, "wires": [ [ "d7987f4bac2a1be7" ] ] }, { "id": "9cd19202a5858a27", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "options", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "options", "pt": "msg", "to": "#:(onMemory)::data.buckets", "tot": "flow" }, { "t": "set", "p": "options", "pt": "msg", "to": "$sort(msg.options, function($l, $r) {\t $l[0].label > $r[0].label\t})", "tot": "jsonata" }, { "t": "set", "p": "options", "pt": "msg", "to": "$append(msg.options,[{'label':'» recharger','value':''}])", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1040, "y": 4620, "wires": [ [ "61464b0778183fdb" ] ] }, { "id": "9401ba1506c0d201", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "metrics", "rules": [ { "t": "set", "p": "#:(onMemory)::delete.bucket", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "topic[msg.payload]", "tot": "msg" }, { "t": "set", "p": "#:(onMemory)::data.measurements", "pt": "flow", "to": "[]", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 380, "y": 4680, "wires": [ [ "f59d0b8138fa7525" ] ] }, { "id": "f59d0b8138fa7525", "type": "split", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "measurement", "x": 550, "y": 4680, "wires": [ [ "43b5266fef6d73b9" ] ] }, { "id": "43b5266fef6d73b9", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "add", "rules": [ { "t": "set", "p": "#:(onMemory)::data.measurements[msg.parts.index]", "pt": "flow", "to": "{\"label\":msg.measurement, \"value\":msg.measurement}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 710, "y": 4680, "wires": [ [ "55366488e4c7e9c3" ] ] }, { "id": "55366488e4c7e9c3", "type": "join", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "mode": "auto", "build": "string", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 870, "y": 4680, "wires": [ [ "5c6b98d2f2d16291" ] ] }, { "id": "649a5ab3d32438c5", "type": "ui-dropdown", "z": "677f66663a198839", "g": "dd003c121420d45a", "group": "88a7ce8d8fd7e72b", "name": "measurements", "label": "Measurement", "tooltip": "", "order": 2, "width": "6", "height": "1", "passthru": false, "multiple": false, "chips": false, "clearable": false, "options": [ { "label": "__", "value": "", "type": "str" } ], "payload": "", "topic": "topic", "topicType": "msg", "className": "", "x": 1240, "y": 4680, "wires": [ [ "06183d3762a605b4" ] ] }, { "id": "5c6b98d2f2d16291", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "options", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "options", "pt": "msg", "to": "#:(onMemory)::data.measurements", "tot": "flow" }, { "t": "set", "p": "options", "pt": "msg", "to": "$sort(msg.options, function($l, $r) {\t $l[0].label > $r[0].label\t})", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1040, "y": 4680, "wires": [ [ "649a5ab3d32438c5" ] ] }, { "id": "e9341386035b1f2c", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "raz", "rules": [ { "t": "set", "p": "options", "pt": "msg", "to": "['-','-']", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "remove", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "", "tot": "str" }, { "t": "delete", "p": "bucket", "pt": "msg" }, { "t": "delete", "p": "measurement", "pt": "msg" }, { "t": "delete", "p": "field", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1050, "y": 4560, "wires": [ [ "61464b0778183fdb", "649a5ab3d32438c5", "385e81d9be142966", "eeff7c0a47ecf9ee", "acda966a000b4e22" ] ] }, { "id": "d274c198b7d6186e", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "metrics", "rules": [ { "t": "set", "p": "#:(onMemory)::delete.measurement", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "topic[msg.payload]", "tot": "msg" }, { "t": "set", "p": "#:(onMemory)::data.fields", "pt": "flow", "to": "[]", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 380, "y": 4740, "wires": [ [ "41f5791b1f5773f4" ] ] }, { "id": "41f5791b1f5773f4", "type": "split", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "field", "x": 550, "y": 4740, "wires": [ [ "d5741bb4d825808f" ] ] }, { "id": "d5741bb4d825808f", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "add", "rules": [ { "t": "set", "p": "#:(onMemory)::data.fields[msg.parts.index]", "pt": "flow", "to": "{\"label\":msg.field, \"value\":msg.field}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 710, "y": 4740, "wires": [ [ "608c1dd85cfe7947" ] ] }, { "id": "608c1dd85cfe7947", "type": "join", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "mode": "auto", "build": "string", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 870, "y": 4740, "wires": [ [ "3737a5a641de4ed0" ] ] }, { "id": "385e81d9be142966", "type": "ui-dropdown", "z": "677f66663a198839", "g": "dd003c121420d45a", "group": "88a7ce8d8fd7e72b", "name": "fields", "label": "Field", "tooltip": "", "order": 3, "width": "6", "height": "1", "passthru": false, "multiple": false, "chips": false, "clearable": false, "options": [ { "label": "__", "value": "", "type": "str" } ], "payload": "", "topic": "topic", "topicType": "msg", "className": "", "x": 1210, "y": 4740, "wires": [ [ "5a86c32a699d6a2e" ] ] }, { "id": "3737a5a641de4ed0", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "options", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "options", "pt": "msg", "to": "#:(onMemory)::data.fields", "tot": "flow" }, { "t": "set", "p": "options", "pt": "msg", "to": "$sort(msg.options, function($l, $r) {\t $l[0].label > $r[0].label\t})", "tot": "jsonata" }, { "t": "set", "p": "options", "pt": "msg", "to": "$append(msg.options,[{'label':'» TOUT','':''}])", "tot": "jsonata" }, { "t": "set", "p": "class", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1040, "y": 4740, "wires": [ [ "385e81d9be142966" ] ] }, { "id": "acda966a000b4e22", "type": "delay", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "wait 100 ms", "pauseType": "delay", "timeout": "100", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 190, "y": 4620, "wires": [ [ "cfd1c312affb0a45" ] ] }, { "id": "d4e3490de6550eea", "type": "delay", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "wait 100 ms", "pauseType": "delay", "timeout": "100", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 190, "y": 4680, "wires": [ [ "9401ba1506c0d201" ] ] }, { "id": "b15ee9861786845f", "type": "delay", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "wait 100 ms", "pauseType": "delay", "timeout": "100", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 190, "y": 4740, "wires": [ [ "d274c198b7d6186e" ] ] }, { "id": "eeff7c0a47ecf9ee", "type": "ui-button", "z": "677f66663a198839", "g": "dd003c121420d45a", "group": "88a7ce8d8fd7e72b", "name": "delete", "label": "Effacer", "order": 4, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 1210, "y": 4800, "wires": [ [ "6c0c33d1effc0c8d" ] ] }, { "id": "5a86c32a699d6a2e", "type": "delay", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "wait 100 ms", "pauseType": "delay", "timeout": "100", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 190, "y": 4800, "wires": [ [ "772791bd8b527740" ] ] }, { "id": "1ff5fd68e1799ae5", "type": "link out", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "config ui - delete metric notification", "mode": "link", "links": [ "206c1fb4a48067df", "34f9df4fdd3bd8df" ], "x": 2095, "y": 4800, "wires": [] }, { "id": "2a90b9bd2e0a777c", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "global", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "#:(onMemory)::delete.bucket", "tot": "flow" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "#:(onMemory)::delete.measurement", "tot": "flow" }, { "t": "delete", "p": "metrics[msg.bucket][msg.measurement]", "pt": "global" }, { "t": "delete", "p": "options", "pt": "msg" }, { "t": "delete", "p": "topic", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1550, "y": 4740, "wires": [ [ "7a76fc8d520b5b9e" ] ] }, { "id": "7a76fc8d520b5b9e", "type": "delay", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "", "pauseType": "delay", "timeout": "1", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1720, "y": 4800, "wires": [ [ "8b6c9751b1c7cc20" ] ] }, { "id": "772791bd8b527740", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "metrics", "rules": [ { "t": "set", "p": "#:(onMemory)::delete.field", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "class", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 380, "y": 4800, "wires": [ [ "eeff7c0a47ecf9ee" ] ] }, { "id": "34f9df4fdd3bd8df", "type": "link in", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "config - ui - delete metric", "links": [ "1ff5fd68e1799ae5", "e509e8b44c9007e1" ], "x": 915, "y": 4560, "wires": [ [ "e9341386035b1f2c" ] ] }, { "id": "8b6c9751b1c7cc20", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "set notification metric", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "notification", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "message", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "Variable effacé", "tot": "str" }, { "t": "set", "p": "repeat", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1920, "y": 4800, "wires": [ [ "1ff5fd68e1799ae5" ] ] }, { "id": "d7987f4bac2a1be7", "type": "switch", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "reload", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1390, "y": 4620, "wires": [ [ "e9341386035b1f2c" ], [ "d4e3490de6550eea" ] ] }, { "id": "06183d3762a605b4", "type": "switch", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "empty", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1430, "y": 4680, "wires": [ [ "b15ee9861786845f" ] ] }, { "id": "6c0c33d1effc0c8d", "type": "switch", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "all fields", "property": "#:(onMemory)::delete.field", "propertyType": "flow", "rules": [ { "t": "empty" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1380, "y": 4800, "wires": [ [ "2a90b9bd2e0a777c" ], [ "648265bba2a83bd7" ] ] }, { "id": "648265bba2a83bd7", "type": "change", "z": "677f66663a198839", "g": "dd003c121420d45a", "name": "global", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "#:(onMemory)::delete.bucket", "tot": "flow" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "#:(onMemory)::delete.measurement", "tot": "flow" }, { "t": "set", "p": "field", "pt": "msg", "to": "#:(onMemory)::delete.field", "tot": "flow" }, { "t": "delete", "p": "metrics[msg.bucket][msg.measurement][msg.field]", "pt": "global" }, { "t": "delete", "p": "options", "pt": "msg" }, { "t": "delete", "p": "topic", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1550, "y": 4800, "wires": [ [ "7a76fc8d520b5b9e" ] ] }, { "id": "511350d9f34ce767", "type": "link in", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "room - ui - clock - load", "links": [ "9e4bfee0db3051d4" ], "x": 2455, "y": 1980, "wires": [ [ "61ed7b677cad542e", "dfa33a746c317040" ] ] }, { "id": "7aaae6f81accc54b", "type": "link in", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "room - ui - clock - metric", "links": [ "b6323e1460f6f50c" ], "x": 2455, "y": 2040, "wires": [ [ "20845c677b589935" ] ] }, { "id": "20845c677b589935", "type": "switch", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "clock", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2620, "y": 2040, "wires": [ [ "a87c14e04ed75544", "4a94f4581ddd3f73" ] ] }, { "id": "f5f89b6efb421399", "type": "change", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "reset", "rules": [], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3150, "y": 2100, "wires": [ [ "f718cac6e7ec06c5", "79fe08848f124125", "af46ed6d30e60e05", "a65aa958e432f9a5" ] ] }, { "id": "5673ce2c9088f475", "type": "switch", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "work day", "vt": "str" }, { "t": "eq", "v": "work eve", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 2990, "y": 2220, "wires": [ [ "f718cac6e7ec06c5", "7f2dd140d1c88cb9" ], [ "79fe08848f124125", "dad6bb6b40fef41e" ] ] }, { "id": "f718cac6e7ec06c5", "type": "ui-switch", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "work day", "label": "", "group": "3f693201c9dfc80c", "order": 2, "width": "1", "height": "1", "passthru": false, "topic": "work day", "topicType": "str", "style": "", "className": "", "onvalue": "true", "onvalueType": "bool", "onicon": "briefcase-clock", "oncolor": "teal", "offvalue": "false", "offvalueType": "bool", "officon": "briefcase-clock-outline", "offcolor": "grey", "x": 3540, "y": 2220, "wires": [ [] ] }, { "id": "79fe08848f124125", "type": "ui-switch", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "work eve", "label": "", "group": "3f693201c9dfc80c", "order": 4, "width": "1", "height": "1", "passthru": false, "topic": "work eve", "topicType": "str", "style": "", "className": "", "onvalue": "true", "onvalueType": "bool", "onicon": "briefcase-clock", "oncolor": "teal", "offvalue": "false", "offvalueType": "bool", "officon": "briefcase-clock-outline", "offcolor": "grey", "x": 3540, "y": 2280, "wires": [ [] ] }, { "id": "a87c14e04ed75544", "type": "delay", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "100 ms", "pauseType": "delay", "timeout": "100", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 2820, "y": 2220, "wires": [ [ "5673ce2c9088f475" ] ] }, { "id": "61ed7b677cad542e", "type": "delay", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "50 ms", "pauseType": "delay", "timeout": "50", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 2590, "y": 2100, "wires": [ [ "f5f89b6efb421399" ] ] }, { "id": "af46ed6d30e60e05", "type": "ui-text", "z": "677f66663a198839", "g": "90046052f5bcb625", "group": "3f693201c9dfc80c", "order": 1, "width": "5", "height": "1", "name": "work day (txt)", "label": "", "format": "{{msg.payload}}", "layout": "row-right", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 3340, "y": 2220, "wires": [] }, { "id": "7f2dd140d1c88cb9", "type": "change", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "format", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'Jour de travail':'Jour de repos'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3150, "y": 2220, "wires": [ [ "af46ed6d30e60e05" ] ] }, { "id": "dad6bb6b40fef41e", "type": "change", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "format", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "msg.payload?'Veille de travail':'Veille de repos'", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3150, "y": 2280, "wires": [ [ "a65aa958e432f9a5" ] ] }, { "id": "a65aa958e432f9a5", "type": "ui-text", "z": "677f66663a198839", "g": "90046052f5bcb625", "group": "3f693201c9dfc80c", "order": 3, "width": "5", "height": "1", "name": "work eve (txt)", "label": "", "format": "{{msg.payload}}", "layout": "row-right", "style": false, "font": "", "fontSize": 16, "color": "#717171", "className": "", "x": 3340, "y": 2280, "wires": [] }, { "id": "4bdaadef97887180", "type": "change", "z": "677f66663a198839", "g": "f8998acf5aadbdb9", "name": "bucket", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 240, "wires": [ [ "aaee376ab741c976", "4dab258c1a09367d", "35c1bab44d004988", "de7d9964bf29e382", "d41e4cebce2bca43", "97dc196e81b7409d", "0c700c804ad43278", "0fd97492731debd9", "ba0d99bb4b415430", "6623e31afbcb8143", "7639c6337690230d", "928da51d7458e5c8", "b517f0ddca2c408f" ] ] }, { "id": "cae30937ad7f610d", "type": "change", "z": "677f66663a198839", "g": "74e688fe3aca2cf8", "name": "bucket", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 1140, "wires": [ [ "5230d94fd1a50ee4", "bc5b2e9697867707", "b1c1797c1d7105fc", "76299bb5b2511493", "d192a18518dbaddb", "66fc117529d78f16", "edeeccf645772a19", "337719979ff14b9d" ] ] }, { "id": "35d60f74b9485fd9", "type": "change", "z": "677f66663a198839", "g": "f8be0b4c8fdf7515", "name": "bucket", "rules": [ { "t": "set", "p": "bucket", "pt": "msg", "to": "system", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 2460, "wires": [ [ "c2a86c4367422bab", "7cd892b62dd21dce", "f5258c11e0ecb735" ] ] }, { "id": "3284f13d382e81d1", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - gate loop - close", "mode": "link", "links": [ "da3a9220d88fc434" ], "x": 615, "y": 4380, "wires": [] }, { "id": "c3c13d6fa17c274d", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - gate loop - open", "mode": "link", "links": [ "3736e2a70e80e34c" ], "x": 615, "y": 4440, "wires": [] }, { "id": "5b282cccd8556d60", "type": "trigger", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "10 s", "op1": "close", "op2": "open", "op1type": "str", "op2type": "str", "duration": "10", "extend": false, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 2, "x": 490, "y": 4320, "wires": [ [ "3284f13d382e81d1" ], [ "c3c13d6fa17c274d" ] ] }, { "id": "909b4ec2024b4b79", "type": "link call", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "", "links": [ "dfb4b5350a9383c9" ], "linkType": "static", "timeout": "30", "x": 440, "y": 4200, "wires": [ [ "9d60e3aa832ca2e6" ] ] }, { "id": "fed554bf4e7fe590", "type": "comment", "z": "677f66663a198839", "name": "\"system\" is a reserved word for room and bucket", "info": "", "x": 1240, "y": 40, "wires": [] }, { "id": "323fe7d6c43684c6", "type": "ui-button", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "group": "018c8ded1126b49a", "name": "boot backup file", "label": "Amorcer le fichier de sauvegarde", "order": 2, "width": "6", "height": "1", "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "buttonColor": "", "textColor": "", "iconColor": "", "x": 200, "y": 4080, "wires": [ [ "dcf05c7a22428a38" ] ] }, { "id": "dcf05c7a22428a38", "type": "link out", "z": "677f66663a198839", "g": "dad2ac027d4f9f24", "name": "system - ui - boot - file", "mode": "link", "links": [ "cfe7a728431d4432" ], "x": 615, "y": 4080, "wires": [] }, { "id": "fb5a869082c28238", "type": "trigger", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "wait 1s", "op1": "", "op2": "", "op1type": "nul", "op2type": "payl", "duration": "1", "extend": true, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 640, "y": 3780, "wires": [ [ "fad6ea5928c43d20" ] ] }, { "id": "b70d53e7c8c8615f", "type": "link call", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "", "links": [ "025e219749a67439" ], "linkType": "static", "timeout": "30", "x": 1770, "y": 3720, "wires": [ [ "0ca8ceaa6a406075" ] ] }, { "id": "0ca8ceaa6a406075", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "add", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "$split(msg.payload.timer.path,'/')", "tot": "jsonata" }, { "t": "set", "p": "#:(onMemory)::timers[msg.parts.index]", "pt": "flow", "to": "{\t \"Scène\":msg.trans.scene,\t \"Chemin\":msg.trans.path,\t \"Fin\":msg.date\t }", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1970, "y": 3720, "wires": [ [ "3373b870924b043e" ] ] }, { "id": "970c53cf60f3037d", "type": "change", "z": "677f66663a198839", "g": "57bf8eefe70206c0", "name": "metric", "rules": [ { "t": "set", "p": "metric", "pt": "msg", "to": "payload.timer.path", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1570, "y": 3720, "wires": [ [ "b70d53e7c8c8615f" ] ] }, { "id": "dfa33a746c317040", "type": "change", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "group", "rules": [ { "t": "set", "p": "group", "pt": "msg", "to": "Horloge", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2970, "y": 1980, "wires": [ [ "655dfbfe2810fe09" ] ] }, { "id": "655dfbfe2810fe09", "type": "link out", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "room - ui - clock - control", "mode": "link", "links": [ "4afaf74fbb2e3c7f" ], "x": 3095, "y": 1980, "wires": [] }, { "id": "4a94f4581ddd3f73", "type": "change", "z": "677f66663a198839", "g": "90046052f5bcb625", "name": "control", "rules": [ { "t": "set", "p": "control", "pt": "msg", "to": "show", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2810, "y": 2040, "wires": [ [ "dfa33a746c317040" ] ] } ]