diff --git a/config-nodes.json b/config-nodes.json index a341096..3b86061 100644 --- a/config-nodes.json +++ b/config-nodes.json @@ -405,7 +405,7 @@ "ui": "2d75e4809d2a6fbf", "path": "/config", "icon": "tune", - "layout": "grid", + "layout": "flex", "theme": "0e53487482752cfe", "order": 3, "className": "", @@ -419,7 +419,7 @@ "page": "90601eed5215748f", "width": "6", "height": "1", - "order": 3, + "order": 2, "showTitle": true, "className": "", "visible": "true", @@ -481,5 +481,31 @@ "className": "", "visible": "true", "disabled": "false" + }, + { + "id": "403aaeef14cd4c8f", + "type": "ui-group", + "name": "Thermostats", + "page": "90601eed5215748f", + "width": "6", + "height": "1", + "order": 3, + "showTitle": true, + "className": "", + "visible": "true", + "disabled": "false" + }, + { + "id": "75a98516fdcdf832", + "type": "ui-group", + "name": "Thermostat - Calcul de demande de chauffe", + "page": "90601eed5215748f", + "width": "6", + "height": "1", + "order": 6, + "showTitle": true, + "className": "", + "visible": "true", + "disabled": "false" } ] \ No newline at end of file diff --git a/flow-manager-nodes-order.json b/flow-manager-nodes-order.json index b89d207..e077028 100644 --- a/flow-manager-nodes-order.json +++ b/flow-manager-nodes-order.json @@ -1 +1 @@ -["ab51b1e8cad7b700","bcb4426f5301b9f2","bac2b08cd7c2e421","a1e22fa468f03c15","aab0c030de7df5cc","e19f53e3dc7ab928","677f66663a198839","c2bfa0fea66ef080","ae92592138b2c924","eefe7f96cf64784b","a0496edd95de60f3","3a98a00afc60d7cd","50456628f56ade66","96d8990f6a4978cc","656a3398842092de","648d078d534a93be","818a8590288d6409","0aeb80f7dfc7025e","287e49684dc25aac","f6132c9f3c5a2911","8ebd43deda9d56d4","b64c96e257072f51","2af6505c256f006d","507cfaf8503b2019","a0476b1a7ec53d40","dad2ac027d4f9f24","dd003c121420d45a","5465922c8e3555e3","c25adeeb66986f83","e6f586ce062979fb","2b5e040737ce3d94","c76679b82b664526","19589484518b9c6d","3a961ed184f483d2","f2395f53893d1689","b797275a94ef83a0","ac8656880e79c64f","a36cc06f8dcbf00f","57bf8eefe70206c0","efb33694649f8cca","c09962536325e13b","0164b91ce85885f1","1fb10d380183f0fb","c761b34cfb83bf7b","3df91d363faee835","8e10979a9d4df3e5","f7b8f0b4a2f0c6c9","9817cea0e8546fbb","14bfb846eebf04b4","b31845e35ff96b51","29b883f9654391c8","1efacea0cfc080e2","414cdce0186b98d1","e9594aa2f7507ac5","4c2fd374879bcc62","1f31199c6478bed6","5a56612ef35c5fd3","3110fe9246e63b1e","63149b5b57a97c5b","a8dc4fab59fdefb4","f67a857ae75d906f","a762a7a552cb9f03","17a8ab0a21c7790b","a3c29b70c82234cc","72988ccecf802b11","b9a706d9e4980c1e","c7f0e1480df909e9","6c3162f93343ce7e","93fb3d4a50d16da0","bc29c56f900c8d36","3e71b89d61df9fd3","6386e9a459469b53","e9bd98a0b6e0d58c","20b116b788ef3f27","3711bd3352570a6c","bbf7bb18989048e1","9ea365cc69a1f2bf","cf7f82b8517f3250","0bdefb56ee5ef918","fedaeb34f9bc97e4","f8998acf5aadbdb9","fa7ddb9a4e76d4f4","74e688fe3aca2cf8","ce95f1d44dfe8e41","3ac47f7c0d888114","869c12168d4f1eff","846c648ed9c9e2f4","f29264eda4a17c64","669888077b4dd178","f65dfdda10900ffc","b0150193e3cce710","543a74289e049295","213d292b79e5fbcc","d0f7ea2cfc4571a3","9cd020968fe2a19d","2cdbc171bc86cb06","f36ad9add0dea84a","4cb9d5d99960728b","afbdaa08d5344ac6","d9548e9b1a2e6f36","874075d44d19869a","266f4436dc45ce89","3be00f677c6457bd","4937527cddd45b61","bd21a8b1786d3ed2","234feecbe12db6fa","a23c2aa7e24eb8f7","b5e2408a7d09537d","1e687cd4c0cc0ece","24eae452ebf32be6","cf382d5398b6de43","0bf16a20b9656c59","fee31a77e542b203","b40a3b0d2d310907","518b634fa908a4aa","ae4487a0bf7f922f","3ab6bcaac666ddc4","c706245ab487b7e2","d1b208e623179a25","dd7ef46856df793e","22dd0707e6d3a364","51fc92ba27d12eaa","cdd708cca8782382","8b2a4e4f622431e7","d6ba6007b1901314","ef0a4a5a649e056f","0bd651126b27aac6","442ad702808e3c66","fcf92ce9c73cd90d","d464a60fe4e4c421","36396f5285df476c","0e53487482752cfe","2d75e4809d2a6fbf","018c8ded1126b49a","88a7ce8d8fd7e72b","d96c0844834ca9d7","103382107d295424","5585a336703abb4e","b0bbfaa0e2f5be4a","dc35508e5890fb69","75b9549ee42d3246","90601eed5215748f","611358544679e8cf","e408b55d1dc6870d","241fa70e798648e8","a207a0d51c2ff7a8","8e909fed7a35e981","69041daa92bc0a8b","9262e99e20e0e654","d318afa2a81e4ff9","b2ccb6a2a248015d","9c89a41128573752","89d2eebcaafb5013","e93e8daa30075ae6","f61f5fe80ddf6ff1","637b84024e725f38","282bb73eb4892ab9","a2d25db2ace537ae","a4e3db9cc35fc9eb","7d45ca7ad7f363fe","70ae9d85820c14fb","6140ca98749acd85","bb1e8e34559c5a7f","83e8a9fa324dd4b9","51b002c497ad57cd","0b32686fe74c253f","5e3cb9bb3266089b","06581753b7673f83","14a0a0839924964f","411b13dfb3e989f0","4908c2284e498338","5891781e4a61525a","aa275d99ba85bee2","d34f38f155583ff7","5460a158225a328b","24058eec92534b27","1ceced58d0c32e85","ac4653be6ea01477","30220f4fe07e35a4","ba77500cd9f7f6da","b08802b0dbd9a58b","8f4503a19f2f639e","561aaceffe076a5d","0ff47b07b863d0ae","e6d11d0438e20b80","80459ca7317cce90","3e1b4213132404be","546f190f3ec0c90d","7f1a03ba2d4eb5d1","c3d88e1872a9789b","d85fe6335a6eae7b","d02f1b2f2c3a2a30","28b6c3fdb407e73b","7f76434616f622dc","eed8990163b1ca81","840c05ce502e7fdd","f02b4584af0d800c","1b98c37b3b7502e4","33f7a250a7341c43","ca442e58e65b32f8","c367834c9cccbe38","412878f8c488a0f4","7fa17301839c0fa6","764da2d0527c1ef6","d4146047c079ac62","074a67bf0fcf09ad","287d719de575c01f","004bb30c27c94fb4","867a71b7dae9c844","722c773f6314dd40","caa3c5097468f133","d8b85eb94b57b81f","4db395b3e8fa404f","4cfd419f66b58eda","d07502e0620ed3d9","da4da5b15f106b4a","6d6bcbb7ce10198f","9518f42686aaf99c","af3082ef59725979","3eda424ef17379e9","81b03b89f507e5ce","a6b8c9c223ea5942","82908fcfdf7f599a","62dd3e8d6c87a0f9","92d0d0a5798c06cf","247945a0f503ac90","341bc94dee8e9f96","1d8f71c67df6cec9","3738b065c50a0cac","ebdbee7baef678a6","3eb59215b6fb19e2","1052950934d566bf","a411175648a9f14e","55db3023ac9ae3c1","d4252f4120129d32","e60cbfea876d91e7","11a6de1c96795b4d","be2acafce4c2c74d","c8d1b777a117ee56","85c0a8032c692a9a","c73c3b488741b764","7a6db5a28141b284","a7e18f888c96ad05","5d53068f8b9e6936","b0b2d9829230be99","a34aeb4c51bcf655","fa2acb5ac9bb8c8c","3423fd727184042c","ca7f0d58c55a1358","b491f7eb02575108","c16f1ae420f44fb5","08f26275ef69e598","3398dde44269eb08","6c324b24ca028984","ac5c011465193c4e","57bd505da426547c","7b89e1d6b81feb1d","529f7e707934e514","fb76731a2064ad65","0c032c944567a64d","a3594a90f69fe537","5d0abf7735e4d38c","a39cfa7867f1affb","f0991abcca9403bc","de0c34e8104574b0","a4f8287c851b1796","03eacf7a446d906c","014d8a5287538444","735774bdb56f6be4","be945e0c2c2208b0","ed6bcbd32e72afe1","24a3e98a92c0d57d","19a5c46ec6c71456","0f1e413815ecc824","d40db95f9a154c3a","630dfeb0e033a476","56d93c268a656fc4","2cc2cdcf0b1f710e","b961d989c357e6d6","af148bf44b019b35","0a4c943dc3a06f0d","e12bb3f8258f4439","a19b9fbac3e9f89c","0aca727fc835e615","afd6a49ad55de215","432e8063fae7039e","dfb4b5350a9383c9","9d4a1f539c9bf58c","43c695b9490f5104","44308739c0f759ad","be0beee97ed2d572","5205205461f48680","2356f963725e84c6","d3064571c2fde064","ede79ed6b82aa804","b1e2b474e4c77892","faeff76a4321bee2","4163673982458b27","4280a1f889505f0c","27e3bd6cada7b554","7c75b6b921f30409","a98fde87c6b47e6e","61b310386916497a","b43439c6ab36fbfc","e287e4f4d7f3a174","ec2704a8e18114ea","14a5f0183ce7ec8d","5c4a3b8ce0220dd9","58359ad51f36d68e","c5465d5f64db4b45","1cbff7f3a7317c5b","4176c5d5bc97709c","1102208726a88a10","b425ab40ef97a294","592483f2183c6711","c5dc4f8c357a596f","074313bb4e48de6f","a441e9df790a0c3c","285c9ffa2f524440","234620fe148e1dca","5a49d1f4b12618a7","e4e85a27e4775ac9","e6a4e861a99b196c","12f02c43a82b46f9","68ad3074767eb2c3","56d131373d4e2f78","3a4c72588bb27ab4","357c6d106dec5efd","8bbf418d277b4df7","e2ef5706b35de7b0","c15d0c66ed5af79f","4264ed01f3943e2f","031a6afd8300356a","206c1fb4a48067df","d7f0ba2534f27b82","ca80e5fe27609a11","6466ac9bacd083e2","4689a4035be0c82e","895db12fd6d94a67","82229e46e51f94f5","fc88fb69cac1e5a5","0d78bebcc5541e02","3c3fe996c199516b","c785aed10e83430a","9f055c7cccb634c1","b90652e7f7d28f66","ae5e8ae05adac7fd","0831bd7e7daa4915","dd79805b7971cbbb","582f8e6b17a9d9d1","6473c46ecd9304c7","3743db17cb401840","1e908b6060a584ea","eca0e6f3657f0564","7cd303d0aadd1433","a974cddec777bd94","8fdb5986494986cc","baaac9a301ef150a","85ea82a3282907b1","19dc49123e66ac71","1eea209368626bc1","149401230ed2ed4c","2ba23548e87b0292","3cd44612df58e32f","8413c966166387ab","92f76d0a8a4f1178","ee66fb38bde2fdf4","cd2ac560f85327a9","94c79b8f52f0b6ba","bfa594bf1f876c92","2dedf503efee73c8","e5f9a77af592fc78","35c936be0ce55676","c1d2a5b213c6568a","6d65af0eaae695a3","d3ac50a83c871cc8","fabb645e0d88c91c","e68b067b48b94ca2","acd42b52bd581740","d74bb73a0966b4bd","92dac97dfb662f2d","b0f54ce6c23c6da6","011c5e62deb510bb","4bab6cfef1e2c932","df1059b56622c582","7c98833082d48029","25445f5a9b787a0a","cb09b67a37901112","3e652e3da2c711ec","f7b2d28d9c7d66ae","464bfd100a5740b8","324b4e5e9a9419cc","eebbf361272ea85b","d248a5e5ab11c9d7","d9b8f97fb0897586","d49116054bd5cd56","797eac89000183db","afcaa4289efc76f2","af147f11a3d4d652","577298e83998f6d7","e5ceb5335c3b0d43","ce0256824b38971d","6a5bccc5dc98def6","f54479dc5f66620e","71e189afd8659a2d","b6d241198242a6e5","0e0adba49a29f70f","7662aba4a1cc9dd0","99e1c9e8654a9f81","4f02d67d81a83e86","e7ac1f9f3c8ae78c","ba9d70c1045cb088","6f7e7a5d7ebd031d","d40b223a978b9a1e","5070cadd19aa3954","f9f49c8d382ee23d","bc396dcc308c42ee","73a136cc319902eb","d84b5b147f5fa7a4","6ec40cadb83543dd","b6f0d1b534279a98","0414c3f0d95341ac","91841d3915124c8e","e112327c4a55aa35","c2532fc6bfffd154","31b42964ff3deb4f","4b32e84f6c624568","2e643b1746a93b44","c213314798c4a9be","bd6f2717b2f30241","825837a029db8ec5","45647475dad51f30","ef13c93a34fcab87","b75da43db9ea9e7e","a72b20551a3b1f8c","0385dd3208b83d41","2467c6c0b11061b2","20617e4a877c8fc3","73d23bc533cf4217","2623529da72f4fab","57308f5a0cd3a19c","1193f5bfb9ed605e","0649e79192cac511","d927741265d14171","d5d8c4715ec0a26e","2e5308d0d41d8f45","f0b254fe1c4498b4","71a537d09616f957","35482cea99bb8930","85c266f81afb8149","b1e3b8733a9b07d9","dfefeb84f19b0cdd","fb3656f3f703f806","9f8ed7d17fa2563e","b7220c5a5cc8839a","82a875cf6cbcd593","a78013f03326b7de","27363d8813e65608","a0ce1bcf4f05582e","55370ee6ac50747e","56b664a04bf746c4","25831aff94551d94","3df11a07928c3384","166a810ac9fa6788","4ebc8d54a2d607e3","3a386aa44264e024","5a20016530ef7456","f0b35e8721d6f54d","80cea71f7ecda2ce","8c963cf6be9b3705","224f8c1a9118c6b3","5bea31636c590d4d","8c512f9aad968692","1f0ebd92466c4bf2","32a9b240b25a2502","11f433c750eb1ef0","6d85ed8e8c797a61","882064c17728eabc","df0e4ab2e1efc286","11cf10d72d2c9472","636ca4080756bce2","03b03906a1eca939","3647ba89ea3a089c","3c7edb67cf24ba2a","3325e4593048135a","05787fb2b77146c8","0ad08e9e45d5435d","d81e30fc75183164","4ae579561784bac0","8546ac1e37b1b1fc","1ef3db77515c5330","df67aa8c4eb08c4b","6b5f520afcf9e941","1c6a5f6cf7a4171a","e3ec96cdb6ecec1d","2235915bcd1a9228","df89dd445c170c34","539176543f03340e","528d193f3ad76c04","d259cbfd50910254","4f66f48da30fbb41","5543b63f4f841d35","16e115607aca11e2","573b86bbb0b274cd","6969a430e98620f8","c40a25fa809f3f3f","cad9f0d374763a50","9846cd104deb4095","80713009a92b1fb1","25b8f66cb5486055","25a206dee6cb2d38","10352a4c8044bff8","d1f398881a976c8c","e340056f7c0ff7e6","4f2f651b305df0d8","f8e8e4320c84ad84","b20175d86ac76169","06e4c17b8ac467e1","af3687a9f899e8da","9a0856ef24c6ecb1","905240083e6bd5a2","e57340f8784de737","1d84aac6c8e2a838","eaf239f4e4fd9d20","c84ad49be11b1bd9","78a8877be3e75897","2b15984780ad93da","7e164b153068131f","cdfbaf7f971088a0","c77835080e9f86f2","aaa4d5f3593d6d65","f897b93a09482883","6430485715d1b2a6","8c5505de0a4d3dcd","5b6872ce327b1bf3","82ef8057da8c77aa","6c25a04857d1716e","f2de43c0a6cb7bf1","9a2254b818f75188","86b0a6aba2f70fe6","9bc81eccbc500c73","997f6535a7397b5d","c548f2f0529f2243","b4e36b962e02a910","38fbbacd76a1ebc8","bcd49af0e6417d46","7a20b1c05a7278f5","96d8b83164d22086","2a688b0630f5cca4","60a457c83fc5f610","b52eeb9d79637d39","7e386532c9061f5e","778b0602db797687","876d9a75aa665dc1","9a7fb4052f4efa9d","7472a7716d5e79fb","7a340e512e7cec9a","6ed80a0ca731e211","3c6f3e3cd994cec9","18fc113bdb7e4440","d997a0effd6d0126","8a93715d93e96ec9","ab2015a7036a8a2d","d5fc9c7840e287c6","4d9eef91906c3f6b","5ac5e9a27184058b","71d2809882564006","b497d6eeef074cdf","a97c1309cdf39d94","c34352d41e16989c","4638c42f2e097580","bcab76bcab7be22c","2aaa6917be59ea44","c2bbb4adbb91e2eb","2c63586ece8ae18a","543a55099b4d2327","1cde90641d601c65","5f80823cb39801f0","7162b7919ee04e41","b8a1f342f4e14446","33c0603ad410d85c","606f3caa9058900f","4e6003732b266fe2","68c4344a4704c54f","4ba5de5239f9fc87","1c06cdf0f784558b","116de42631d4b17a","f138e16b633d9429","2690f4e06626ebda","177aee50c214945c","ca620b08c9922bd0","8d6827df412a4059","b6c03b0d5a9952c9","9a20f95447f8ddfd","d4f555ae99a41fee","48ee82efe7b41570","290e5853a51cb170","e15462f85288d3c0","66835e34ae95f3f0","9ee5e12567650c9d","3b74b2448cdb18a9","b2e5e7af716d4ec6","aa39991b7847c574","1dd86a8b8b446749","3ec4a86ec9ec37f6","ef424db05e8a1103","1c55a9cf641c38ba","4ed33d50e1b4ebc9","656d1866a8ae8cf8","9e4bfee0db3051d4","74172837e07ab80d","1be6ca3c2b8615a2","06976c9133796ab8","3d2ea19ae9c4b9d2","9043871af737eb1a","b6323e1460f6f50c","b375ca01bb8f1e43","dc4343f890e4a3e1","57e1a96c1bf54302","cd4ebdd2c6d86368","eed5df5df9eb8030","d210ac6cc3e866c0","ef0d3b8996ec469c","fb0afb89fb191395","e32bfa4021bdd7a5","8a4cad272a925665","d1f40d903ba49ae7","c32288ec6571a37f","32eb12f106b8c786","9a7347381e1e503b","cb99733f4cbf651a","d16064888745aca6","4f797f5a02d9c87b","14633267d792195b","0883ad76e9a7a5db","a475141eb65765c3","d90ff6b37443ec5f","8e9b1543c286b201","6d6ed9fb73d6e770","d8cbcb0859722902","0dac7d543eb0f2f6","4587eb595b780266","1f088dee7d4ae695","43c18e1bfd41d830","acc79920bf40652d","0e2bb377d8a36c19","c726ae1ce799b0e5","5efcbb548a75c53a","6bb288d4243c8284","614269acaeaa7867","627ed76685724eb3","f87443fe4174e06e","ab6d3d1be0d9ea74","be031b830d435b36","b0f5b19866b880c9","14d401bc50aa536b","9188974904e49bd8","35ccd1812072ccad","c3473ac9ec464425","16de923274d0e608","b5e38130b6f4407c","b061fecd100938a0","a5bcb16d923c6f77","5d277429bd835728","942e30b09b200628","5d9abb5beb266ad0","b9abd7ec5b21a355","6c30e4c5efef2336","04c4726b012f7cde","b8039538d3ab41e7","a5b6191ffdceb78b","9e040dfa6ba0238f","8883fe1a066abc69","8632c99c540f117b","8e4e7eeb105a289a","426522c68084a014","da2f54e055f1d1ac","804c8129107645c1","ca7b372f821ad44a","551c4937df0e862d","49e203b7c8c18169","aaee376ab741c976","11010cbbc6f9b2c8","e281bad48bd293b1","4dab258c1a09367d","35c1bab44d004988","de7d9964bf29e382","d41e4cebce2bca43","97dc196e81b7409d","0c700c804ad43278","0fd97492731debd9","ba0d99bb4b415430","6623e31afbcb8143","7639c6337690230d","928da51d7458e5c8","b517f0ddca2c408f","9115d56d55c93df5","349f3c40d1c1b12e","021f86a9f6ab04ae","34e6ce73275a532e","bf9261f8ae1151d3","24516baa1174ca38","ae364154f775506a","003aaac69cd1095e","04863aeaaaed38cf","ca06a9cb7106d9e8","97e27495865247db","587bde08ed6671de","c40ffe49c0a0ff99","8ff81811fc69c047","e7fce90947d78bb6","7162e871274ba773","9c410754eeed38a4","1d6431834655bebd","17ccab488210a553","0eaec60a9f3079c3","e5711a71b3892db1","f7f098848fd8f773","5230d94fd1a50ee4","832cdc9413fa68e9","346449e7aa3acf06","bc5b2e9697867707","b1c1797c1d7105fc","d192a18518dbaddb","66fc117529d78f16","edeeccf645772a19","76299bb5b2511493","337719979ff14b9d","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","c2f4ed65313c79e3","e6ea054f0c263d05","ea0a6bf7471569b8","7f27c671b36b7f0d","105c061631062fa1","a3dd1fa555510840","4746f7254a82e9bc","836e500a2c7822c7","dfaedc0968b10c81","593c443b02b44445","a5ba2de38ffe6ea3","62056c26d5ec8e87","705b7aecc5fbd42d","bbbe0888e1da93c3","f2e7804129259d9e","5ba738211e0c4eac","b4dcaf3216134966","ff1a30fbddcaa9fd","38177fb0e91fdd3e","d4a3fdcacd1fd1b5","490e37ccfca71dba","f4bd51a249bc40ab","8f3269222142f0f4","30972c85a28530dc","0ed67256bb147e2b","824a1416d7a3cfe1","b2547f7ff4878848","dff88b670b073ad9","ef2234fa4551184f","66b91b737f90ea46","b5f125bb007480a0","3839ed033b24f53f","043c5221abd8d856","77c59c4ebafe42bf","77736ba628ab516c","dfeb8a18db2eaef3","673139e4d39c82c4","38b4444508aa953e","3aa89a8bd365e23f","b17e3350f9ba81ad","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","3cc31621bae4b8f4","fad6ea5928c43d20","c44490a40f109a5c","14f915e43eee9cb9","3373b870924b043e","e26532940aaa52c6","b4802ba3090bfb72","da6f3da669e024d3","4f2f73098fe566cb","a7721a73d1926ce0","b5be1daf52eae0ec","8009a084ca3785ef","f53cc6991fe5640c","c0a84f51998336e3","da26fce301e2b672","28451c24664fea72","16111c5661efcc71","b1aec9ed9eb8059e","abbb527592df8f13","4d3db92ea8a04423","e83b088826de7bae","42207b73be13eb88","3631362524ac76c2","3093560fba474989","699d2f8babf2c777","32f83da1742957b9","1b94e49c6892430e","486b70cea417c936","35d6c8c0ecd67d15","cefb48c3c6af8823","f508a3f31bab139f","77a6b5d427afc6c4","06143f7b0cf08d31","9a98ec99a05b6bd2","4bb0b7fdcfbac2ec","dc928aa9dc8584f9","ce836243f955dacc","0fd0eeb840396afe","4fc76f6c3f766c17","e5ffb0daf3640ce6","dfc1b5a5332179d3","3e79ac3541f286cc","5597c735c47c9f96","8e19b120dae4551b","1ce50655a8c2c3fa","5ea98e4de1007f8a","544325135170880d","cc09d013af2551be","5091c04ccb0ab761","cf471b8980158bc0","444b573a678eae86","5e20f1a216d065db","cd757066177ff887","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","54bfe450e2c0b4c4","03dfda7ced4cff37","ce1d069be85a0c57","0a813fe1a03dd9d2","c9db5272d112461d","fa6ddb12553bf2a6","0e504e3987b7b54d","a45686b8b8fb6208","ec3963cba00585e6","a97dae7ab39393ae","a70dd192770618ae","8b9e4f8c047317ef","8ef54afe5d6ae844","254e14629bc80024","d494bd28da0b3b4f","35870d5de45b5eca","2d1d8fa5d5acbce3","cc0d79a6d7d33ed8","a33484931cee65b0","4e15731a3c1a1e30","89feb0a79db2f26b","231b620ca0da576d","5e4d2999a1291797","75d8c07c0bbd922c","cc7d25ff439bf79d","2c7b8f31c26a0e08","4770c01b4d63433a","5a6eb0e1ac869f15","e25877a06b36a847","68823f1adeca7d61","4bec446170e0294c","065cece9562e787b","0c2ac00fd2259ffd","0e565e95e63c3654","6c9ecc5fe46a02a5","1c80c2edc1e21840","68a233d0b60bf782","8c2ef16fb2ddd993","1ceb6708c71a814b","aa2c3406c988ef4b","b0da73a9ef6b358d","8820bdb5b422a686","90eddf07569aadc0","5b6c97eb42f7b833","417badba7b8593d3","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","2302782a6ca41102","a69d70a155c21ef3"] +["ab51b1e8cad7b700","bcb4426f5301b9f2","bac2b08cd7c2e421","80f2ffd4953c67e9","a1e22fa468f03c15","aab0c030de7df5cc","e19f53e3dc7ab928","677f66663a198839","c2bfa0fea66ef080","ae92592138b2c924","eefe7f96cf64784b","a0496edd95de60f3","3a98a00afc60d7cd","50456628f56ade66","96d8990f6a4978cc","656a3398842092de","648d078d534a93be","818a8590288d6409","0aeb80f7dfc7025e","287e49684dc25aac","f6132c9f3c5a2911","8ebd43deda9d56d4","b64c96e257072f51","2af6505c256f006d","507cfaf8503b2019","a0476b1a7ec53d40","dad2ac027d4f9f24","dd003c121420d45a","5465922c8e3555e3","c25adeeb66986f83","e6f586ce062979fb","2b5e040737ce3d94","c76679b82b664526","19589484518b9c6d","3a961ed184f483d2","f2395f53893d1689","b797275a94ef83a0","ac8656880e79c64f","a36cc06f8dcbf00f","57bf8eefe70206c0","efb33694649f8cca","c09962536325e13b","0164b91ce85885f1","1fb10d380183f0fb","c761b34cfb83bf7b","3df91d363faee835","8e10979a9d4df3e5","f7b8f0b4a2f0c6c9","9817cea0e8546fbb","14bfb846eebf04b4","b31845e35ff96b51","29b883f9654391c8","1efacea0cfc080e2","414cdce0186b98d1","e9594aa2f7507ac5","4c2fd374879bcc62","1f31199c6478bed6","5a56612ef35c5fd3","3110fe9246e63b1e","63149b5b57a97c5b","a8dc4fab59fdefb4","f67a857ae75d906f","a762a7a552cb9f03","17a8ab0a21c7790b","a3c29b70c82234cc","72988ccecf802b11","b9a706d9e4980c1e","c7f0e1480df909e9","6c3162f93343ce7e","93fb3d4a50d16da0","bc29c56f900c8d36","3e71b89d61df9fd3","6386e9a459469b53","e9bd98a0b6e0d58c","20b116b788ef3f27","3711bd3352570a6c","bbf7bb18989048e1","9ea365cc69a1f2bf","cf7f82b8517f3250","0bdefb56ee5ef918","fedaeb34f9bc97e4","f8998acf5aadbdb9","fa7ddb9a4e76d4f4","74e688fe3aca2cf8","ce95f1d44dfe8e41","3ac47f7c0d888114","869c12168d4f1eff","846c648ed9c9e2f4","f29264eda4a17c64","669888077b4dd178","f65dfdda10900ffc","b0150193e3cce710","543a74289e049295","213d292b79e5fbcc","d0f7ea2cfc4571a3","9cd020968fe2a19d","2cdbc171bc86cb06","f36ad9add0dea84a","4cb9d5d99960728b","afbdaa08d5344ac6","d9548e9b1a2e6f36","874075d44d19869a","266f4436dc45ce89","3be00f677c6457bd","4937527cddd45b61","bd21a8b1786d3ed2","234feecbe12db6fa","a23c2aa7e24eb8f7","b5e2408a7d09537d","1e687cd4c0cc0ece","24eae452ebf32be6","cf382d5398b6de43","0bf16a20b9656c59","fee31a77e542b203","b40a3b0d2d310907","518b634fa908a4aa","ae4487a0bf7f922f","3ab6bcaac666ddc4","c706245ab487b7e2","d1b208e623179a25","dd7ef46856df793e","f12560e95cd346d2","6fe378cbf407ee45","9e18b65b8d6e5bc3","91157899ceb2151b","19bd3df3be006a24","dbf491fd689e7cd2","ccc78d495cbd8f7d","e57e9c900c787424","8206912d2f9bab36","0af18fd6cc155518","c311204f22191fa2","868902cdeaa428fe","467ec12f292b2573","6c4b12585b58300e","7e9cff1699c061ec","81842bf5581a2a3f","93075511ad056e6d","e653f3ec3dc88a8f","6f1f772c23d57e24","c3cbb2a2dd06d1bb","86745759c5123379","72f51982c4844cb9","4014b042aee9da95","3c8f18d59bc57893","0c4ddf3cde7a1e48","aadbfea0ba5c45ac","22dd0707e6d3a364","51fc92ba27d12eaa","cdd708cca8782382","8b2a4e4f622431e7","d6ba6007b1901314","ef0a4a5a649e056f","0bd651126b27aac6","442ad702808e3c66","fcf92ce9c73cd90d","d464a60fe4e4c421","36396f5285df476c","0e53487482752cfe","2d75e4809d2a6fbf","018c8ded1126b49a","88a7ce8d8fd7e72b","d96c0844834ca9d7","103382107d295424","5585a336703abb4e","b0bbfaa0e2f5be4a","dc35508e5890fb69","75b9549ee42d3246","90601eed5215748f","611358544679e8cf","e408b55d1dc6870d","241fa70e798648e8","a207a0d51c2ff7a8","8e909fed7a35e981","403aaeef14cd4c8f","75a98516fdcdf832","69041daa92bc0a8b","9262e99e20e0e654","d318afa2a81e4ff9","b2ccb6a2a248015d","9c89a41128573752","89d2eebcaafb5013","e93e8daa30075ae6","f61f5fe80ddf6ff1","637b84024e725f38","282bb73eb4892ab9","a2d25db2ace537ae","a4e3db9cc35fc9eb","7d45ca7ad7f363fe","70ae9d85820c14fb","6140ca98749acd85","bb1e8e34559c5a7f","83e8a9fa324dd4b9","51b002c497ad57cd","0b32686fe74c253f","5e3cb9bb3266089b","06581753b7673f83","14a0a0839924964f","411b13dfb3e989f0","4908c2284e498338","5891781e4a61525a","aa275d99ba85bee2","d34f38f155583ff7","5460a158225a328b","24058eec92534b27","1ceced58d0c32e85","ac4653be6ea01477","30220f4fe07e35a4","ba77500cd9f7f6da","b08802b0dbd9a58b","8f4503a19f2f639e","561aaceffe076a5d","0ff47b07b863d0ae","e6d11d0438e20b80","80459ca7317cce90","3e1b4213132404be","546f190f3ec0c90d","7f1a03ba2d4eb5d1","c3d88e1872a9789b","d85fe6335a6eae7b","d02f1b2f2c3a2a30","28b6c3fdb407e73b","7f76434616f622dc","eed8990163b1ca81","840c05ce502e7fdd","f02b4584af0d800c","1b98c37b3b7502e4","33f7a250a7341c43","ca442e58e65b32f8","c367834c9cccbe38","412878f8c488a0f4","7fa17301839c0fa6","764da2d0527c1ef6","d4146047c079ac62","074a67bf0fcf09ad","287d719de575c01f","004bb30c27c94fb4","867a71b7dae9c844","722c773f6314dd40","caa3c5097468f133","d8b85eb94b57b81f","4db395b3e8fa404f","4cfd419f66b58eda","d07502e0620ed3d9","da4da5b15f106b4a","6d6bcbb7ce10198f","9518f42686aaf99c","af3082ef59725979","3eda424ef17379e9","81b03b89f507e5ce","a6b8c9c223ea5942","82908fcfdf7f599a","62dd3e8d6c87a0f9","92d0d0a5798c06cf","247945a0f503ac90","341bc94dee8e9f96","1d8f71c67df6cec9","3738b065c50a0cac","ebdbee7baef678a6","3eb59215b6fb19e2","1052950934d566bf","a411175648a9f14e","55db3023ac9ae3c1","d4252f4120129d32","e60cbfea876d91e7","11a6de1c96795b4d","be2acafce4c2c74d","c8d1b777a117ee56","85c0a8032c692a9a","c73c3b488741b764","7a6db5a28141b284","a7e18f888c96ad05","5d53068f8b9e6936","b0b2d9829230be99","a34aeb4c51bcf655","fa2acb5ac9bb8c8c","3423fd727184042c","ca7f0d58c55a1358","b491f7eb02575108","c16f1ae420f44fb5","08f26275ef69e598","3398dde44269eb08","6c324b24ca028984","ac5c011465193c4e","57bd505da426547c","7b89e1d6b81feb1d","529f7e707934e514","fb76731a2064ad65","0c032c944567a64d","a3594a90f69fe537","5d0abf7735e4d38c","a39cfa7867f1affb","f0991abcca9403bc","de0c34e8104574b0","a4f8287c851b1796","03eacf7a446d906c","014d8a5287538444","735774bdb56f6be4","be945e0c2c2208b0","ed6bcbd32e72afe1","24a3e98a92c0d57d","19a5c46ec6c71456","0f1e413815ecc824","d40db95f9a154c3a","630dfeb0e033a476","56d93c268a656fc4","2cc2cdcf0b1f710e","b961d989c357e6d6","af148bf44b019b35","0a4c943dc3a06f0d","e12bb3f8258f4439","a19b9fbac3e9f89c","0aca727fc835e615","afd6a49ad55de215","432e8063fae7039e","dfb4b5350a9383c9","9d4a1f539c9bf58c","43c695b9490f5104","44308739c0f759ad","be0beee97ed2d572","5205205461f48680","2356f963725e84c6","d3064571c2fde064","ede79ed6b82aa804","b1e2b474e4c77892","faeff76a4321bee2","4163673982458b27","4280a1f889505f0c","27e3bd6cada7b554","7c75b6b921f30409","a98fde87c6b47e6e","61b310386916497a","b43439c6ab36fbfc","e287e4f4d7f3a174","ec2704a8e18114ea","14a5f0183ce7ec8d","5c4a3b8ce0220dd9","58359ad51f36d68e","c5465d5f64db4b45","1cbff7f3a7317c5b","4176c5d5bc97709c","1102208726a88a10","b425ab40ef97a294","592483f2183c6711","c5dc4f8c357a596f","074313bb4e48de6f","a441e9df790a0c3c","285c9ffa2f524440","234620fe148e1dca","5a49d1f4b12618a7","e4e85a27e4775ac9","e6a4e861a99b196c","12f02c43a82b46f9","68ad3074767eb2c3","56d131373d4e2f78","3a4c72588bb27ab4","357c6d106dec5efd","8bbf418d277b4df7","e2ef5706b35de7b0","c15d0c66ed5af79f","4264ed01f3943e2f","031a6afd8300356a","206c1fb4a48067df","d7f0ba2534f27b82","ca80e5fe27609a11","6466ac9bacd083e2","4689a4035be0c82e","895db12fd6d94a67","82229e46e51f94f5","fc88fb69cac1e5a5","0d78bebcc5541e02","3c3fe996c199516b","c785aed10e83430a","9f055c7cccb634c1","b90652e7f7d28f66","ae5e8ae05adac7fd","0831bd7e7daa4915","dd79805b7971cbbb","582f8e6b17a9d9d1","6473c46ecd9304c7","3743db17cb401840","1e908b6060a584ea","eca0e6f3657f0564","7cd303d0aadd1433","a974cddec777bd94","8fdb5986494986cc","baaac9a301ef150a","85ea82a3282907b1","19dc49123e66ac71","1eea209368626bc1","149401230ed2ed4c","2ba23548e87b0292","3cd44612df58e32f","8413c966166387ab","92f76d0a8a4f1178","ee66fb38bde2fdf4","cd2ac560f85327a9","94c79b8f52f0b6ba","bfa594bf1f876c92","2dedf503efee73c8","e5f9a77af592fc78","35c936be0ce55676","c1d2a5b213c6568a","6d65af0eaae695a3","d3ac50a83c871cc8","fabb645e0d88c91c","e68b067b48b94ca2","acd42b52bd581740","d74bb73a0966b4bd","92dac97dfb662f2d","b0f54ce6c23c6da6","011c5e62deb510bb","4bab6cfef1e2c932","df1059b56622c582","7c98833082d48029","25445f5a9b787a0a","cb09b67a37901112","3e652e3da2c711ec","f7b2d28d9c7d66ae","464bfd100a5740b8","324b4e5e9a9419cc","eebbf361272ea85b","d248a5e5ab11c9d7","d9b8f97fb0897586","d49116054bd5cd56","797eac89000183db","afcaa4289efc76f2","af147f11a3d4d652","577298e83998f6d7","e5ceb5335c3b0d43","ce0256824b38971d","6a5bccc5dc98def6","f54479dc5f66620e","71e189afd8659a2d","b6d241198242a6e5","0e0adba49a29f70f","7662aba4a1cc9dd0","99e1c9e8654a9f81","4f02d67d81a83e86","e7ac1f9f3c8ae78c","ba9d70c1045cb088","6f7e7a5d7ebd031d","d40b223a978b9a1e","5070cadd19aa3954","f9f49c8d382ee23d","bc396dcc308c42ee","73a136cc319902eb","d84b5b147f5fa7a4","6ec40cadb83543dd","b6f0d1b534279a98","0414c3f0d95341ac","91841d3915124c8e","e112327c4a55aa35","c2532fc6bfffd154","31b42964ff3deb4f","4b32e84f6c624568","2e643b1746a93b44","c213314798c4a9be","bd6f2717b2f30241","825837a029db8ec5","45647475dad51f30","ef13c93a34fcab87","b75da43db9ea9e7e","a72b20551a3b1f8c","0385dd3208b83d41","2467c6c0b11061b2","20617e4a877c8fc3","73d23bc533cf4217","2623529da72f4fab","2e0a9a817ddbf587","e37a5575a3f29d39","76d1c023d5b35ff4","c7a019355872d175","2ca73eb7becd74fa","67b1906b253417ba","c818166ce482c9ea","ddd39f991efd9d31","05c9b85a23efbccc","fd82a7784afa6f4a","ef90ce5768d66b55","95a6c692d6ecaad8","caa4b983330ad4e6","6082f1de36935071","cfb9a97db2d82096","3b472a6e4d9e2543","4001a1d34ab2ef95","32eced70dca88722","f4db36e02df945e3","c0f921b709110e17","c4cf4dd2f0bcbec8","acbe74d8b6fde42c","e7aa2f657391f94a","98e7ea281617b342","813c2880aaaad0c7","934cfb1692390b27","6ddb281f50d850d9","5089fe68c49d4d99","fe7aea286ecc9d35","4dbef5cc267442d3","c170fd80b6a5f6f2","bef84cb5efd8c2ca","49927aaaafcc60ec","928c3fc0fa3c5d18","cc102f3a82a49a8e","e8e85fb225317e53","af339e4a7646bf50","110233fb067271ea","c62663d1c462b0e5","c2b96b7cbbd08748","80574552b8ba0d39","13fd23967c40a92e","2d639fb6848e28d7","2b830fa657ca6d98","1efc470e05455106","aa96d5f77fcf68e5","4507643d8c985d72","e02edcf844fea90c","ee411219c4f7a44b","29d4eb12e680548a","2056847a88301b2a","c421ec88d5d06d7d","fc6bb2e0b3eb77b2","618d9c3f33eefa02","e68d7c0f7721c679","12b1109de2f09cfc","a064a6c08fd2f40e","6b4bc7764df41753","6c18cec9a1d74489","02373ad0b61f2a49","719eb321350dc033","0845a36d7c0aef49","333d8ba06abef807","276eb14e1448224d","57308f5a0cd3a19c","1193f5bfb9ed605e","0649e79192cac511","d927741265d14171","d5d8c4715ec0a26e","2e5308d0d41d8f45","f0b254fe1c4498b4","71a537d09616f957","35482cea99bb8930","85c266f81afb8149","b1e3b8733a9b07d9","dfefeb84f19b0cdd","fb3656f3f703f806","9f8ed7d17fa2563e","b7220c5a5cc8839a","82a875cf6cbcd593","a78013f03326b7de","27363d8813e65608","a0ce1bcf4f05582e","55370ee6ac50747e","56b664a04bf746c4","25831aff94551d94","3df11a07928c3384","166a810ac9fa6788","4ebc8d54a2d607e3","3a386aa44264e024","5a20016530ef7456","f0b35e8721d6f54d","80cea71f7ecda2ce","8c963cf6be9b3705","224f8c1a9118c6b3","5bea31636c590d4d","8c512f9aad968692","1f0ebd92466c4bf2","32a9b240b25a2502","11f433c750eb1ef0","6d85ed8e8c797a61","882064c17728eabc","df0e4ab2e1efc286","11cf10d72d2c9472","636ca4080756bce2","03b03906a1eca939","3647ba89ea3a089c","3c7edb67cf24ba2a","34adf50fcd75d48d","f0bd4b1ffe5da318","5c64177e3bbfd337","4f0f1c286cdfedcd","6a52e89b65262e56","a08a5b5fbf04f8d4","4aab252764e96897","2b5ebe5c93914bd9","ece815da9a3e1dab","f2fcc76292e4e686","11cf1061a2c539a1","884976027c7e86a2","6fad4103dfdc045f","52e9e7f197ba916f","7a0cd3a41aafad17","75b5d1f31a8fa165","c13917bf46188642","4f450cad246d50cf","51c7f61e5f0e55fb","cfeaa3a9e12b40eb","2b98ac8845853557","1b79850c96d3d208","014df3b24c891646","d67d4a70e837c744","b809a2344b2a162c","b5123d0e6886505f","2311d66d2d2f1a5a","d2ded0d940485aa7","80b02c9d206eb796","e50f34cde29f1023","502bf87b213069c7","4e6ed9498ff4530e","12cadcc5d1bee95b","b54dd8d3915e207f","06abf52a6249bd22","93d2b581d45d7631","cd96635eddc7da1f","4fc3e55ddfdaa010","529ee15b89c1a59a","559221227a779f47","5473623028666410","61a83a7757b78adc","889157da2139e8ff","503a81673f2d7fb0","a4c6172c4c4737ac","4cdca41467e84399","6335a0ba7e4fd02e","ffdbc6f74f0bd44a","1ff0b0648a927b0f","f0e65595e5827e60","54a377fdde983cc9","f3335edf661bfc8d","82489d3f8ae606cf","c91c042b412afd7f","8a7f5acb317722bc","aa80f7b58c825d6d","cbb6f339addc057f","772937ddeb3e1b72","1b11e45ef3e9f02f","3bc159f186c762cd","0ea437f46160f0e5","e7a80893daf9f5cd","85d6369076d887c9","1164fe72097e884c","0eb756ee244751a4","3a3af17d95ca520a","70c27df7cb0add1d","64754ad76b3561d6","f9fad454dec37bc7","55660ec49f882e13","f1240da189a60ba8","ecda411603ebcccf","f3eb2e8c09f67e89","f305bda7c25657e5","6a726c7db415e700","4658e2323b1a287a","37b31a14146e2a3f","92add418b3868c54","6893398018de38e9","266e831763ed3b77","ed42e96a79df8e09","7b43ab1cda2d8f3f","ff4225d872a9a0d3","623975efd8e9bbcd","be58e8ac1e1b6eb1","1ed6b5ff63020d07","69fda60f897db5fd","d75bdce71118a56f","5f6fd378f40e4c81","0fb59058d3aa9663","0998eafda2346961","a091b2e84a4e89e6","34e6817c2f435667","9ba0a97276e93540","147aa94543fa77cb","1452439e0c937126","15d8d0ba06961e4b","4b342483a51b0f93","d8585174fdd6097c","a35aaf65004eeaac","f61fef9768da8558","5cbb323f0e362aed","3b8629192cde74db","82a9ec30d38dec10","9c5d6532a1c36bc4","804a2d1f3c05de7e","c170b43fcf7a5bc2","e1663eb05a273810","60a8b6c3b2e72ae2","d5cbc2f49e5bcf37","a0b0a47a4719edd4","11886766f827e1fd","9dc49d567806c040","db296997eb05a7e3","de88d060a6e9ab68","4209dce5b520e62e","2cda217228ab8a5f","7c192da441c0e46b","8d1ed0f3a77d2bb9","209e2b300932e1ce","c61e55af251c1588","c1d7285b5e0a4ef9","7f74332e39e8c3b6","ea4ed028bce71805","c22a1d18683ea7c0","8bbf52c2a83e09ea","0a9cb3219b03ca53","de7ea9b615e052e6","37844601d21c6184","e3dc3f877be31d77","6fbdfc1ab44f9754","85f9e2ad24cb8a5a","3099e4a17fd21410","a2b07c98d61de126","d09ad27d05d54698","4c169fc26f833802","a21c6a2db7aeab09","c7d315d762524494","e2c388ba43ec89f0","9eb8cf78caf3141d","313fbd5fc01985a5","b7ffd39578f29c8b","5cb2a229a6fec1aa","1c4fbd9e3d313b43","2aaf95392a970167","e78638ee35b8c069","2cb92368cb319c65","1dd82f8d7e2ccd52","4b2f0c80863bf5e7","91ee9f04019a9999","53f044d01f2d18b2","2df7aa160cbf3a71","db3681610a5d90d9","7869c56dce3123ed","ea0c6cadf1d594c3","285a0091abda1f58","96e92d4bad3792d3","3de9c88ac7ce9a77","6e120320180e5cfd","d237415ac7c1b47b","808426e9258cd024","659f9752db0967bc","9caafb8c1719d275","515b0c184c8a3628","13697bbd73295b46","c6fdc57a80266f04","b7bc73260cea8570","d60c017a8962d3f8","dc37631fe73fce2a","c932311ec07112b5","67e91e753d3708e2","a86e51fee3e3458d","f974a627497b4b7d","809635d5f2efc402","c9291360c0f0b490","f10733a435dc7390","f81152d8df61c845","bc4771242d5d3bd8","135b7546018ecfba","6bf593bd1612dbde","64405bce10cccde1","bf5b9cb6fe9e3550","6e4f87c323cc4659","3325e4593048135a","05787fb2b77146c8","0ad08e9e45d5435d","d81e30fc75183164","4ae579561784bac0","8546ac1e37b1b1fc","1ef3db77515c5330","df67aa8c4eb08c4b","6b5f520afcf9e941","1c6a5f6cf7a4171a","e3ec96cdb6ecec1d","2235915bcd1a9228","df89dd445c170c34","539176543f03340e","528d193f3ad76c04","d259cbfd50910254","4f66f48da30fbb41","5543b63f4f841d35","16e115607aca11e2","573b86bbb0b274cd","6969a430e98620f8","c40a25fa809f3f3f","cad9f0d374763a50","9846cd104deb4095","80713009a92b1fb1","25b8f66cb5486055","25a206dee6cb2d38","10352a4c8044bff8","d1f398881a976c8c","e340056f7c0ff7e6","4f2f651b305df0d8","f8e8e4320c84ad84","b20175d86ac76169","06e4c17b8ac467e1","af3687a9f899e8da","9a0856ef24c6ecb1","905240083e6bd5a2","e57340f8784de737","1d84aac6c8e2a838","eaf239f4e4fd9d20","c84ad49be11b1bd9","78a8877be3e75897","2b15984780ad93da","7e164b153068131f","cdfbaf7f971088a0","c77835080e9f86f2","aaa4d5f3593d6d65","f897b93a09482883","6430485715d1b2a6","8c5505de0a4d3dcd","5b6872ce327b1bf3","82ef8057da8c77aa","6c25a04857d1716e","f2de43c0a6cb7bf1","9a2254b818f75188","86b0a6aba2f70fe6","9bc81eccbc500c73","997f6535a7397b5d","c548f2f0529f2243","b4e36b962e02a910","38fbbacd76a1ebc8","bcd49af0e6417d46","7a20b1c05a7278f5","96d8b83164d22086","2a688b0630f5cca4","60a457c83fc5f610","b52eeb9d79637d39","7e386532c9061f5e","778b0602db797687","876d9a75aa665dc1","9a7fb4052f4efa9d","7472a7716d5e79fb","7a340e512e7cec9a","6ed80a0ca731e211","3c6f3e3cd994cec9","18fc113bdb7e4440","d997a0effd6d0126","8a93715d93e96ec9","ab2015a7036a8a2d","d5fc9c7840e287c6","4d9eef91906c3f6b","5ac5e9a27184058b","71d2809882564006","b497d6eeef074cdf","a97c1309cdf39d94","c34352d41e16989c","4638c42f2e097580","bcab76bcab7be22c","2aaa6917be59ea44","c2bbb4adbb91e2eb","2c63586ece8ae18a","543a55099b4d2327","1cde90641d601c65","5f80823cb39801f0","7162b7919ee04e41","b8a1f342f4e14446","33c0603ad410d85c","606f3caa9058900f","4e6003732b266fe2","68c4344a4704c54f","4ba5de5239f9fc87","1c06cdf0f784558b","116de42631d4b17a","f138e16b633d9429","2690f4e06626ebda","177aee50c214945c","ca620b08c9922bd0","8d6827df412a4059","b6c03b0d5a9952c9","9a20f95447f8ddfd","d4f555ae99a41fee","48ee82efe7b41570","290e5853a51cb170","e15462f85288d3c0","66835e34ae95f3f0","9ee5e12567650c9d","3b74b2448cdb18a9","b2e5e7af716d4ec6","aa39991b7847c574","1dd86a8b8b446749","3ec4a86ec9ec37f6","ef424db05e8a1103","1c55a9cf641c38ba","4ed33d50e1b4ebc9","656d1866a8ae8cf8","9e4bfee0db3051d4","74172837e07ab80d","1be6ca3c2b8615a2","06976c9133796ab8","3d2ea19ae9c4b9d2","9043871af737eb1a","b6323e1460f6f50c","b375ca01bb8f1e43","dc4343f890e4a3e1","57e1a96c1bf54302","cd4ebdd2c6d86368","eed5df5df9eb8030","d210ac6cc3e866c0","ef0d3b8996ec469c","fb0afb89fb191395","e32bfa4021bdd7a5","8a4cad272a925665","d1f40d903ba49ae7","c32288ec6571a37f","32eb12f106b8c786","9a7347381e1e503b","cb99733f4cbf651a","d16064888745aca6","4f797f5a02d9c87b","14633267d792195b","0883ad76e9a7a5db","a475141eb65765c3","d90ff6b37443ec5f","8e9b1543c286b201","6d6ed9fb73d6e770","d8cbcb0859722902","0dac7d543eb0f2f6","4587eb595b780266","1f088dee7d4ae695","43c18e1bfd41d830","acc79920bf40652d","0e2bb377d8a36c19","c726ae1ce799b0e5","5efcbb548a75c53a","6bb288d4243c8284","614269acaeaa7867","627ed76685724eb3","f87443fe4174e06e","ab6d3d1be0d9ea74","be031b830d435b36","b0f5b19866b880c9","14d401bc50aa536b","9188974904e49bd8","35ccd1812072ccad","c3473ac9ec464425","16de923274d0e608","b5e38130b6f4407c","b061fecd100938a0","a5bcb16d923c6f77","5d277429bd835728","942e30b09b200628","5d9abb5beb266ad0","b9abd7ec5b21a355","6c30e4c5efef2336","04c4726b012f7cde","b8039538d3ab41e7","a5b6191ffdceb78b","9e040dfa6ba0238f","8883fe1a066abc69","8632c99c540f117b","8e4e7eeb105a289a","426522c68084a014","da2f54e055f1d1ac","804c8129107645c1","ca7b372f821ad44a","551c4937df0e862d","49e203b7c8c18169","aaee376ab741c976","11010cbbc6f9b2c8","e281bad48bd293b1","4dab258c1a09367d","35c1bab44d004988","de7d9964bf29e382","d41e4cebce2bca43","97dc196e81b7409d","0c700c804ad43278","0fd97492731debd9","ba0d99bb4b415430","6623e31afbcb8143","7639c6337690230d","928da51d7458e5c8","b517f0ddca2c408f","9115d56d55c93df5","349f3c40d1c1b12e","021f86a9f6ab04ae","34e6ce73275a532e","bf9261f8ae1151d3","24516baa1174ca38","ae364154f775506a","003aaac69cd1095e","04863aeaaaed38cf","ca06a9cb7106d9e8","97e27495865247db","587bde08ed6671de","c40ffe49c0a0ff99","8ff81811fc69c047","e7fce90947d78bb6","7162e871274ba773","9c410754eeed38a4","1d6431834655bebd","17ccab488210a553","0eaec60a9f3079c3","e5711a71b3892db1","f7f098848fd8f773","5230d94fd1a50ee4","832cdc9413fa68e9","346449e7aa3acf06","bc5b2e9697867707","b1c1797c1d7105fc","d192a18518dbaddb","66fc117529d78f16","edeeccf645772a19","76299bb5b2511493","337719979ff14b9d","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","c2f4ed65313c79e3","e6ea054f0c263d05","ea0a6bf7471569b8","7f27c671b36b7f0d","105c061631062fa1","a3dd1fa555510840","4746f7254a82e9bc","836e500a2c7822c7","dfaedc0968b10c81","593c443b02b44445","a5ba2de38ffe6ea3","62056c26d5ec8e87","705b7aecc5fbd42d","bbbe0888e1da93c3","f2e7804129259d9e","5ba738211e0c4eac","b4dcaf3216134966","ff1a30fbddcaa9fd","38177fb0e91fdd3e","d4a3fdcacd1fd1b5","490e37ccfca71dba","f4bd51a249bc40ab","8f3269222142f0f4","30972c85a28530dc","0ed67256bb147e2b","824a1416d7a3cfe1","b2547f7ff4878848","dff88b670b073ad9","ef2234fa4551184f","66b91b737f90ea46","b5f125bb007480a0","3839ed033b24f53f","043c5221abd8d856","77c59c4ebafe42bf","77736ba628ab516c","dfeb8a18db2eaef3","673139e4d39c82c4","38b4444508aa953e","3aa89a8bd365e23f","b17e3350f9ba81ad","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","3cc31621bae4b8f4","fad6ea5928c43d20","c44490a40f109a5c","14f915e43eee9cb9","3373b870924b043e","e26532940aaa52c6","b4802ba3090bfb72","da6f3da669e024d3","4f2f73098fe566cb","a7721a73d1926ce0","b5be1daf52eae0ec","8009a084ca3785ef","f53cc6991fe5640c","c0a84f51998336e3","da26fce301e2b672","28451c24664fea72","16111c5661efcc71","b1aec9ed9eb8059e","abbb527592df8f13","4d3db92ea8a04423","e83b088826de7bae","42207b73be13eb88","3631362524ac76c2","3093560fba474989","699d2f8babf2c777","32f83da1742957b9","1b94e49c6892430e","486b70cea417c936","35d6c8c0ecd67d15","cefb48c3c6af8823","f508a3f31bab139f","77a6b5d427afc6c4","06143f7b0cf08d31","9a98ec99a05b6bd2","4bb0b7fdcfbac2ec","dc928aa9dc8584f9","ce836243f955dacc","0fd0eeb840396afe","4fc76f6c3f766c17","e5ffb0daf3640ce6","dfc1b5a5332179d3","3e79ac3541f286cc","5597c735c47c9f96","8e19b120dae4551b","1ce50655a8c2c3fa","5ea98e4de1007f8a","544325135170880d","cc09d013af2551be","5091c04ccb0ab761","cf471b8980158bc0","444b573a678eae86","5e20f1a216d065db","cd757066177ff887","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","54bfe450e2c0b4c4","03dfda7ced4cff37","ce1d069be85a0c57","0a813fe1a03dd9d2","c9db5272d112461d","fa6ddb12553bf2a6","0e504e3987b7b54d","a45686b8b8fb6208","ec3963cba00585e6","a97dae7ab39393ae","a70dd192770618ae","8b9e4f8c047317ef","8ef54afe5d6ae844","254e14629bc80024","d494bd28da0b3b4f","35870d5de45b5eca","2d1d8fa5d5acbce3","cc0d79a6d7d33ed8","a33484931cee65b0","4e15731a3c1a1e30","89feb0a79db2f26b","231b620ca0da576d","5e4d2999a1291797","75d8c07c0bbd922c","cc7d25ff439bf79d","2c7b8f31c26a0e08","4770c01b4d63433a","5a6eb0e1ac869f15","e25877a06b36a847","68823f1adeca7d61","4bec446170e0294c","065cece9562e787b","0c2ac00fd2259ffd","0e565e95e63c3654","6c9ecc5fe46a02a5","1c80c2edc1e21840","68a233d0b60bf782","8c2ef16fb2ddd993","1ceb6708c71a814b","aa2c3406c988ef4b","b0da73a9ef6b358d","8820bdb5b422a686","90eddf07569aadc0","5b6c97eb42f7b833","417badba7b8593d3","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","2302782a6ca41102","a69d70a155c21ef3"] diff --git a/flows/K.Routine.json b/flows/K.Routine.json index 5d59e38..cb716fb 100644 --- a/flows/K.Routine.json +++ b/flows/K.Routine.json @@ -8,23 +8,20 @@ "env": [] }, { - "id": "a0496edd95de60f3", + "id": "ae92592138b2c924", "type": "group", "z": "bcb4426f5301b9f2", - "name": "routine - catch", + "name": "routine - cleanup", "style": { - "fill": "#ff0000", - "fill-opacity": "0.05", "label": true }, "nodes": [ - "2623529da72f4fab", - "73d23bc533cf4217" + "29b883f9654391c8" ], - "x": 534, - "y": 19, - "w": 432, - "h": 82 + "x": 68, + "y": 1253, + "w": 1064, + "h": 434 }, { "id": "eefe7f96cf64784b", @@ -49,146 +46,24 @@ "h": 1034 }, { - "id": "ae92592138b2c924", + "id": "a0496edd95de60f3", "type": "group", "z": "bcb4426f5301b9f2", - "name": "routine - cleanup", + "name": "routine - catch", "style": { + "fill": "#ff0000", + "fill-opacity": "0.05", "label": true }, "nodes": [ - "29b883f9654391c8" + "2623529da72f4fab", + "73d23bc533cf4217" ], - "x": 68, - "y": 1253, - "w": 1064, - "h": 434 - }, - { - "id": "1f31199c6478bed6", - "type": "group", - "z": "bcb4426f5301b9f2", - "g": "eefe7f96cf64784b", - "name": "convert minute from midnight to hour", - "style": { - "fill": "#92d04f", - "fill-opacity": "0.05", - "label": true, - "stroke": "#92d04f" - }, - "nodes": [ - "20617e4a877c8fc3", - "2467c6c0b11061b2", - "0385dd3208b83d41" - ], - "x": 94, - "y": 199, - "w": 402, + "x": 534, + "y": 19, + "w": 432, "h": 82 }, - { - "id": "4c2fd374879bcc62", - "type": "group", - "z": "bcb4426f5301b9f2", - "g": "eefe7f96cf64784b", - "name": "convert payload to boolean", - "style": { - "stroke": "#92d04f", - "fill": "#92d04f", - "fill-opacity": "0.05", - "label": true - }, - "nodes": [ - "a72b20551a3b1f8c", - "b75da43db9ea9e7e", - "ef13c93a34fcab87", - "45647475dad51f30", - "825837a029db8ec5", - "bd6f2717b2f30241" - ], - "x": 94, - "y": 304, - "w": 862, - "h": 157 - }, - { - "id": "e9594aa2f7507ac5", - "type": "group", - "z": "bcb4426f5301b9f2", - "g": "eefe7f96cf64784b", - "name": "convert to number", - "style": { - "stroke": "#92d04f", - "fill": "#92d04f", - "fill-opacity": "0.05", - "label": true - }, - "nodes": [ - "c213314798c4a9be", - "2e643b1746a93b44", - "4b32e84f6c624568", - "31b42964ff3deb4f", - "c2532fc6bfffd154", - "e112327c4a55aa35", - "91841d3915124c8e" - ], - "x": 94, - "y": 499, - "w": 862, - "h": 202 - }, - { - "id": "414cdce0186b98d1", - "type": "group", - "z": "bcb4426f5301b9f2", - "g": "eefe7f96cf64784b", - "name": "convert to percent", - "style": { - "stroke": "#92d04f", - "fill": "#92d04f", - "fill-opacity": "0.05", - "label": true - }, - "nodes": [ - "0414c3f0d95341ac", - "b6f0d1b534279a98", - "6ec40cadb83543dd", - "d84b5b147f5fa7a4", - "73a136cc319902eb", - "bc396dcc308c42ee", - "f9f49c8d382ee23d" - ], - "x": 94, - "y": 739, - "w": 862, - "h": 202 - }, - { - "id": "1efacea0cfc080e2", - "type": "group", - "z": "bcb4426f5301b9f2", - "g": "eefe7f96cf64784b", - "name": "convert to dimmer (0-99)", - "style": { - "stroke": "#92d04f", - "fill": "#92d04f", - "fill-opacity": "0.05", - "label": true - }, - "nodes": [ - "5070cadd19aa3954", - "d40b223a978b9a1e", - "6f7e7a5d7ebd031d", - "ba9d70c1045cb088", - "e7ac1f9f3c8ae78c", - "4f02d67d81a83e86", - "99e1c9e8654a9f81" - ], - "x": 94, - "y": 979, - "w": 862, - "h": 202 - }, { "id": "29b883f9654391c8", "type": "group", @@ -220,27 +95,481 @@ "h": 382 }, { - "id": "2623529da72f4fab", - "type": "catch", + "id": "1efacea0cfc080e2", + "type": "group", "z": "bcb4426f5301b9f2", - "g": "a0496edd95de60f3", - "name": "catch error", - "scope": null, - "uncaught": false, - "x": 620, - "y": 60, + "g": "eefe7f96cf64784b", + "name": "convert to dimmer (0-99)", + "style": { + "stroke": "#92d04f", + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "5070cadd19aa3954", + "d40b223a978b9a1e", + "6f7e7a5d7ebd031d", + "ba9d70c1045cb088", + "e7ac1f9f3c8ae78c", + "4f02d67d81a83e86", + "99e1c9e8654a9f81" + ], + "x": 94, + "y": 979, + "w": 862, + "h": 202 + }, + { + "id": "414cdce0186b98d1", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "eefe7f96cf64784b", + "name": "convert to percent", + "style": { + "stroke": "#92d04f", + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "0414c3f0d95341ac", + "b6f0d1b534279a98", + "6ec40cadb83543dd", + "d84b5b147f5fa7a4", + "73a136cc319902eb", + "bc396dcc308c42ee", + "f9f49c8d382ee23d" + ], + "x": 94, + "y": 739, + "w": 862, + "h": 202 + }, + { + "id": "e9594aa2f7507ac5", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "eefe7f96cf64784b", + "name": "convert to number", + "style": { + "stroke": "#92d04f", + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "c213314798c4a9be", + "2e643b1746a93b44", + "4b32e84f6c624568", + "31b42964ff3deb4f", + "c2532fc6bfffd154", + "e112327c4a55aa35", + "91841d3915124c8e" + ], + "x": 94, + "y": 499, + "w": 862, + "h": 202 + }, + { + "id": "4c2fd374879bcc62", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "eefe7f96cf64784b", + "name": "convert payload to boolean", + "style": { + "stroke": "#92d04f", + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "a72b20551a3b1f8c", + "b75da43db9ea9e7e", + "ef13c93a34fcab87", + "45647475dad51f30", + "825837a029db8ec5", + "bd6f2717b2f30241" + ], + "x": 94, + "y": 304, + "w": 862, + "h": 157 + }, + { + "id": "1f31199c6478bed6", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "eefe7f96cf64784b", + "name": "convert minute from midnight to hour", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true, + "stroke": "#92d04f" + }, + "nodes": [ + "20617e4a877c8fc3", + "2467c6c0b11061b2", + "0385dd3208b83d41" + ], + "x": 94, + "y": 199, + "w": 402, + "h": 82 + }, + { + "id": "86745759c5123379", + "type": "group", + "z": "bcb4426f5301b9f2", + "name": "search", + "style": { + "fill": "#777777", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "72f51982c4844cb9", + "4014b042aee9da95", + "3c8f18d59bc57893", + "0c4ddf3cde7a1e48", + "aadbfea0ba5c45ac" + ], + "x": 68, + "y": 1733, + "w": 2244, + "h": 1574 + }, + { + "id": "72f51982c4844cb9", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "86745759c5123379", + "name": "get search", + "style": { + "stroke": "#92d04f", + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "2e0a9a817ddbf587", + "e37a5575a3f29d39", + "76d1c023d5b35ff4", + "c7a019355872d175", + "2ca73eb7becd74fa", + "67b1906b253417ba", + "c818166ce482c9ea" + ], + "x": 94, + "y": 1759, + "w": 882, + "h": 142 + }, + { + "id": "4014b042aee9da95", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "86745759c5123379", + "name": "search temperature", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.1", + "label": true, + "stroke": "#92d04f" + }, + "nodes": [ + "ddd39f991efd9d31", + "05c9b85a23efbccc", + "fd82a7784afa6f4a", + "ef90ce5768d66b55", + "95a6c692d6ecaad8", + "caa4b983330ad4e6", + "6082f1de36935071", + "cfb9a97db2d82096", + "3b472a6e4d9e2543", + "4001a1d34ab2ef95", + "32eced70dca88722", + "f4db36e02df945e3", + "c0f921b709110e17", + "c4cf4dd2f0bcbec8", + "acbe74d8b6fde42c", + "e7aa2f657391f94a", + "98e7ea281617b342" + ], + "x": 94, + "y": 1939, + "w": 1512, + "h": 502 + }, + { + "id": "3c8f18d59bc57893", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "86745759c5123379", + "name": "search humidity", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.1", + "label": true, + "stroke": "#92d04f" + }, + "nodes": [ + "813c2880aaaad0c7", + "934cfb1692390b27", + "6ddb281f50d850d9", + "5089fe68c49d4d99", + "fe7aea286ecc9d35", + "4dbef5cc267442d3", + "c170fd80b6a5f6f2", + "bef84cb5efd8c2ca", + "49927aaaafcc60ec", + "928c3fc0fa3c5d18", + "cc102f3a82a49a8e", + "e8e85fb225317e53", + "af339e4a7646bf50" + ], + "x": 94, + "y": 2479, + "w": 1492, + "h": 262 + }, + { + "id": "0c4ddf3cde7a1e48", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "86745759c5123379", + "name": "search luminosity", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.1", + "label": true, + "stroke": "#92d04f" + }, + "nodes": [ + "110233fb067271ea", + "c62663d1c462b0e5", + "c2b96b7cbbd08748", + "80574552b8ba0d39", + "13fd23967c40a92e", + "2d639fb6848e28d7", + "2b830fa657ca6d98", + "1efc470e05455106", + "aa96d5f77fcf68e5", + "4507643d8c985d72", + "e02edcf844fea90c", + "ee411219c4f7a44b", + "29d4eb12e680548a" + ], + "x": 94, + "y": 2779, + "w": 1512, + "h": 262 + }, + { + "id": "aadbfea0ba5c45ac", + "type": "group", + "z": "bcb4426f5301b9f2", + "g": "86745759c5123379", + "name": "search motion", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.1", + "label": true, + "stroke": "#92d04f" + }, + "nodes": [ + "2056847a88301b2a", + "c421ec88d5d06d7d", + "fc6bb2e0b3eb77b2", + "618d9c3f33eefa02", + "e68d7c0f7721c679", + "12b1109de2f09cfc", + "a064a6c08fd2f40e", + "6b4bc7764df41753", + "6c18cec9a1d74489", + "02373ad0b61f2a49", + "719eb321350dc033", + "0845a36d7c0aef49", + "333d8ba06abef807", + "276eb14e1448224d" + ], + "x": 94, + "y": 3079, + "w": 2192, + "h": 202 + }, + { + "id": "afcaa4289efc76f2", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "29b883f9654391c8", + "name": "range", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "btwn", + "v": "-50", + "vt": "num", + "v2": "50", + "v2t": "num" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 690, + "y": 1560, "wires": [ [ - "73d23bc533cf4217" + "b6d241198242a6e5" + ], + [ + "6a5bccc5dc98def6" ] ] }, { - "id": "73d23bc533cf4217", + "id": "af147f11a3d4d652", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "29b883f9654391c8", + "name": "round", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$round(msg.payload,1)", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 530, + "y": 1380, + "wires": [ + [ + "577298e83998f6d7" + ] + ] + }, + { + "id": "577298e83998f6d7", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "29b883f9654391c8", + "name": "range", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "btwn", + "v": "0", + "vt": "num", + "v2": "99", + "v2t": "num" + }, + { + "t": "else" + } + ], + "checkall": "true", + "repair": false, + "outputs": 2, + "x": 690, + "y": 1380, + "wires": [ + [ + "b6d241198242a6e5" + ], + [ + "6a5bccc5dc98def6" + ] + ] + }, + { + "id": "e5ceb5335c3b0d43", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "29b883f9654391c8", + "name": "range", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "btwn", + "v": "-20000", + "vt": "num", + "v2": "20000", + "v2t": "num" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 690, + "y": 1500, + "wires": [ + [ + "b6d241198242a6e5" + ], + [ + "6a5bccc5dc98def6" + ] + ] + }, + { + "id": "ce0256824b38971d", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "29b883f9654391c8", + "name": "range", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "btwn", + "v": "0", + "vt": "num", + "v2": "20000", + "v2t": "num" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 690, + "y": 1440, + "wires": [ + [ + "b6d241198242a6e5" + ], + [ + "6a5bccc5dc98def6" + ] + ] + }, + { + "id": "6a5bccc5dc98def6", "type": "debug", "z": "bcb4426f5301b9f2", - "g": "a0496edd95de60f3", - "name": "routine - catch error", + "g": "29b883f9654391c8", + "name": "cleanup measurement - invalid", "active": true, "tosidebar": true, "console": false, @@ -249,270 +578,56 @@ "targetType": "full", "statusVal": "", "statusType": "auto", - "x": 830, - "y": 60, + "x": 930, + "y": 1320, "wires": [] }, { - "id": "20617e4a877c8fc3", - "type": "link in", - "z": "bcb4426f5301b9f2", - "g": "1f31199c6478bed6", - "name": "minute to HH:mm", - "links": [], - "x": 135, - "y": 240, - "wires": [ - [ - "0385dd3208b83d41" - ] - ] - }, - { - "id": "2467c6c0b11061b2", - "type": "link out", - "z": "bcb4426f5301b9f2", - "g": "1f31199c6478bed6", - "name": "minute to HH:mm", - "mode": "return", - "links": [], - "x": 455, - "y": 240, - "wires": [] - }, - { - "id": "0385dd3208b83d41", - "type": "function", - "z": "bcb4426f5301b9f2", - "g": "1f31199c6478bed6", - "name": "minute to HH:mm", - "func": "var d = Number(msg.payload);\nvar h = Math.floor(d / 60);\nvar m = Math.floor(d % 60);\nif (h < 10) { h = h < 5 ? '00' : '0' + h; }\nif (m < 10) { m = m < 5 ? '00' : '0' + m; }\nmsg.payload = h + ':' + m;\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 290, - "y": 240, - "wires": [ - [ - "2467c6c0b11061b2" - ] - ] - }, - { - "id": "a72b20551a3b1f8c", - "type": "link in", - "z": "bcb4426f5301b9f2", - "g": "4c2fd374879bcc62", - "name": "convert to boolean", - "links": [], - "x": 135, - "y": 360, - "wires": [ - [ - "b75da43db9ea9e7e" - ] - ] - }, - { - "id": "b75da43db9ea9e7e", - "type": "json", - "z": "bcb4426f5301b9f2", - "g": "4c2fd374879bcc62", - "name": "convert payload to json", - "property": "payload", - "action": "obj", - "pretty": false, - "x": 310, - "y": 360, - "wires": [ - [ - "ef13c93a34fcab87" - ] - ] - }, - { - "id": "ef13c93a34fcab87", + "id": "f54479dc5f66620e", "type": "switch", "z": "bcb4426f5301b9f2", - "g": "4c2fd374879bcc62", - "name": "format to boolean", + "g": "29b883f9654391c8", + "name": "range", "property": "payload", "propertyType": "msg", "rules": [ { - "t": "lte", - "v": "0", - "vt": "num" + "t": "btwn", + "v": "-20", + "vt": "num", + "v2": "50", + "v2t": "num" }, { - "t": "gt", - "v": "0", - "vt": "num" - }, - { - "t": "false" - }, - { - "t": "true" + "t": "else" } ], - "checkall": "false", + "checkall": "true", "repair": false, - "outputs": 4, - "x": 590, - "y": 360, + "outputs": 2, + "x": 690, + "y": 1320, "wires": [ [ - "45647475dad51f30" + "b6d241198242a6e5" ], [ - "825837a029db8ec5" - ], - [ - "45647475dad51f30" - ], - [ - "825837a029db8ec5" + "6a5bccc5dc98def6" ] ] }, { - "id": "45647475dad51f30", + "id": "71e189afd8659a2d", "type": "change", "z": "bcb4426f5301b9f2", - "g": "4c2fd374879bcc62", - "name": "false", + "g": "29b883f9654391c8", + "name": "round", "rules": [ { "t": "set", "p": "payload", "pt": "msg", - "to": "false", - "tot": "bool" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 360, - "wires": [ - [ - "bd6f2717b2f30241" - ] - ] - }, - { - "id": "825837a029db8ec5", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "4c2fd374879bcc62", - "name": "true", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "true", - "tot": "bool" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 420, - "wires": [ - [ - "bd6f2717b2f30241" - ] - ] - }, - { - "id": "bd6f2717b2f30241", - "type": "link out", - "z": "bcb4426f5301b9f2", - "g": "4c2fd374879bcc62", - "name": "convert to boolean", - "mode": "return", - "links": [], - "x": 915, - "y": 420, - "wires": [] - }, - { - "id": "c213314798c4a9be", - "type": "json", - "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "convert payload to json", - "property": "payload", - "action": "obj", - "pretty": false, - "x": 330, - "y": 600, - "wires": [ - [ - "2e643b1746a93b44" - ] - ] - }, - { - "id": "2e643b1746a93b44", - "type": "switch", - "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "format to number", - "property": "payload", - "propertyType": "msg", - "rules": [ - { - "t": "istype", - "v": "number", - "vt": "number" - }, - { - "t": "true" - }, - { - "t": "false" - } - ], - "checkall": "false", - "repair": false, - "outputs": 3, - "x": 590, - "y": 600, - "wires": [ - [ - "4b32e84f6c624568" - ], - [ - "31b42964ff3deb4f" - ], - [ - "c2532fc6bfffd154" - ] - ] - }, - { - "id": "4b32e84f6c624568", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "nb", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "$number(msg.payload)", + "to": "$round(msg.payload,1)", "tot": "jsonata" } ], @@ -521,475 +636,25 @@ "from": "", "to": "", "reg": false, - "x": 790, - "y": 540, + "x": 530, + "y": 1320, "wires": [ [ - "91841d3915124c8e" + "f54479dc5f66620e" ] ] }, { - "id": "31b42964ff3deb4f", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "1", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "1", - "tot": "num" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 600, - "wires": [ - [ - "91841d3915124c8e" - ] - ] - }, - { - "id": "c2532fc6bfffd154", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "0", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "0", - "tot": "num" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 660, - "wires": [ - [ - "91841d3915124c8e" - ] - ] - }, - { - "id": "e112327c4a55aa35", - "type": "link in", - "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "convert to number", - "links": [], - "x": 135, - "y": 600, - "wires": [ - [ - "c213314798c4a9be" - ] - ] - }, - { - "id": "91841d3915124c8e", + "id": "b6d241198242a6e5", "type": "link out", "z": "bcb4426f5301b9f2", - "g": "e9594aa2f7507ac5", - "name": "convert to number", - "mode": "return", - "links": [], - "x": 915, - "y": 600, - "wires": [] - }, - { - "id": "0414c3f0d95341ac", - "type": "json", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "convert payload to json", - "property": "payload", - "action": "obj", - "pretty": false, - "x": 330, - "y": 840, - "wires": [ - [ - "b6f0d1b534279a98" - ] - ] - }, - { - "id": "b6f0d1b534279a98", - "type": "switch", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "format to percent", - "property": "payload", - "propertyType": "msg", - "rules": [ - { - "t": "gt", - "v": "100", - "vt": "str" - }, - { - "t": "lt", - "v": "0", - "vt": "num" - }, - { - "t": "istype", - "v": "number", - "vt": "number" - }, - { - "t": "true" - }, - { - "t": "false" - } - ], - "checkall": "false", - "repair": false, - "outputs": 5, - "x": 590, - "y": 840, - "wires": [ - [ - "6ec40cadb83543dd" - ], - [ - "73a136cc319902eb" - ], - [ - "d84b5b147f5fa7a4" - ], - [ - "6ec40cadb83543dd" - ], - [ - "73a136cc319902eb" - ] - ] - }, - { - "id": "6ec40cadb83543dd", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "100", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "100", - "tot": "num" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 780, - "wires": [ - [ - "f9f49c8d382ee23d" - ] - ] - }, - { - "id": "d84b5b147f5fa7a4", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "nb", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "$number(msg.payload)", - "tot": "jsonata" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 840, - "wires": [ - [ - "f9f49c8d382ee23d" - ] - ] - }, - { - "id": "73a136cc319902eb", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "0", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "0", - "tot": "num" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 900, - "wires": [ - [ - "f9f49c8d382ee23d" - ] - ] - }, - { - "id": "bc396dcc308c42ee", - "type": "link in", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "convert to percent", - "links": [], - "x": 135, - "y": 840, - "wires": [ - [ - "0414c3f0d95341ac" - ] - ] - }, - { - "id": "f9f49c8d382ee23d", - "type": "link out", - "z": "bcb4426f5301b9f2", - "g": "414cdce0186b98d1", - "name": "convert to percent", - "mode": "return", - "links": [], - "x": 915, - "y": 840, - "wires": [] - }, - { - "id": "5070cadd19aa3954", - "type": "json", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "convert payload to json", - "property": "payload", - "action": "obj", - "pretty": false, - "x": 330, - "y": 1080, - "wires": [ - [ - "d40b223a978b9a1e" - ] - ] - }, - { - "id": "d40b223a978b9a1e", - "type": "switch", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "format to dimmer", - "property": "payload", - "propertyType": "msg", - "rules": [ - { - "t": "gt", - "v": "99", - "vt": "str" - }, - { - "t": "lt", - "v": "0", - "vt": "num" - }, - { - "t": "istype", - "v": "number", - "vt": "number" - }, - { - "t": "true" - }, - { - "t": "false" - } - ], - "checkall": "false", - "repair": false, - "outputs": 5, - "x": 590, - "y": 1080, - "wires": [ - [ - "6f7e7a5d7ebd031d" - ], - [ - "e7ac1f9f3c8ae78c" - ], - [ - "ba9d70c1045cb088" - ], - [ - "6f7e7a5d7ebd031d" - ], - [ - "e7ac1f9f3c8ae78c" - ] - ] - }, - { - "id": "6f7e7a5d7ebd031d", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "99", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "99", - "tot": "num" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 1020, - "wires": [ - [ - "99e1c9e8654a9f81" - ] - ] - }, - { - "id": "ba9d70c1045cb088", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "nb", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "$number(msg.payload)", - "tot": "jsonata" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 1080, - "wires": [ - [ - "99e1c9e8654a9f81" - ] - ] - }, - { - "id": "e7ac1f9f3c8ae78c", - "type": "change", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "0", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "0", - "tot": "num" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 790, - "y": 1140, - "wires": [ - [ - "99e1c9e8654a9f81" - ] - ] - }, - { - "id": "4f02d67d81a83e86", - "type": "link in", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "convert to dimmer", - "links": [], - "x": 135, - "y": 1080, - "wires": [ - [ - "5070cadd19aa3954" - ] - ] - }, - { - "id": "99e1c9e8654a9f81", - "type": "link out", - "z": "bcb4426f5301b9f2", - "g": "1efacea0cfc080e2", - "name": "convert to dimmer", - "mode": "return", - "links": [], - "x": 915, - "y": 1080, - "wires": [] - }, - { - "id": "7662aba4a1cc9dd0", - "type": "link in", - "z": "bcb4426f5301b9f2", "g": "29b883f9654391c8", "name": "cleanup measurement", + "mode": "return", "links": [], - "x": 135, - "y": 1560, - "wires": [ - [ - "0e0adba49a29f70f" - ] - ] + "x": 815, + "y": 1620, + "wires": [] }, { "id": "0e0adba49a29f70f", @@ -1056,29 +721,87 @@ ] }, { - "id": "b6d241198242a6e5", - "type": "link out", + "id": "7662aba4a1cc9dd0", + "type": "link in", "z": "bcb4426f5301b9f2", "g": "29b883f9654391c8", "name": "cleanup measurement", + "links": [], + "x": 135, + "y": 1560, + "wires": [ + [ + "0e0adba49a29f70f" + ] + ] + }, + { + "id": "99e1c9e8654a9f81", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "1efacea0cfc080e2", + "name": "convert to dimmer", "mode": "return", "links": [], - "x": 815, - "y": 1620, + "x": 915, + "y": 1080, "wires": [] }, { - "id": "71e189afd8659a2d", + "id": "4f02d67d81a83e86", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "1efacea0cfc080e2", + "name": "convert to dimmer", + "links": [], + "x": 135, + "y": 1080, + "wires": [ + [ + "5070cadd19aa3954" + ] + ] + }, + { + "id": "e7ac1f9f3c8ae78c", "type": "change", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "round", + "g": "1efacea0cfc080e2", + "name": "0", "rules": [ { "t": "set", "p": "payload", "pt": "msg", - "to": "$round(msg.payload,1)", + "to": "0", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 1140, + "wires": [ + [ + "99e1c9e8654a9f81" + ] + ] + }, + { + "id": "ba9d70c1045cb088", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "1efacea0cfc080e2", + "name": "nb", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$number(msg.payload)", "tot": "jsonata" } ], @@ -1087,54 +810,660 @@ "from": "", "to": "", "reg": false, - "x": 530, - "y": 1320, + "x": 790, + "y": 1080, "wires": [ [ - "f54479dc5f66620e" + "99e1c9e8654a9f81" ] ] }, { - "id": "f54479dc5f66620e", + "id": "6f7e7a5d7ebd031d", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "1efacea0cfc080e2", + "name": "99", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "99", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 1020, + "wires": [ + [ + "99e1c9e8654a9f81" + ] + ] + }, + { + "id": "d40b223a978b9a1e", "type": "switch", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "range", + "g": "1efacea0cfc080e2", + "name": "format to dimmer", "property": "payload", "propertyType": "msg", "rules": [ { - "t": "btwn", - "v": "-20", - "vt": "num", - "v2": "50", - "v2t": "num" + "t": "gt", + "v": "99", + "vt": "str" }, { - "t": "else" + "t": "lt", + "v": "0", + "vt": "num" + }, + { + "t": "istype", + "v": "number", + "vt": "number" + }, + { + "t": "true" + }, + { + "t": "false" } ], - "checkall": "true", + "checkall": "false", "repair": false, - "outputs": 2, - "x": 690, - "y": 1320, + "outputs": 5, + "x": 590, + "y": 1080, "wires": [ [ - "b6d241198242a6e5" + "6f7e7a5d7ebd031d" ], [ - "6a5bccc5dc98def6" + "e7ac1f9f3c8ae78c" + ], + [ + "ba9d70c1045cb088" + ], + [ + "6f7e7a5d7ebd031d" + ], + [ + "e7ac1f9f3c8ae78c" ] ] }, { - "id": "6a5bccc5dc98def6", + "id": "5070cadd19aa3954", + "type": "json", + "z": "bcb4426f5301b9f2", + "g": "1efacea0cfc080e2", + "name": "convert payload to json", + "property": "payload", + "action": "obj", + "pretty": false, + "x": 330, + "y": 1080, + "wires": [ + [ + "d40b223a978b9a1e" + ] + ] + }, + { + "id": "f9f49c8d382ee23d", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "convert to percent", + "mode": "return", + "links": [], + "x": 915, + "y": 840, + "wires": [] + }, + { + "id": "bc396dcc308c42ee", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "convert to percent", + "links": [], + "x": 135, + "y": 840, + "wires": [ + [ + "0414c3f0d95341ac" + ] + ] + }, + { + "id": "73a136cc319902eb", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "0", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "0", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 900, + "wires": [ + [ + "f9f49c8d382ee23d" + ] + ] + }, + { + "id": "d84b5b147f5fa7a4", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "nb", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$number(msg.payload)", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 840, + "wires": [ + [ + "f9f49c8d382ee23d" + ] + ] + }, + { + "id": "6ec40cadb83543dd", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "100", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "100", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 780, + "wires": [ + [ + "f9f49c8d382ee23d" + ] + ] + }, + { + "id": "b6f0d1b534279a98", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "format to percent", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "gt", + "v": "100", + "vt": "str" + }, + { + "t": "lt", + "v": "0", + "vt": "num" + }, + { + "t": "istype", + "v": "number", + "vt": "number" + }, + { + "t": "true" + }, + { + "t": "false" + } + ], + "checkall": "false", + "repair": false, + "outputs": 5, + "x": 590, + "y": 840, + "wires": [ + [ + "6ec40cadb83543dd" + ], + [ + "73a136cc319902eb" + ], + [ + "d84b5b147f5fa7a4" + ], + [ + "6ec40cadb83543dd" + ], + [ + "73a136cc319902eb" + ] + ] + }, + { + "id": "0414c3f0d95341ac", + "type": "json", + "z": "bcb4426f5301b9f2", + "g": "414cdce0186b98d1", + "name": "convert payload to json", + "property": "payload", + "action": "obj", + "pretty": false, + "x": 330, + "y": 840, + "wires": [ + [ + "b6f0d1b534279a98" + ] + ] + }, + { + "id": "91841d3915124c8e", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "convert to number", + "mode": "return", + "links": [], + "x": 915, + "y": 600, + "wires": [] + }, + { + "id": "e112327c4a55aa35", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "convert to number", + "links": [], + "x": 135, + "y": 600, + "wires": [ + [ + "c213314798c4a9be" + ] + ] + }, + { + "id": "c2532fc6bfffd154", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "0", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "0", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 660, + "wires": [ + [ + "91841d3915124c8e" + ] + ] + }, + { + "id": "31b42964ff3deb4f", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "1", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "1", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 600, + "wires": [ + [ + "91841d3915124c8e" + ] + ] + }, + { + "id": "4b32e84f6c624568", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "nb", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$number(msg.payload)", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 540, + "wires": [ + [ + "91841d3915124c8e" + ] + ] + }, + { + "id": "2e643b1746a93b44", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "format to number", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "istype", + "v": "number", + "vt": "number" + }, + { + "t": "true" + }, + { + "t": "false" + } + ], + "checkall": "false", + "repair": false, + "outputs": 3, + "x": 590, + "y": 600, + "wires": [ + [ + "4b32e84f6c624568" + ], + [ + "31b42964ff3deb4f" + ], + [ + "c2532fc6bfffd154" + ] + ] + }, + { + "id": "c213314798c4a9be", + "type": "json", + "z": "bcb4426f5301b9f2", + "g": "e9594aa2f7507ac5", + "name": "convert payload to json", + "property": "payload", + "action": "obj", + "pretty": false, + "x": 330, + "y": 600, + "wires": [ + [ + "2e643b1746a93b44" + ] + ] + }, + { + "id": "bd6f2717b2f30241", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "4c2fd374879bcc62", + "name": "convert to boolean", + "mode": "return", + "links": [], + "x": 915, + "y": 420, + "wires": [] + }, + { + "id": "825837a029db8ec5", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4c2fd374879bcc62", + "name": "true", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 420, + "wires": [ + [ + "bd6f2717b2f30241" + ] + ] + }, + { + "id": "45647475dad51f30", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4c2fd374879bcc62", + "name": "false", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "false", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 790, + "y": 360, + "wires": [ + [ + "bd6f2717b2f30241" + ] + ] + }, + { + "id": "ef13c93a34fcab87", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "4c2fd374879bcc62", + "name": "format to boolean", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "lte", + "v": "0", + "vt": "num" + }, + { + "t": "gt", + "v": "0", + "vt": "num" + }, + { + "t": "false" + }, + { + "t": "true" + } + ], + "checkall": "false", + "repair": false, + "outputs": 4, + "x": 590, + "y": 360, + "wires": [ + [ + "45647475dad51f30" + ], + [ + "825837a029db8ec5" + ], + [ + "45647475dad51f30" + ], + [ + "825837a029db8ec5" + ] + ] + }, + { + "id": "b75da43db9ea9e7e", + "type": "json", + "z": "bcb4426f5301b9f2", + "g": "4c2fd374879bcc62", + "name": "convert payload to json", + "property": "payload", + "action": "obj", + "pretty": false, + "x": 310, + "y": 360, + "wires": [ + [ + "ef13c93a34fcab87" + ] + ] + }, + { + "id": "a72b20551a3b1f8c", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "4c2fd374879bcc62", + "name": "convert to boolean", + "links": [], + "x": 135, + "y": 360, + "wires": [ + [ + "b75da43db9ea9e7e" + ] + ] + }, + { + "id": "0385dd3208b83d41", + "type": "function", + "z": "bcb4426f5301b9f2", + "g": "1f31199c6478bed6", + "name": "minute to HH:mm", + "func": "var d = Number(msg.payload);\nvar h = Math.floor(d / 60);\nvar m = Math.floor(d % 60);\nif (h < 10) { h = h < 5 ? '00' : '0' + h; }\nif (m < 10) { m = m < 5 ? '00' : '0' + m; }\nmsg.payload = h + ':' + m;\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 290, + "y": 240, + "wires": [ + [ + "2467c6c0b11061b2" + ] + ] + }, + { + "id": "2467c6c0b11061b2", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "1f31199c6478bed6", + "name": "minute to HH:mm", + "mode": "return", + "links": [], + "x": 455, + "y": 240, + "wires": [] + }, + { + "id": "20617e4a877c8fc3", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "1f31199c6478bed6", + "name": "minute to HH:mm", + "links": [], + "x": 135, + "y": 240, + "wires": [ + [ + "0385dd3208b83d41" + ] + ] + }, + { + "id": "73d23bc533cf4217", "type": "debug", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "cleanup measurement - invalid", + "g": "a0496edd95de60f3", + "name": "routine - catch error", "active": true, "tosidebar": true, "console": false, @@ -1143,25 +1472,92 @@ "targetType": "full", "statusVal": "", "statusType": "auto", - "x": 930, - "y": 1320, + "x": 830, + "y": 60, "wires": [] }, { - "id": "ce0256824b38971d", + "id": "2623529da72f4fab", + "type": "catch", + "z": "bcb4426f5301b9f2", + "g": "a0496edd95de60f3", + "name": "catch error", + "scope": null, + "uncaught": false, + "x": 620, + "y": 60, + "wires": [ + [ + "73d23bc533cf4217" + ] + ] + }, + { + "id": "2e0a9a817ddbf587", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "72f51982c4844cb9", + "name": "get search", + "links": [], + "x": 135, + "y": 1860, + "wires": [ + [ + "76d1c023d5b35ff4" + ] + ] + }, + { + "id": "e37a5575a3f29d39", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "72f51982c4844cb9", + "name": "get search", + "mode": "return", + "links": [], + "x": 935, + "y": 1860, + "wires": [] + }, + { + "id": "76d1c023d5b35ff4", + "type": "delay", + "z": "bcb4426f5301b9f2", + "g": "72f51982c4844cb9", + "name": "100 ms", + "pauseType": "delay", + "timeout": "100", + "timeoutUnits": "milliseconds", + "rate": "1", + "nbRateUnits": "1", + "rateUnits": "second", + "randomFirst": "1", + "randomLast": "5", + "randomUnits": "seconds", + "drop": false, + "allowrate": false, + "outputs": 1, + "x": 280, + "y": 1860, + "wires": [ + [ + "c7a019355872d175" + ] + ] + }, + { + "id": "c7a019355872d175", "type": "switch", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "range", - "property": "payload", + "g": "72f51982c4844cb9", + "name": "check bucket", + "property": "scene", "propertyType": "msg", "rules": [ { - "t": "btwn", - "v": "0", - "vt": "num", - "v2": "20000", - "v2t": "num" + "t": "hask", + "v": "bucket", + "vt": "str" }, { "t": "else" @@ -1170,32 +1566,30 @@ "checkall": "false", "repair": false, "outputs": 2, - "x": 690, - "y": 1440, + "x": 470, + "y": 1860, "wires": [ [ - "b6d241198242a6e5" + "2ca73eb7becd74fa" ], [ - "6a5bccc5dc98def6" + "c818166ce482c9ea" ] ] }, { - "id": "e5ceb5335c3b0d43", + "id": "2ca73eb7becd74fa", "type": "switch", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "range", - "property": "payload", - "propertyType": "msg", + "g": "72f51982c4844cb9", + "name": "exists", + "property": "metrics[msg.scene.bucket]", + "propertyType": "global", "rules": [ { - "t": "btwn", - "v": "-20000", - "vt": "num", - "v2": "20000", - "v2t": "num" + "t": "hask", + "v": "measurement", + "vt": "msg" }, { "t": "else" @@ -1204,63 +1598,64 @@ "checkall": "false", "repair": false, "outputs": 2, - "x": 690, - "y": 1500, + "x": 650, + "y": 1800, "wires": [ [ - "b6d241198242a6e5" + "67b1906b253417ba" ], [ - "6a5bccc5dc98def6" + "c818166ce482c9ea" ] ] }, { - "id": "577298e83998f6d7", - "type": "switch", - "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "range", - "property": "payload", - "propertyType": "msg", - "rules": [ - { - "t": "btwn", - "v": "0", - "vt": "num", - "v2": "99", - "v2t": "num" - }, - { - "t": "else" - } - ], - "checkall": "true", - "repair": false, - "outputs": 2, - "x": 690, - "y": 1380, - "wires": [ - [ - "b6d241198242a6e5" - ], - [ - "6a5bccc5dc98def6" - ] - ] - }, - { - "id": "af147f11a3d4d652", + "id": "67b1906b253417ba", "type": "change", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "round", + "g": "72f51982c4844cb9", + "name": "rsp 1", "rules": [ { "t": "set", - "p": "payload", + "p": "search", "pt": "msg", - "to": "$round(msg.payload,1)", + "to": "{'response':1}", + "tot": "jsonata" + }, + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "stack[msg.scene.bucket][msg.measurement]", + "tot": "global" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 810, + "y": 1800, + "wires": [ + [ + "e37a5575a3f29d39" + ] + ] + }, + { + "id": "c818166ce482c9ea", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "72f51982c4844cb9", + "name": "rsp -1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':-1}", "tot": "jsonata" } ], @@ -1269,29 +1664,369 @@ "from": "", "to": "", "reg": false, - "x": 530, - "y": 1380, + "x": 810, + "y": 1860, "wires": [ [ - "577298e83998f6d7" + "e37a5575a3f29d39" ] ] }, { - "id": "afcaa4289efc76f2", + "id": "ddd39f991efd9d31", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "search temperature", + "links": [], + "x": 135, + "y": 2400, + "wires": [ + [ + "f4db36e02df945e3" + ] + ] + }, + { + "id": "05c9b85a23efbccc", "type": "switch", "z": "bcb4426f5301b9f2", - "g": "29b883f9654391c8", - "name": "range", - "property": "payload", + "g": "4014b042aee9da95", + "name": "select field", + "property": "measurement", "propertyType": "msg", "rules": [ { - "t": "btwn", - "v": "-50", - "vt": "num", - "v2": "50", - "v2t": "num" + "t": "hask", + "v": "probe", + "vt": "str" + }, + { + "t": "hask", + "v": "sensor", + "vt": "str" + }, + { + "t": "hask", + "v": "air conditioner", + "vt": "str" + }, + { + "t": "hask", + "v": "door", + "vt": "str" + }, + { + "t": "hask", + "v": "detector", + "vt": "str" + }, + { + "t": "hask", + "v": "left bay", + "vt": "str" + }, + { + "t": "hask", + "v": "right bay", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 8, + "x": 910, + "y": 2340, + "wires": [ + [ + "fd82a7784afa6f4a" + ], + [ + "ef90ce5768d66b55" + ], + [ + "98e7ea281617b342" + ], + [ + "95a6c692d6ecaad8" + ], + [ + "4001a1d34ab2ef95" + ], + [ + "c4cf4dd2f0bcbec8" + ], + [ + "acbe74d8b6fde42c" + ], + [ + "6082f1de36935071" + ] + ] + }, + { + "id": "fd82a7784afa6f4a", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "probe", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.probe", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 1980, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "ef90ce5768d66b55", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "sensor", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.sensor", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2040, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "95a6c692d6ecaad8", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "door", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.door", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2160, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "caa4b983330ad4e6", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "search temperature", + "mode": "return", + "links": [], + "x": 1395, + "y": 2400, + "wires": [] + }, + { + "id": "6082f1de36935071", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "rsp -1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':-1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1270, + "y": 2400, + "wires": [ + [ + "3b472a6e4d9e2543", + "caa4b983330ad4e6" + ] + ] + }, + { + "id": "cfb9a97db2d82096", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "rsp 1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1270, + "y": 2340, + "wires": [ + [ + "3b472a6e4d9e2543", + "caa4b983330ad4e6" + ] + ] + }, + { + "id": "3b472a6e4d9e2543", + "type": "debug", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "search temperature", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1470, + "y": 2340, + "wires": [] + }, + { + "id": "4001a1d34ab2ef95", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "detector", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.detector", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1100, + "y": 2220, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "32eced70dca88722", + "type": "link call", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "", + "links": [ + "2e0a9a817ddbf587" + ], + "linkType": "static", + "timeout": "30", + "x": 550, + "y": 2400, + "wires": [ + [ + "c0f921b709110e17" + ] + ] + }, + { + "id": "f4db36e02df945e3", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "check measurement", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "temperature", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 320, + "y": 2400, + "wires": [ + [ + "32eced70dca88722" + ] + ] + }, + { + "id": "c0f921b709110e17", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "rsp", + "property": "search.response", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" }, { "t": "else" @@ -1300,14 +2035,1115 @@ "checkall": "false", "repair": false, "outputs": 2, - "x": 690, - "y": 1560, + "x": 730, + "y": 2400, "wires": [ [ - "b6d241198242a6e5" + "05c9b85a23efbccc" ], [ - "6a5bccc5dc98def6" + "6082f1de36935071" + ] + ] + }, + { + "id": "c4cf4dd2f0bcbec8", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "left bay", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement['left bay']", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1100, + "y": 2280, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "acbe74d8b6fde42c", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "right bay", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement['right bay']", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1100, + "y": 2340, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "e7aa2f657391f94a", + "type": "comment", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "select field by preference order", + "info": "", + "x": 650, + "y": 2340, + "wires": [] + }, + { + "id": "98e7ea281617b342", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "4014b042aee9da95", + "name": "ac", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement['air conditioner']", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2100, + "wires": [ + [ + "cfb9a97db2d82096" + ] + ] + }, + { + "id": "813c2880aaaad0c7", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "select field", + "property": "measurement", + "propertyType": "msg", + "rules": [ + { + "t": "hask", + "v": "probe", + "vt": "str" + }, + { + "t": "hask", + "v": "sensor", + "vt": "str" + }, + { + "t": "hask", + "v": "detector", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 4, + "x": 910, + "y": 2640, + "wires": [ + [ + "934cfb1692390b27" + ], + [ + "6ddb281f50d850d9" + ], + [ + "5089fe68c49d4d99" + ], + [ + "4dbef5cc267442d3" + ] + ] + }, + { + "id": "934cfb1692390b27", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "probe", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.probe", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2520, + "wires": [ + [ + "c170fd80b6a5f6f2" + ] + ] + }, + { + "id": "6ddb281f50d850d9", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "sensor", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.sensor", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2580, + "wires": [ + [ + "c170fd80b6a5f6f2" + ] + ] + }, + { + "id": "5089fe68c49d4d99", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "detector", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.detector", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1100, + "y": 2640, + "wires": [ + [ + "c170fd80b6a5f6f2" + ] + ] + }, + { + "id": "fe7aea286ecc9d35", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "search humidity", + "mode": "return", + "links": [], + "x": 1395, + "y": 2700, + "wires": [] + }, + { + "id": "4dbef5cc267442d3", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "rsp -1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':-1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1270, + "y": 2700, + "wires": [ + [ + "bef84cb5efd8c2ca" + ] + ] + }, + { + "id": "c170fd80b6a5f6f2", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "rsp 1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1270, + "y": 2640, + "wires": [ + [ + "bef84cb5efd8c2ca", + "fe7aea286ecc9d35" + ] + ] + }, + { + "id": "bef84cb5efd8c2ca", + "type": "debug", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "search humidity", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1460, + "y": 2640, + "wires": [] + }, + { + "id": "49927aaaafcc60ec", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "search humidity", + "links": [], + "x": 135, + "y": 2700, + "wires": [ + [ + "928c3fc0fa3c5d18" + ] + ] + }, + { + "id": "928c3fc0fa3c5d18", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "check measurement", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "humidity", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 320, + "y": 2700, + "wires": [ + [ + "cc102f3a82a49a8e" + ] + ] + }, + { + "id": "cc102f3a82a49a8e", + "type": "link call", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "", + "links": [ + "2e0a9a817ddbf587" + ], + "linkType": "static", + "timeout": "30", + "x": 550, + "y": 2700, + "wires": [ + [ + "e8e85fb225317e53" + ] + ] + }, + { + "id": "e8e85fb225317e53", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "rsp", + "property": "search.response", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 730, + "y": 2700, + "wires": [ + [ + "813c2880aaaad0c7" + ], + [ + "4dbef5cc267442d3" + ] + ] + }, + { + "id": "af339e4a7646bf50", + "type": "comment", + "z": "bcb4426f5301b9f2", + "g": "3c8f18d59bc57893", + "name": "select field by preference order", + "info": "", + "x": 650, + "y": 2640, + "wires": [] + }, + { + "id": "110233fb067271ea", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "select field", + "property": "measurement", + "propertyType": "msg", + "rules": [ + { + "t": "hask", + "v": "probe", + "vt": "str" + }, + { + "t": "hask", + "v": "sensor", + "vt": "str" + }, + { + "t": "hask", + "v": "detector", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 4, + "x": 910, + "y": 2940, + "wires": [ + [ + "c62663d1c462b0e5" + ], + [ + "c2b96b7cbbd08748" + ], + [ + "80574552b8ba0d39" + ], + [ + "2d639fb6848e28d7" + ] + ] + }, + { + "id": "c62663d1c462b0e5", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "probe", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.probe", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2820, + "wires": [ + [ + "2b830fa657ca6d98" + ] + ] + }, + { + "id": "c2b96b7cbbd08748", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "sensor", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.sensor", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 2880, + "wires": [ + [ + "2b830fa657ca6d98" + ] + ] + }, + { + "id": "80574552b8ba0d39", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "detector", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement.detector", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1100, + "y": 2940, + "wires": [ + [ + "2b830fa657ca6d98" + ] + ] + }, + { + "id": "13fd23967c40a92e", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "search luminosity", + "mode": "return", + "links": [], + "x": 1395, + "y": 3000, + "wires": [] + }, + { + "id": "2d639fb6848e28d7", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "rsp -1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':-1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1270, + "y": 3000, + "wires": [ + [ + "1efc470e05455106" + ] + ] + }, + { + "id": "2b830fa657ca6d98", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "rsp 1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1270, + "y": 2940, + "wires": [ + [ + "1efc470e05455106", + "13fd23967c40a92e" + ] + ] + }, + { + "id": "1efc470e05455106", + "type": "debug", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "search luminosity", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1470, + "y": 2940, + "wires": [] + }, + { + "id": "aa96d5f77fcf68e5", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "search luminosity", + "links": [], + "x": 135, + "y": 3000, + "wires": [ + [ + "4507643d8c985d72" + ] + ] + }, + { + "id": "4507643d8c985d72", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "check measurement", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "luminosity", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 320, + "y": 3000, + "wires": [ + [ + "e02edcf844fea90c" + ] + ] + }, + { + "id": "e02edcf844fea90c", + "type": "link call", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "", + "links": [ + "2e0a9a817ddbf587" + ], + "linkType": "static", + "timeout": "30", + "x": 550, + "y": 3000, + "wires": [ + [ + "ee411219c4f7a44b" + ] + ] + }, + { + "id": "ee411219c4f7a44b", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "rsp", + "property": "search.response", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 730, + "y": 3000, + "wires": [ + [ + "110233fb067271ea" + ], + [ + "2d639fb6848e28d7" + ] + ] + }, + { + "id": "29d4eb12e680548a", + "type": "comment", + "z": "bcb4426f5301b9f2", + "g": "0c4ddf3cde7a1e48", + "name": "select field by preference order", + "info": "", + "x": 650, + "y": 2940, + "wires": [] + }, + { + "id": "2056847a88301b2a", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "measurement", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "measurement", + "tot": "msg" + }, + { + "t": "set", + "p": "final_payload", + "pt": "msg", + "to": "false", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 920, + "y": 3180, + "wires": [ + [ + "a064a6c08fd2f40e" + ] + ] + }, + { + "id": "c421ec88d5d06d7d", + "type": "link out", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "search motion", + "mode": "return", + "links": [], + "x": 2095, + "y": 3240, + "wires": [] + }, + { + "id": "fc6bb2e0b3eb77b2", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "rsp -1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':-1}", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1970, + "y": 3240, + "wires": [ + [ + "e68d7c0f7721c679" + ] + ] + }, + { + "id": "618d9c3f33eefa02", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "rsp 1", + "rules": [ + { + "t": "set", + "p": "search", + "pt": "msg", + "to": "{'response':1}", + "tot": "jsonata" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "final_payload", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1970, + "y": 3180, + "wires": [ + [ + "e68d7c0f7721c679", + "c421ec88d5d06d7d" + ] + ] + }, + { + "id": "e68d7c0f7721c679", + "type": "debug", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "search motion", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 2160, + "y": 3180, + "wires": [] + }, + { + "id": "12b1109de2f09cfc", + "type": "link in", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "search motion", + "links": [], + "x": 135, + "y": 3240, + "wires": [ + [ + "0845a36d7c0aef49" + ] + ] + }, + { + "id": "a064a6c08fd2f40e", + "type": "split", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "", + "splt": "\\n", + "spltType": "str", + "arraySplt": 1, + "arraySpltType": "len", + "stream": false, + "addname": "field", + "x": 1110, + "y": 3180, + "wires": [ + [ + "719eb321350dc033" + ] + ] + }, + { + "id": "6b4bc7764df41753", + "type": "join", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "", + "mode": "auto", + "build": "object", + "property": "payload", + "propertyType": "msg", + "key": "topic", + "joiner": "\\n", + "joinerType": "str", + "accumulate": true, + "timeout": "", + "count": "", + "reduceRight": false, + "reduceExp": "", + "reduceInit": "", + "reduceInitType": "", + "reduceFixup": "", + "x": 1810, + "y": 3180, + "wires": [ + [ + "618d9c3f33eefa02" + ] + ] + }, + { + "id": "6c18cec9a1d74489", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "exists", + "property": "motion", + "propertyType": "msg", + "rules": [ + { + "t": "true" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 1470, + "y": 3180, + "wires": [ + [ + "02373ad0b61f2a49" + ], + [ + "6b4bc7764df41753" + ] + ] + }, + { + "id": "02373ad0b61f2a49", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "set activ", + "rules": [ + { + "t": "set", + "p": "final_payload", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1640, + "y": 3120, + "wires": [ + [ + "6b4bc7764df41753" + ] + ] + }, + { + "id": "719eb321350dc033", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "from global", + "rules": [ + { + "t": "set", + "p": "motion", + "pt": "msg", + "to": "stack[msg.scene.bucket]['motion'][msg.field]", + "tot": "global" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1290, + "y": 3180, + "wires": [ + [ + "6c18cec9a1d74489" + ] + ] + }, + { + "id": "0845a36d7c0aef49", + "type": "change", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "check measurement", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "motion", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 320, + "y": 3240, + "wires": [ + [ + "333d8ba06abef807" + ] + ] + }, + { + "id": "333d8ba06abef807", + "type": "link call", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "", + "links": [ + "2e0a9a817ddbf587" + ], + "linkType": "static", + "timeout": "30", + "x": 550, + "y": 3240, + "wires": [ + [ + "276eb14e1448224d" + ] + ] + }, + { + "id": "276eb14e1448224d", + "type": "switch", + "z": "bcb4426f5301b9f2", + "g": "aadbfea0ba5c45ac", + "name": "rsp", + "property": "search.response", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 730, + "y": 3240, + "wires": [ + [ + "2056847a88301b2a" + ], + [ + "fc6bb2e0b3eb77b2" ] ] } diff --git a/flows/K.Thermostat.json b/flows/K.Thermostat.json new file mode 100644 index 0000000..f4c6d31 --- /dev/null +++ b/flows/K.Thermostat.json @@ -0,0 +1,5792 @@ +[ + { + "id": "80f2ffd4953c67e9", + "type": "tab", + "label": "K.Thermostat", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "f12560e95cd346d2", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - bucket", + "style": { + "fill": "#ffC000", + "fill-opacity": "0.05", + "label": true, + "stroke": "#ffC000" + }, + "nodes": [ + "f0bd4b1ffe5da318", + "5c64177e3bbfd337", + "4f0f1c286cdfedcd" + ], + "x": 94, + "y": 19, + "w": 342, + "h": 82 + }, + { + "id": "6fe378cbf407ee45", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - catch", + "style": { + "fill": "#ff0000", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "6a52e89b65262e56", + "a08a5b5fbf04f8d4" + ], + "x": 534, + "y": 19, + "w": 472, + "h": 82 + }, + { + "id": "9e18b65b8d6e5bc3", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - config", + "style": { + "fill": "#777777", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "91157899ceb2151b", + "19bd3df3be006a24" + ], + "x": 68, + "y": 173, + "w": 1454, + "h": 254 + }, + { + "id": "91157899ceb2151b", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "9e18b65b8d6e5bc3", + "name": "thermostat - config - device", + "style": { + "fill": "#ffC000", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "4aab252764e96897", + "2b5ebe5c93914bd9", + "ece815da9a3e1dab", + "f2fcc76292e4e686" + ], + "x": 94, + "y": 199, + "w": 542, + "h": 142 + }, + { + "id": "19bd3df3be006a24", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "9e18b65b8d6e5bc3", + "name": "thermostat - config - ui", + "style": { + "fill": "#6f2fa0", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "11cf1061a2c539a1", + "884976027c7e86a2", + "6fad4103dfdc045f", + "52e9e7f197ba916f", + "7a0cd3a41aafad17", + "75b5d1f31a8fa165", + "c13917bf46188642", + "4f450cad246d50cf", + "51c7f61e5f0e55fb" + ], + "x": 714, + "y": 199, + "w": 782, + "h": 202 + }, + { + "id": "dbf491fd689e7cd2", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat", + "style": { + "fill": "#777777", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "ccc78d495cbd8f7d", + "e57e9c900c787424", + "8206912d2f9bab36", + "0af18fd6cc155518", + "c311204f22191fa2", + "868902cdeaa428fe", + "467ec12f292b2573", + "6c4b12585b58300e" + ], + "x": 78, + "y": 1973, + "w": 2204, + "h": 1874 + }, + { + "id": "ccc78d495cbd8f7d", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - update - pilot", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "cfeaa3a9e12b40eb", + "2b98ac8845853557", + "1b79850c96d3d208", + "014df3b24c891646", + "d67d4a70e837c744", + "b809a2344b2a162c", + "b5123d0e6886505f", + "2311d66d2d2f1a5a", + "d2ded0d940485aa7", + "80b02c9d206eb796", + "e50f34cde29f1023", + "502bf87b213069c7", + "4e6ed9498ff4530e", + "12cadcc5d1bee95b", + "b54dd8d3915e207f", + "06abf52a6249bd22", + "93d2b581d45d7631" + ], + "x": 104, + "y": 3379, + "w": 2152, + "h": 262 + }, + { + "id": "e57e9c900c787424", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - update - status", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "cd96635eddc7da1f", + "4fc3e55ddfdaa010", + "529ee15b89c1a59a", + "559221227a779f47", + "5473623028666410", + "61a83a7757b78adc", + "889157da2139e8ff", + "503a81673f2d7fb0", + "a4c6172c4c4737ac", + "4cdca41467e84399", + "6335a0ba7e4fd02e", + "ffdbc6f74f0bd44a", + "1ff0b0648a927b0f", + "f0e65595e5827e60", + "54a377fdde983cc9" + ], + "x": 104, + "y": 3019, + "w": 1952, + "h": 322 + }, + { + "id": "8206912d2f9bab36", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - update - offloading", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "f3335edf661bfc8d", + "82489d3f8ae606cf", + "c91c042b412afd7f", + "8a7f5acb317722bc", + "aa80f7b58c825d6d", + "cbb6f339addc057f", + "772937ddeb3e1b72", + "1b11e45ef3e9f02f", + "3bc159f186c762cd", + "0ea437f46160f0e5" + ], + "x": 104, + "y": 2779, + "w": 1632, + "h": 202 + }, + { + "id": "0af18fd6cc155518", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - udpate - temperature setpoint", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "e7a80893daf9f5cd", + "85d6369076d887c9", + "1164fe72097e884c", + "0eb756ee244751a4", + "3a3af17d95ca520a", + "70c27df7cb0add1d", + "64754ad76b3561d6", + "f9fad454dec37bc7", + "55660ec49f882e13" + ], + "x": 104, + "y": 2539, + "w": 1412, + "h": 202 + }, + { + "id": "c311204f22191fa2", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - update - delayed aperture", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "f1240da189a60ba8", + "ecda411603ebcccf", + "f3eb2e8c09f67e89", + "f305bda7c25657e5", + "6a726c7db415e700", + "4658e2323b1a287a", + "37b31a14146e2a3f", + "92add418b3868c54", + "6893398018de38e9" + ], + "x": 104, + "y": 2359, + "w": 1592, + "h": 142 + }, + { + "id": "868902cdeaa428fe", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - metric - input", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "266e831763ed3b77", + "ed42e96a79df8e09", + "7b43ab1cda2d8f3f", + "ff4225d872a9a0d3", + "623975efd8e9bbcd", + "be58e8ac1e1b6eb1" + ], + "x": 104, + "y": 1999, + "w": 972, + "h": 142 + }, + { + "id": "467ec12f292b2573", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - update - heat request", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "1ed6b5ff63020d07", + "69fda60f897db5fd", + "d75bdce71118a56f", + "5f6fd378f40e4c81", + "0fb59058d3aa9663", + "0998eafda2346961" + ], + "x": 104, + "y": 2179, + "w": 1172, + "h": 157 + }, + { + "id": "6c4b12585b58300e", + "type": "group", + "z": "80f2ffd4953c67e9", + "g": "dbf491fd689e7cd2", + "name": "thermostat - metric - output", + "style": { + "label": true, + "fill": "#ff0000", + "fill-opacity": "0.05" + }, + "nodes": [ + "a091b2e84a4e89e6", + "34e6817c2f435667", + "9ba0a97276e93540", + "147aa94543fa77cb" + ], + "x": 104, + "y": 3679, + "w": 592, + "h": 142 + }, + { + "id": "7e9cff1699c061ec", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - compute heat request", + "style": { + "stroke": "#92d04f", + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "1452439e0c937126", + "15d8d0ba06961e4b", + "4b342483a51b0f93" + ], + "x": 94, + "y": 1819, + "w": 522, + "h": 82 + }, + { + "id": "81842bf5581a2a3f", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - device - partial (bucket must have other thermostat values)", + "style": { + "fill": "#ffC000", + "fill-opacity": "0.05", + "label": true, + "stroke": "#ffC000" + }, + "nodes": [ + "d8585174fdd6097c", + "a35aaf65004eeaac", + "f61fef9768da8558", + "5cbb323f0e362aed", + "3b8629192cde74db", + "82a9ec30d38dec10", + "9c5d6532a1c36bc4", + "804a2d1f3c05de7e", + "c170b43fcf7a5bc2", + "e1663eb05a273810", + "60a8b6c3b2e72ae2", + "d5cbc2f49e5bcf37", + "a0b0a47a4719edd4", + "11886766f827e1fd", + "9dc49d567806c040", + "db296997eb05a7e3", + "de88d060a6e9ab68", + "4209dce5b520e62e", + "2cda217228ab8a5f", + "7c192da441c0e46b", + "8d1ed0f3a77d2bb9", + "209e2b300932e1ce", + "c61e55af251c1588", + "c1d7285b5e0a4ef9", + "7f74332e39e8c3b6", + "ea4ed028bce71805", + "c22a1d18683ea7c0" + ], + "x": 94, + "y": 499, + "w": 922, + "h": 1282 + }, + { + "id": "93075511ad056e6d", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - update - outdoor temperature (customized to my needs)", + "style": { + "label": true, + "fill": "#92d04f", + "fill-opacity": "0.05" + }, + "nodes": [ + "8bbf52c2a83e09ea", + "0a9cb3219b03ca53", + "de7ea9b615e052e6", + "37844601d21c6184", + "e3dc3f877be31d77", + "6fbdfc1ab44f9754", + "85f9e2ad24cb8a5a" + ], + "x": 94, + "y": 3919, + "w": 1102, + "h": 82 + }, + { + "id": "e653f3ec3dc88a8f", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - update - indoor temperature", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "3099e4a17fd21410", + "a2b07c98d61de126", + "d09ad27d05d54698", + "4c169fc26f833802", + "a21c6a2db7aeab09", + "c7d315d762524494", + "e2c388ba43ec89f0", + "9eb8cf78caf3141d", + "313fbd5fc01985a5", + "b7ffd39578f29c8b" + ], + "x": 94, + "y": 4039, + "w": 1742, + "h": 82 + }, + { + "id": "6f1f772c23d57e24", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - update - offloading", + "style": { + "fill": "#92d04f", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "5cb2a229a6fec1aa", + "1c4fbd9e3d313b43", + "2aaf95392a970167", + "e78638ee35b8c069", + "2cb92368cb319c65", + "1dd82f8d7e2ccd52", + "4b2f0c80863bf5e7", + "91ee9f04019a9999", + "53f044d01f2d18b2", + "2df7aa160cbf3a71", + "db3681610a5d90d9", + "7869c56dce3123ed", + "ea0c6cadf1d594c3", + "285a0091abda1f58", + "96e92d4bad3792d3", + "3de9c88ac7ce9a77", + "6e120320180e5cfd", + "d237415ac7c1b47b", + "808426e9258cd024" + ], + "x": 94, + "y": 4159, + "w": 3582, + "h": 82 + }, + { + "id": "c3cbb2a2dd06d1bb", + "type": "group", + "z": "80f2ffd4953c67e9", + "name": "thermostat - ui - test", + "style": { + "fill": "#6f2fa0", + "fill-opacity": "0.05", + "label": true + }, + "nodes": [ + "659f9752db0967bc", + "9caafb8c1719d275", + "515b0c184c8a3628", + "13697bbd73295b46", + "c6fdc57a80266f04", + "b7bc73260cea8570", + "d60c017a8962d3f8", + "dc37631fe73fce2a", + "c932311ec07112b5", + "67e91e753d3708e2", + "a86e51fee3e3458d", + "f974a627497b4b7d", + "809635d5f2efc402", + "c9291360c0f0b490", + "f10733a435dc7390", + "f81152d8df61c845", + "bc4771242d5d3bd8", + "135b7546018ecfba", + "6bf593bd1612dbde", + "64405bce10cccde1", + "bf5b9cb6fe9e3550", + "6e4f87c323cc4659" + ], + "x": 94, + "y": 4279, + "w": 1752, + "h": 502 + }, + { + "id": "f0bd4b1ffe5da318", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "f12560e95cd346d2", + "name": "bucket", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "thermostat", + "tot": "str" + }, + { + "t": "set", + "p": "bucket", + "pt": "flow", + "to": "bucket", + "tot": "msg" + }, + { + "t": "set", + "p": "thermostats", + "pt": "flow", + "to": "{}", + "tot": "jsonata" + }, + { + "t": "set", + "p": "offloading", + "pt": "flow", + "to": "0", + "tot": "num" + }, + { + "t": "set", + "p": "sort", + "pt": "flow", + "to": "[]", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 270, + "y": 60, + "wires": [ + [ + "4f0f1c286cdfedcd" + ] + ] + }, + { + "id": "5c64177e3bbfd337", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "f12560e95cd346d2", + "name": "thermostat - bucket", + "links": [ + "25445f5a9b787a0a" + ], + "x": 135, + "y": 60, + "wires": [ + [ + "f0bd4b1ffe5da318" + ] + ] + }, + { + "id": "4f0f1c286cdfedcd", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "f12560e95cd346d2", + "name": "thermostat - bucket", + "mode": "link", + "links": [ + "4aab252764e96897" + ], + "x": 395, + "y": 60, + "wires": [] + }, + { + "id": "6a52e89b65262e56", + "type": "catch", + "z": "80f2ffd4953c67e9", + "g": "6fe378cbf407ee45", + "name": "catch error", + "scope": null, + "uncaught": false, + "x": 620, + "y": 60, + "wires": [ + [ + "a08a5b5fbf04f8d4" + ] + ] + }, + { + "id": "a08a5b5fbf04f8d4", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "6fe378cbf407ee45", + "name": "thermostat - catch error", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 850, + "y": 60, + "wires": [] + }, + { + "id": "4aab252764e96897", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "91157899ceb2151b", + "name": "thermostat - config - device", + "links": [ + "4f0f1c286cdfedcd" + ], + "x": 135, + "y": 240, + "wires": [ + [ + "2b5ebe5c93914bd9", + "f2fcc76292e4e686" + ] + ] + }, + { + "id": "2b5ebe5c93914bd9", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "91157899ceb2151b", + "name": "config / aperture delay / number / 5", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "config", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "aperture delay", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "5", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 360, + "y": 240, + "wires": [ + [ + "ece815da9a3e1dab" + ] + ] + }, + { + "id": "ece815da9a3e1dab", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "91157899ceb2151b", + "name": "thermostat - config - device", + "mode": "link", + "links": [ + "bfa594bf1f876c92" + ], + "x": 595, + "y": 240, + "wires": [] + }, + { + "id": "f2fcc76292e4e686", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "91157899ceb2151b", + "name": "config / offloading delay / number / 30", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "config", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading delay", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "30", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 370, + "y": 300, + "wires": [ + [ + "ece815da9a3e1dab" + ] + ] + }, + { + "id": "11cf1061a2c539a1", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "thermostat - config - ui - metric", + "links": [ + "031a6afd8300356a" + ], + "x": 755, + "y": 240, + "wires": [ + [ + "6fad4103dfdc045f" + ] + ] + }, + { + "id": "884976027c7e86a2", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "thermostat - config - ui - metric", + "mode": "link", + "links": [ + "206c1fb4a48067df" + ], + "x": 1455, + "y": 300, + "wires": [] + }, + { + "id": "6fad4103dfdc045f", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "check path", + "property": "path", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "thermostat/config/aperture delay", + "vt": "str" + }, + { + "t": "eq", + "v": "thermostat/config/offloading delay", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 910, + "y": 240, + "wires": [ + [ + "52e9e7f197ba916f" + ], + [ + "7a0cd3a41aafad17" + ] + ] + }, + { + "id": "52e9e7f197ba916f", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "group": "403aaeef14cd4c8f", + "name": "aperture delay", + "label": "Délai ouvrant", + "tooltip": "", + "order": 0, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "aperture delay", + "topicType": "str", + "thumbLabel": true, + "min": "1", + "max": "30", + "step": 1, + "className": "", + "x": 1120, + "y": 300, + "wires": [ + [ + "75b5d1f31a8fa165" + ] + ] + }, + { + "id": "7a0cd3a41aafad17", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "group": "403aaeef14cd4c8f", + "name": "offloading delay", + "label": "Temps de délestage", + "tooltip": "", + "order": 0, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "offloading delay", + "topicType": "str", + "thumbLabel": true, + "min": "1", + "max": "60", + "step": 1, + "className": "", + "x": 1120, + "y": 360, + "wires": [ + [ + "75b5d1f31a8fa165" + ] + ] + }, + { + "id": "75b5d1f31a8fa165", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "set metric", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "bucket", + "tot": "flow" + }, + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "config", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "topic", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1320, + "y": 300, + "wires": [ + [ + "884976027c7e86a2" + ] + ] + }, + { + "id": "c13917bf46188642", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "thermostat - config - ui - load", + "links": [ + "25445f5a9b787a0a" + ], + "x": 755, + "y": 300, + "wires": [ + [ + "4f450cad246d50cf", + "51c7f61e5f0e55fb" + ] + ] + }, + { + "id": "4f450cad246d50cf", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "from global", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "bucket", + "tot": "flow" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "metrics[msg.bucket]config['aperture delay']", + "tot": "global" + }, + { + "t": "set", + "p": "class", + "pt": "msg", + "to": "", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 910, + "y": 300, + "wires": [ + [ + "52e9e7f197ba916f" + ] + ] + }, + { + "id": "51c7f61e5f0e55fb", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "19bd3df3be006a24", + "name": "from global", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "bucket", + "tot": "flow" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "metrics[msg.bucket]config['offloading delay']", + "tot": "global" + }, + { + "t": "set", + "p": "class", + "pt": "msg", + "to": "", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 910, + "y": 360, + "wires": [ + [ + "7a0cd3a41aafad17" + ] + ] + }, + { + "id": "cfeaa3a9e12b40eb", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "thermostat - update - pilot metric", + "mode": "link", + "links": [ + "206c1fb4a48067df" + ], + "x": 2065, + "y": 3540, + "wires": [] + }, + { + "id": "2b98ac8845853557", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "trigger", + "property": "field", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "status", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 280, + "y": 3480, + "wires": [ + [ + "1b79850c96d3d208" + ] + ] + }, + { + "id": "1b79850c96d3d208", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "status", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "powered", + "vt": "str" + }, + { + "t": "eq", + "v": "reached", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 3, + "x": 440, + "y": 3480, + "wires": [ + [ + "b809a2344b2a162c" + ], + [ + "d67d4a70e837c744" + ], + [ + "d67d4a70e837c744" + ] + ] + }, + { + "id": "014df3b24c891646", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "to true", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 840, + "y": 3540, + "wires": [ + [ + "4e6ed9498ff4530e", + "12cadcc5d1bee95b", + "b5123d0e6886505f" + ] + ] + }, + { + "id": "d67d4a70e837c744", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "to false", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "false", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 850, + "y": 3480, + "wires": [ + [ + "12cadcc5d1bee95b", + "4e6ed9498ff4530e", + "b5123d0e6886505f" + ] + ] + }, + { + "id": "b809a2344b2a162c", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "system offloaded", + "property": "metrics.system.mode.offloading", + "propertyType": "global", + "rules": [ + { + "t": "eq", + "v": "offloaded", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 640, + "y": 3420, + "wires": [ + [ + "b54dd8d3915e207f" + ], + [ + "014df3b24c891646" + ] + ] + }, + { + "id": "b5123d0e6886505f", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "cycle time", + "rules": [ + { + "t": "set", + "p": "tc", + "pt": "msg", + "to": "th['cycle time']", + "tot": "msg" + }, + { + "t": "set", + "p": "delay", + "pt": "msg", + "to": "msg.tc * 60000", + "tot": "jsonata" + }, + { + "t": "delete", + "p": "tc", + "pt": "msg" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "false", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1030, + "y": 3600, + "wires": [ + [ + "d2ded0d940485aa7" + ] + ] + }, + { + "id": "2311d66d2d2f1a5a", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "thermostat / offloading", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading", + "tot": "str" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1070, + "y": 3420, + "wires": [ + [ + "502bf87b213069c7" + ] + ] + }, + { + "id": "d2ded0d940485aa7", + "type": "trigger", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "wait delay then send false, reset on false", + "op1": "", + "op2": "false", + "op1type": "nul", + "op2type": "bool", + "duration": "30", + "extend": false, + "overrideDelay": true, + "units": "min", + "reset": "false", + "bytopic": "topic", + "topic": "th.bucket", + "outputs": 1, + "x": 1310, + "y": 3600, + "wires": [ + [ + "4e6ed9498ff4530e", + "12cadcc5d1bee95b" + ] + ] + }, + { + "id": "80b02c9d206eb796", + "type": "trigger", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "wait 1 min then send last", + "op1": "", + "op2": "", + "op1type": "nul", + "op2type": "payl", + "duration": "1", + "extend": true, + "overrideDelay": false, + "units": "min", + "reset": "", + "bytopic": "topic", + "topic": "bucket", + "outputs": 1, + "x": 1880, + "y": 3600, + "wires": [ + [ + "cfeaa3a9e12b40eb", + "93d2b581d45d7631" + ] + ] + }, + { + "id": "e50f34cde29f1023", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "thermostat - update - pilot", + "links": [ + "be58e8ac1e1b6eb1" + ], + "x": 145, + "y": 3480, + "wires": [ + [ + "2b98ac8845853557" + ] + ] + }, + { + "id": "502bf87b213069c7", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "thermostat - update - pilot", + "mode": "link", + "links": [ + "147aa94543fa77cb" + ], + "x": 1805, + "y": 3420, + "wires": [] + }, + { + "id": "4e6ed9498ff4530e", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "thermostat / last pilot", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "last pilot", + "tot": "str" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "", + "tot": "date" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1630, + "y": 3480, + "wires": [ + [ + "502bf87b213069c7", + "06abf52a6249bd22" + ] + ] + }, + { + "id": "12cadcc5d1bee95b", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "metric cible / pilot", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "th.bucket", + "tot": "msg" + }, + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "cible", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "pilot", + "tot": "str" + }, + { + "t": "delete", + "p": "th", + "pt": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1620, + "y": 3540, + "wires": [ + [ + "80b02c9d206eb796", + "cfeaa3a9e12b40eb", + "93d2b581d45d7631" + ] + ] + }, + { + "id": "b54dd8d3915e207f", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "to false", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "false", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 850, + "y": 3420, + "wires": [ + [ + "2311d66d2d2f1a5a", + "b5123d0e6886505f" + ] + ] + }, + { + "id": "06abf52a6249bd22", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "thermostat / last pilot", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1890, + "y": 3480, + "wires": [] + }, + { + "id": "93d2b581d45d7631", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "ccc78d495cbd8f7d", + "name": "xxx / cible / pilot", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 2130, + "y": 3600, + "wires": [] + }, + { + "id": "cd96635eddc7da1f", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "operating mode", + "property": "th['operating mode']", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "off", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 470, + "y": 3060, + "wires": [ + [ + "5473623028666410" + ], + [ + "4fc3e55ddfdaa010" + ] + ] + }, + { + "id": "4fc3e55ddfdaa010", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "offloading", + "property": "th.offloading", + "propertyType": "msg", + "rules": [ + { + "t": "true" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 670, + "y": 3120, + "wires": [ + [ + "61a83a7757b78adc" + ], + [ + "529ee15b89c1a59a" + ] + ] + }, + { + "id": "529ee15b89c1a59a", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "delayed aperture", + "property": "th['delayed aperture']", + "propertyType": "msg", + "rules": [ + { + "t": "true" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 880, + "y": 3180, + "wires": [ + [ + "889157da2139e8ff" + ], + [ + "559221227a779f47" + ] + ] + }, + { + "id": "559221227a779f47", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "heat request", + "property": "th['heat request']", + "propertyType": "msg", + "rules": [ + { + "t": "true" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 1100, + "y": 3240, + "wires": [ + [ + "503a81673f2d7fb0" + ], + [ + "54a377fdde983cc9" + ] + ] + }, + { + "id": "5473623028666410", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "stopped", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "stopped", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1470, + "y": 3060, + "wires": [ + [ + "4cdca41467e84399" + ] + ] + }, + { + "id": "61a83a7757b78adc", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "offloaded", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "offloaded", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1470, + "y": 3120, + "wires": [ + [ + "4cdca41467e84399" + ] + ] + }, + { + "id": "889157da2139e8ff", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "suspended", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "suspended", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1480, + "y": 3180, + "wires": [ + [ + "4cdca41467e84399" + ] + ] + }, + { + "id": "503a81673f2d7fb0", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "powered", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "powered", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1470, + "y": 3240, + "wires": [ + [ + "4cdca41467e84399" + ] + ] + }, + { + "id": "a4c6172c4c4737ac", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "reached", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "reached", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1470, + "y": 3300, + "wires": [ + [ + "4cdca41467e84399" + ] + ] + }, + { + "id": "4cdca41467e84399", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "thermostat / status", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "status", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1680, + "y": 3120, + "wires": [ + [ + "1ff0b0648a927b0f", + "f0e65595e5827e60" + ] + ] + }, + { + "id": "6335a0ba7e4fd02e", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "trigger", + "property": "field", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "heat request", + "vt": "str" + }, + { + "t": "eq", + "v": "operating mode", + "vt": "str" + }, + { + "t": "eq", + "v": "offloading", + "vt": "str" + }, + { + "t": "eq", + "v": "delayed aperture", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 4, + "x": 280, + "y": 3120, + "wires": [ + [ + "cd96635eddc7da1f" + ], + [ + "cd96635eddc7da1f" + ], + [ + "cd96635eddc7da1f" + ], + [ + "cd96635eddc7da1f" + ] + ] + }, + { + "id": "ffdbc6f74f0bd44a", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "thermostat - update - status", + "links": [ + "be58e8ac1e1b6eb1" + ], + "x": 145, + "y": 3120, + "wires": [ + [ + "6335a0ba7e4fd02e" + ] + ] + }, + { + "id": "1ff0b0648a927b0f", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "thermostat - update - status", + "mode": "link", + "links": [ + "147aa94543fa77cb" + ], + "x": 1845, + "y": 3120, + "wires": [] + }, + { + "id": "f0e65595e5827e60", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "thermostat / status", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1920, + "y": 3060, + "wires": [] + }, + { + "id": "54a377fdde983cc9", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e57e9c900c787424", + "name": "cycle time", + "property": "th['last pilot']", + "propertyType": "msg", + "rules": [ + { + "t": "lt", + "v": "$millis() - ($number(msg.th.'cycle time') * 60000)", + "vt": "jsonata" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 1290, + "y": 3300, + "wires": [ + [ + "a4c6172c4c4737ac" + ] + ] + }, + { + "id": "f3335edf661bfc8d", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "trigger", + "property": "field", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "offloading", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 280, + "y": 2880, + "wires": [ + [ + "82489d3f8ae606cf" + ] + ] + }, + { + "id": "82489d3f8ae606cf", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "is true", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "true" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 440, + "y": 2880, + "wires": [ + [ + "c91c042b412afd7f", + "cbb6f339addc057f", + "772937ddeb3e1b72" + ] + ] + }, + { + "id": "c91c042b412afd7f", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "set delay", + "rules": [ + { + "t": "set", + "p": "delay", + "pt": "msg", + "to": "metrics.thermostat.config['offloading delay']", + "tot": "global" + }, + { + "t": "set", + "p": "delay", + "pt": "msg", + "to": "$number(msg.delay) * 60000", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 610, + "y": 2940, + "wires": [ + [ + "8a7f5acb317722bc" + ] + ] + }, + { + "id": "8a7f5acb317722bc", + "type": "trigger", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "wait delay then false", + "op1": "", + "op2": "false", + "op1type": "nul", + "op2type": "bool", + "duration": "1", + "extend": true, + "overrideDelay": true, + "units": "min", + "reset": "", + "bytopic": "topic", + "topic": "th.bucket", + "outputs": 1, + "x": 830, + "y": 2940, + "wires": [ + [ + "aa80f7b58c825d6d" + ] + ] + }, + { + "id": "aa80f7b58c825d6d", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "system offloaded", + "property": "metrics.system.mode.offloading", + "propertyType": "global", + "rules": [ + { + "t": "eq", + "v": "offloaded", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 1080, + "y": 2940, + "wires": [ + [ + "c91c042b412afd7f" + ], + [ + "cbb6f339addc057f" + ] + ] + }, + { + "id": "cbb6f339addc057f", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "thermostat / offloading", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1330, + "y": 2880, + "wires": [ + [ + "3bc159f186c762cd", + "0ea437f46160f0e5" + ] + ] + }, + { + "id": "772937ddeb3e1b72", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "thermostat / offloading count", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading count", + "tot": "str" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "th['offloading count']", + "tot": "msg" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$number(msg.payload) + 1", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 2820, + "wires": [ + [ + "3bc159f186c762cd" + ] + ] + }, + { + "id": "1b11e45ef3e9f02f", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "thermostat - update - offloading", + "links": [ + "be58e8ac1e1b6eb1" + ], + "x": 145, + "y": 2880, + "wires": [ + [ + "f3335edf661bfc8d" + ] + ] + }, + { + "id": "3bc159f186c762cd", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "thermostat - update - offloading", + "mode": "link", + "links": [ + "147aa94543fa77cb" + ], + "x": 1505, + "y": 2820, + "wires": [] + }, + { + "id": "0ea437f46160f0e5", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "8206912d2f9bab36", + "name": "thermostat / offloading", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1590, + "y": 2880, + "wires": [] + }, + { + "id": "e7a80893daf9f5cd", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "trigger", + "property": "field", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "operating mode", + "vt": "str" + }, + { + "t": "eq", + "v": "confort setpoint", + "vt": "str" + }, + { + "t": "eq", + "v": "eco setpoint", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 3, + "x": 280, + "y": 2640, + "wires": [ + [ + "85d6369076d887c9" + ], + [ + "85d6369076d887c9" + ], + [ + "85d6369076d887c9" + ] + ] + }, + { + "id": "85d6369076d887c9", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "check operating mode", + "property": "th['operating mode']", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "confort", + "vt": "str" + }, + { + "t": "eq", + "v": "eco", + "vt": "str" + }, + { + "t": "eq", + "v": "anti-freeze", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 3, + "x": 490, + "y": 2640, + "wires": [ + [ + "1164fe72097e884c" + ], + [ + "0eb756ee244751a4" + ], + [ + "3a3af17d95ca520a" + ] + ] + }, + { + "id": "1164fe72097e884c", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "confort", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "th['confort setpoint']", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 700, + "y": 2580, + "wires": [ + [ + "70c27df7cb0add1d" + ] + ] + }, + { + "id": "0eb756ee244751a4", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "eco", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "th['eco setpoint']", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 700, + "y": 2640, + "wires": [ + [ + "70c27df7cb0add1d" + ] + ] + }, + { + "id": "3a3af17d95ca520a", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "anti-freeze", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "7", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 720, + "y": 2700, + "wires": [ + [ + "70c27df7cb0add1d" + ] + ] + }, + { + "id": "70c27df7cb0add1d", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "thermostat / temperature setpoint", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "temperature setpoint", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 990, + "y": 2640, + "wires": [ + [ + "f9fad454dec37bc7", + "55660ec49f882e13" + ] + ] + }, + { + "id": "64754ad76b3561d6", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "temperature - update - temperature setpoint", + "links": [ + "be58e8ac1e1b6eb1" + ], + "x": 145, + "y": 2640, + "wires": [ + [ + "e7a80893daf9f5cd" + ] + ] + }, + { + "id": "f9fad454dec37bc7", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "thermostat - update - tempearture setpoint", + "mode": "link", + "links": [ + "147aa94543fa77cb" + ], + "x": 1205, + "y": 2640, + "wires": [] + }, + { + "id": "55660ec49f882e13", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "0af18fd6cc155518", + "name": "thermostat / temperature setpoint", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1330, + "y": 2580, + "wires": [] + }, + { + "id": "f1240da189a60ba8", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "trigger", + "property": "field", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "aperture opened", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 280, + "y": 2460, + "wires": [ + [ + "ecda411603ebcccf" + ] + ] + }, + { + "id": "ecda411603ebcccf", + "type": "delay", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "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": 460, + "y": 2460, + "wires": [ + [ + "4658e2323b1a287a" + ] + ] + }, + { + "id": "f3eb2e8c09f67e89", + "type": "trigger", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "wait delay then false, reset on true", + "op1": "", + "op2": "false", + "op1type": "nul", + "op2type": "bool", + "duration": "2", + "extend": false, + "overrideDelay": true, + "units": "min", + "reset": "true", + "bytopic": "topic", + "topic": "th.bucket", + "outputs": 1, + "x": 910, + "y": 2400, + "wires": [ + [ + "6a726c7db415e700" + ] + ] + }, + { + "id": "f305bda7c25657e5", + "type": "trigger", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "wait delay then true, reset on false", + "op1": "", + "op2": "true", + "op1type": "nul", + "op2type": "bool", + "duration": "2", + "extend": false, + "overrideDelay": true, + "units": "min", + "reset": "false", + "bytopic": "topic", + "topic": "th.bucket", + "outputs": 1, + "x": 910, + "y": 2460, + "wires": [ + [ + "6a726c7db415e700" + ] + ] + }, + { + "id": "6a726c7db415e700", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "thermostat / delayed aperture", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "delayed aperture", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1230, + "y": 2460, + "wires": [ + [ + "92add418b3868c54", + "6893398018de38e9" + ] + ] + }, + { + "id": "4658e2323b1a287a", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "set delay", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$boolean(msg.th.'aperture opened')", + "tot": "jsonata" + }, + { + "t": "set", + "p": "delay", + "pt": "msg", + "to": "stack.thermostat.config['aperture delay']", + "tot": "global" + }, + { + "t": "set", + "p": "delay", + "pt": "msg", + "to": "msg.delay * 60000", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 650, + "y": 2460, + "wires": [ + [ + "f3eb2e8c09f67e89", + "f305bda7c25657e5" + ] + ] + }, + { + "id": "37b31a14146e2a3f", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "thermostat - update - delayed aperture", + "links": [ + "be58e8ac1e1b6eb1" + ], + "x": 145, + "y": 2460, + "wires": [ + [ + "f1240da189a60ba8" + ] + ] + }, + { + "id": "92add418b3868c54", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "thermostat - update - delayed aperture", + "mode": "link", + "links": [ + "147aa94543fa77cb" + ], + "x": 1415, + "y": 2460, + "wires": [] + }, + { + "id": "6893398018de38e9", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "c311204f22191fa2", + "name": "thermostat / delayed aperture", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 1530, + "y": 2400, + "wires": [] + }, + { + "id": "266e831763ed3b77", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "868902cdeaa428fe", + "name": "thermostat - metric - input", + "links": [ + "031a6afd8300356a" + ], + "x": 145, + "y": 2100, + "wires": [ + [ + "ed42e96a79df8e09" + ] + ] + }, + { + "id": "ed42e96a79df8e09", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "868902cdeaa428fe", + "name": "measurement", + "property": "measurement", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "thermostat", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 310, + "y": 2100, + "wires": [ + [ + "7b43ab1cda2d8f3f" + ] + ] + }, + { + "id": "7b43ab1cda2d8f3f", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "868902cdeaa428fe", + "name": "bucket", + "property": "thermostats", + "propertyType": "flow", + "rules": [ + { + "t": "hask", + "v": "bucket", + "vt": "msg" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 500, + "y": 2100, + "wires": [ + [ + "ff4225d872a9a0d3" + ] + ] + }, + { + "id": "ff4225d872a9a0d3", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "868902cdeaa428fe", + "name": "from global", + "rules": [ + { + "t": "set", + "p": "th", + "pt": "msg", + "to": "metrics[msg.bucket]thermostat", + "tot": "global" + }, + { + "t": "set", + "p": "th.bucket", + "pt": "msg", + "to": "bucket", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 680, + "y": 2100, + "wires": [ + [ + "623975efd8e9bbcd", + "be58e8ac1e1b6eb1" + ] + ] + }, + { + "id": "623975efd8e9bbcd", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "868902cdeaa428fe", + "name": "thermostat - metric - input", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 920, + "y": 2040, + "wires": [] + }, + { + "id": "be58e8ac1e1b6eb1", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "868902cdeaa428fe", + "name": "thermostat - update - metric", + "mode": "link", + "links": [ + "0998eafda2346961", + "1b11e45ef3e9f02f", + "37b31a14146e2a3f", + "64754ad76b3561d6", + "e50f34cde29f1023", + "ffdbc6f74f0bd44a" + ], + "x": 825, + "y": 2100, + "wires": [] + }, + { + "id": "1ed6b5ff63020d07", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "467ec12f292b2573", + "name": "thermostat / heat request", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "heat request", + "tot": "str" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "msg.th.compute>0", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 840, + "y": 2280, + "wires": [ + [ + "0fb59058d3aa9663", + "5f6fd378f40e4c81" + ] + ] + }, + { + "id": "69fda60f897db5fd", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "467ec12f292b2573", + "name": "trigger", + "property": "field", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "temperature setpoint", + "vt": "str" + }, + { + "t": "eq", + "v": "indoor temperature", + "vt": "str" + }, + { + "t": "eq", + "v": "outdoor temperature", + "vt": "str" + }, + { + "t": "eq", + "v": "operating mode", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 4, + "x": 280, + "y": 2280, + "wires": [ + [ + "d75bdce71118a56f" + ], + [ + "d75bdce71118a56f" + ], + [ + "d75bdce71118a56f" + ], + [ + "d75bdce71118a56f" + ] + ] + }, + { + "id": "d75bdce71118a56f", + "type": "link call", + "z": "80f2ffd4953c67e9", + "g": "467ec12f292b2573", + "name": "", + "links": [ + "1452439e0c937126" + ], + "linkType": "static", + "timeout": "30", + "x": 530, + "y": 2280, + "wires": [ + [ + "1ed6b5ff63020d07" + ] + ] + }, + { + "id": "5f6fd378f40e4c81", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "467ec12f292b2573", + "name": "thermostat / heat request", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": true, + "complete": "true", + "targetType": "full", + "statusVal": "th.compute", + "statusType": "msg", + "x": 1120, + "y": 2220, + "wires": [] + }, + { + "id": "0fb59058d3aa9663", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "467ec12f292b2573", + "name": "thermostat - update - heat request", + "mode": "link", + "links": [ + "147aa94543fa77cb" + ], + "x": 1025, + "y": 2280, + "wires": [] + }, + { + "id": "0998eafda2346961", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "467ec12f292b2573", + "name": "thermostat - update - heat request", + "links": [ + "be58e8ac1e1b6eb1" + ], + "x": 145, + "y": 2280, + "wires": [ + [ + "69fda60f897db5fd" + ] + ] + }, + { + "id": "a091b2e84a4e89e6", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "6c4b12585b58300e", + "name": "set metric", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "th.bucket", + "tot": "msg" + }, + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "thermostat", + "tot": "str" + }, + { + "t": "delete", + "p": "th", + "pt": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 290, + "y": 3780, + "wires": [ + [ + "34e6817c2f435667", + "9ba0a97276e93540" + ] + ] + }, + { + "id": "34e6817c2f435667", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "6c4b12585b58300e", + "name": "thermostat - metric - output", + "mode": "link", + "links": [ + "206c1fb4a48067df" + ], + "x": 425, + "y": 3780, + "wires": [] + }, + { + "id": "9ba0a97276e93540", + "type": "debug", + "z": "80f2ffd4953c67e9", + "g": "6c4b12585b58300e", + "name": "thermostat - metric - output", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "true", + "targetType": "full", + "statusVal": "", + "statusType": "auto", + "x": 530, + "y": 3720, + "wires": [] + }, + { + "id": "147aa94543fa77cb", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "6c4b12585b58300e", + "name": "thermostat - update - metric", + "links": [ + "0fb59058d3aa9663", + "1ff0b0648a927b0f", + "3bc159f186c762cd", + "502bf87b213069c7", + "92add418b3868c54", + "f9fad454dec37bc7" + ], + "x": 145, + "y": 3780, + "wires": [ + [ + "a091b2e84a4e89e6" + ] + ] + }, + { + "id": "1452439e0c937126", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "7e9cff1699c061ec", + "name": "thermostat - compute heat request", + "links": [], + "x": 135, + "y": 1860, + "wires": [ + [ + "15d8d0ba06961e4b" + ] + ] + }, + { + "id": "15d8d0ba06961e4b", + "type": "function", + "z": "80f2ffd4953c67e9", + "g": "7e9cff1699c061ec", + "name": "thermostat compute heat request", + "func": "var txt = '';\nvar souscalcul = ((msg.th['temperature setpoint'] - msg.th['indoor temperature']) * msg.th['indoor coefficient']) + ((msg.th['indoor temperature'] - msg.th['outdoor temperature']) * msg.th['outdoor coefficient']);\nvar calculb = (souscalcul / 100 * msg.th['cycle time']);\nvar calculc = (msg.th['cycle time'] * msg.th['preheat time'] / 100);\ncalculb = calculb.toFixed(1);\ncalculc = calculc.toFixed(1);\n\n// positive result for heat request\nmsg.th.compute = calculb - calculc;\n\nreturn msg;", + "outputs": 1, + "timeout": "", + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 360, + "y": 1860, + "wires": [ + [ + "4b342483a51b0f93" + ] + ] + }, + { + "id": "4b342483a51b0f93", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "7e9cff1699c061ec", + "name": "thermostat - compute heat request", + "mode": "return", + "links": [], + "x": 575, + "y": 1860, + "wires": [] + }, + { + "id": "d8585174fdd6097c", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat - device", + "links": [], + "x": 135, + "y": 540, + "wires": [ + [ + "a35aaf65004eeaac" + ] + ] + }, + { + "id": "a35aaf65004eeaac", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "bucket", + "property": "bucket", + "propertyType": "msg", + "rules": [ + { + "t": "nempty" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 270, + "y": 540, + "wires": [ + [ + "7f74332e39e8c3b6", + "9c5d6532a1c36bc4", + "5cbb323f0e362aed", + "3b8629192cde74db", + "7c192da441c0e46b", + "82a9ec30d38dec10", + "804a2d1f3c05de7e", + "c170b43fcf7a5bc2", + "9dc49d567806c040", + "db296997eb05a7e3", + "de88d060a6e9ab68", + "4209dce5b520e62e", + "2cda217228ab8a5f", + "8d1ed0f3a77d2bb9", + "c1d7285b5e0a4ef9", + "60a8b6c3b2e72ae2", + "d5cbc2f49e5bcf37", + "a0b0a47a4719edd4", + "11886766f827e1fd", + "e1663eb05a273810", + "c22a1d18683ea7c0" + ] + ] + }, + { + "id": "f61fef9768da8558", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "flow", + "rules": [ + { + "t": "set", + "p": "thermostats[msg.bucket]", + "pt": "flow", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 630, + "y": 600, + "wires": [ + [] + ] + }, + { + "id": "5cbb323f0e362aed", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / confort setpoint / number / 21", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "confort setpoint", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "21", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 540, + "y": 720, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "3b8629192cde74db", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / eco setpoint / number / 19", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "eco setpoint", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "19", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 530, + "y": 780, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "82a9ec30d38dec10", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / operating mode / text / eco", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "operating mode", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "text", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "eco", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 540, + "y": 900, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "9c5d6532a1c36bc4", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / actif / boolean / true", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "actif", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "boolean", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 510, + "y": 660, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "804a2d1f3c05de7e", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / aperture opened / boolean / false", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "aperture opened", + "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": 550, + "y": 960, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "c170b43fcf7a5bc2", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / delayed aperture / boolean / false", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "delayed aperture", + "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": 560, + "y": 1020, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "e1663eb05a273810", + "type": "change", + "z": "80f2ffd4953c67e9", + "d": true, + "g": "81842bf5581a2a3f", + "name": "thermostat / offloading power / number / 500", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading power", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "500", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 550, + "y": 1740, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "60a8b6c3b2e72ae2", + "type": "change", + "z": "80f2ffd4953c67e9", + "d": true, + "g": "81842bf5581a2a3f", + "name": "thermostat / indoor coefficient / number / 50", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "indoor coefficient", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "50", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 550, + "y": 1500, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "d5cbc2f49e5bcf37", + "type": "change", + "z": "80f2ffd4953c67e9", + "d": true, + "g": "81842bf5581a2a3f", + "name": "thermostat / outdoor coefficient / number / 5", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "outdoor coefficient", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "5", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 550, + "y": 1560, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "a0b0a47a4719edd4", + "type": "change", + "z": "80f2ffd4953c67e9", + "d": true, + "g": "81842bf5581a2a3f", + "name": "thermostat / cycle time / number / 60", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "cycle time", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "60", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 530, + "y": 1620, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "11886766f827e1fd", + "type": "change", + "z": "80f2ffd4953c67e9", + "d": true, + "g": "81842bf5581a2a3f", + "name": "thermostat / preheat time / number / 15", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "preheat time", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "15", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 530, + "y": 1680, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "9dc49d567806c040", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / outdoor temperature / number / 20", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "outdoor temperature", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "20", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 560, + "y": 1080, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "db296997eb05a7e3", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / indoor temperature / number / 21", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "indoor temperature", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "21", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 550, + "y": 1140, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "de88d060a6e9ab68", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / heat request / boolean / false", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "heat request", + "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": 540, + "y": 1200, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "4209dce5b520e62e", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / status / text / stopped", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "status", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "text", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "stopped", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 520, + "y": 1260, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "2cda217228ab8a5f", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / offloading / boolean / false", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading", + "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": 530, + "y": 1320, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "7c192da441c0e46b", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / temperature setpoint / number / 19", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "temperature setpoint", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "19", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 560, + "y": 840, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "8d1ed0f3a77d2bb9", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / last pilot / number / 0", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "last pilot", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "0", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 520, + "y": 1380, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "209e2b300932e1ce", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat - device", + "mode": "link", + "links": [ + "bfa594bf1f876c92" + ], + "x": 975, + "y": 540, + "wires": [] + }, + { + "id": "c61e55af251c1588", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "set metric", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "thermostat", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 840, + "y": 540, + "wires": [ + [ + "209e2b300932e1ce" + ] + ] + }, + { + "id": "c1d7285b5e0a4ef9", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "thermostat / offloading count / number / 0", + "rules": [ + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading count", + "tot": "str" + }, + { + "t": "set", + "p": "format", + "pt": "msg", + "to": "number", + "tot": "str" + }, + { + "t": "set", + "p": "default", + "pt": "msg", + "to": "0", + "tot": "num" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 540, + "y": 1440, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "7f74332e39e8c3b6", + "type": "delay", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "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": 450, + "y": 600, + "wires": [ + [ + "f61fef9768da8558" + ] + ] + }, + { + "id": "ea4ed028bce71805", + "type": "comment", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "manage by bucket", + "info": "", + "x": 210, + "y": 1500, + "wires": [] + }, + { + "id": "c22a1d18683ea7c0", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "81842bf5581a2a3f", + "name": "measurement", + "property": "measurement", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "thermostat", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 460, + "y": 540, + "wires": [ + [ + "c61e55af251c1588" + ] + ] + }, + { + "id": "8bbf52c2a83e09ea", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "thermostat - update - outdoor temperature", + "links": [ + "031a6afd8300356a" + ], + "x": 135, + "y": 3960, + "wires": [ + [ + "0a9cb3219b03ca53" + ] + ] + }, + { + "id": "0a9cb3219b03ca53", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "trigger", + "property": "path", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "parking/temperature/probe", + "vt": "str" + }, + { + "t": "eq", + "v": "jardin/temperature/probe", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 2, + "x": 270, + "y": 3960, + "wires": [ + [ + "85f9e2ad24cb8a5a" + ], + [ + "85f9e2ad24cb8a5a" + ] + ] + }, + { + "id": "de7ea9b615e052e6", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "buckets", + "rules": [ + { + "t": "set", + "p": "old_payload", + "pt": "msg", + "to": "payload", + "tot": "msg" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostats", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 680, + "y": 3960, + "wires": [ + [ + "37844601d21c6184" + ] + ] + }, + { + "id": "37844601d21c6184", + "type": "split", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "bucket", + "splt": "\\n", + "spltType": "str", + "arraySplt": 1, + "arraySpltType": "len", + "stream": false, + "addname": "bucket", + "x": 850, + "y": 3960, + "wires": [ + [ + "e3dc3f877be31d77" + ] + ] + }, + { + "id": "e3dc3f877be31d77", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "set metric", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "thermostat", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "outdoor temperature", + "tot": "str" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "old_payload", + "tot": "msg" + }, + { + "t": "set", + "p": "repeat", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1020, + "y": 3960, + "wires": [ + [ + "6fbdfc1ab44f9754" + ] + ] + }, + { + "id": "6fbdfc1ab44f9754", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "thermostat - update - outdoor temperature", + "mode": "link", + "links": [ + "206c1fb4a48067df" + ], + "x": 1155, + "y": 3960, + "wires": [] + }, + { + "id": "85f9e2ad24cb8a5a", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "93075511ad056e6d", + "name": "ponderation", + "rules": [ + { + "t": "set", + "p": "jardin", + "pt": "msg", + "to": "metrics.jardin.temperature.probe", + "tot": "global" + }, + { + "t": "set", + "p": "parking", + "pt": "msg", + "to": "metrics.parking.temperature.probe", + "tot": "global" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$round(($number(msg.jardin)+$number(msg.parking)*2)/3, 1)", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 490, + "y": 3960, + "wires": [ + [ + "de7ea9b615e052e6" + ] + ] + }, + { + "id": "3099e4a17fd21410", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "thermostat - update - indoor temperature", + "links": [ + "031a6afd8300356a" + ], + "x": 135, + "y": 4080, + "wires": [ + [ + "4c169fc26f833802" + ] + ] + }, + { + "id": "a2b07c98d61de126", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "set metric", + "rules": [ + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "thermostat", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "indoor temperature", + "tot": "str" + }, + { + "t": "set", + "p": "repeat", + "pt": "msg", + "to": "true", + "tot": "bool" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1660, + "y": 4080, + "wires": [ + [ + "d09ad27d05d54698" + ] + ] + }, + { + "id": "d09ad27d05d54698", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "thermostat - update - indoor temperature", + "mode": "link", + "links": [ + "206c1fb4a48067df" + ], + "x": 1795, + "y": 4080, + "wires": [] + }, + { + "id": "4c169fc26f833802", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "measurement", + "property": "measurement", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "temperature", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 300, + "y": 4080, + "wires": [ + [ + "a21c6a2db7aeab09" + ] + ] + }, + { + "id": "a21c6a2db7aeab09", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "buckets", + "rules": [ + { + "t": "set", + "p": "old_payload", + "pt": "msg", + "to": "payload", + "tot": "msg" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostats", + "tot": "flow" + }, + { + "t": "set", + "p": "scene.bucket", + "pt": "msg", + "to": "bucket", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 500, + "y": 4080, + "wires": [ + [ + "e2c388ba43ec89f0" + ] + ] + }, + { + "id": "c7d315d762524494", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "exists", + "property": "scene.bucket", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "bucket", + "vt": "msg" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 830, + "y": 4080, + "wires": [ + [ + "9eb8cf78caf3141d" + ] + ] + }, + { + "id": "e2c388ba43ec89f0", + "type": "split", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "bucket", + "splt": "\\n", + "spltType": "str", + "arraySplt": 1, + "arraySpltType": "len", + "stream": false, + "addname": "bucket", + "x": 670, + "y": 4080, + "wires": [ + [ + "c7d315d762524494" + ] + ] + }, + { + "id": "9eb8cf78caf3141d", + "type": "link call", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "", + "links": [ + "ddd39f991efd9d31" + ], + "linkType": "static", + "timeout": "30", + "x": 1030, + "y": 4080, + "wires": [ + [ + "313fbd5fc01985a5" + ] + ] + }, + { + "id": "313fbd5fc01985a5", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "rsp", + "property": "search.response", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 1230, + "y": 4080, + "wires": [ + [ + "b7ffd39578f29c8b" + ] + ] + }, + { + "id": "b7ffd39578f29c8b", + "type": "delay", + "z": "80f2ffd4953c67e9", + "g": "e653f3ec3dc88a8f", + "name": "limit 1 msg / s / topic", + "pauseType": "queue", + "timeout": "5", + "timeoutUnits": "seconds", + "rate": "1", + "nbRateUnits": "1", + "rateUnits": "second", + "randomFirst": "1", + "randomLast": "5", + "randomUnits": "seconds", + "drop": true, + "allowrate": false, + "outputs": 1, + "x": 1440, + "y": 4080, + "wires": [ + [ + "a2b07c98d61de126" + ] + ] + }, + { + "id": "5cb2a229a6fec1aa", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "thermostat - update - offloading", + "links": [ + "031a6afd8300356a" + ], + "x": 135, + "y": 4200, + "wires": [ + [ + "1c4fbd9e3d313b43" + ] + ] + }, + { + "id": "1c4fbd9e3d313b43", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "trigger", + "property": "path", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "system/mode/offloading", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 270, + "y": 4200, + "wires": [ + [ + "e78638ee35b8c069" + ] + ] + }, + { + "id": "2aaf95392a970167", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "mode offloading", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "offloaded", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 880, + "y": 4200, + "wires": [ + [ + "1dd82f8d7e2ccd52" + ] + ] + }, + { + "id": "e78638ee35b8c069", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "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": 450, + "y": 4200, + "wires": [ + [ + "2cb92368cb319c65" + ] + ] + }, + { + "id": "2cb92368cb319c65", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "mode automate", + "property": "metrics.system.mode.automate", + "propertyType": "global", + "rules": [ + { + "t": "eq", + "v": "automatic", + "vt": "str" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 660, + "y": 4200, + "wires": [ + [ + "2aaf95392a970167" + ] + ] + }, + { + "id": "1dd82f8d7e2ccd52", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "thermostats", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostats", + "tot": "flow" + }, + { + "t": "set", + "p": "offloading", + "pt": "flow", + "to": "0", + "tot": "num" + }, + { + "t": "set", + "p": "sort", + "pt": "flow", + "to": "[]", + "tot": "json" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 4200, + "wires": [ + [ + "4b2f0c80863bf5e7" + ] + ] + }, + { + "id": "4b2f0c80863bf5e7", + "type": "split", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "split thermostats", + "splt": "\\n", + "spltType": "str", + "arraySplt": 1, + "arraySpltType": "len", + "stream": false, + "addname": "bucket", + "x": 1300, + "y": 4200, + "wires": [ + [ + "d237415ac7c1b47b" + ] + ] + }, + { + "id": "91ee9f04019a9999", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "load thermostat", + "rules": [ + { + "t": "set", + "p": "th", + "pt": "msg", + "to": "metrics[msg.payload.bucket]thermostat", + "tot": "global" + }, + { + "t": "set", + "p": "th.bucket", + "pt": "msg", + "to": "payload.bucket", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 2900, + "y": 4200, + "wires": [ + [ + "53f044d01f2d18b2" + ] + ] + }, + { + "id": "53f044d01f2d18b2", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "state offloading", + "property": "th.offloading", + "propertyType": "msg", + "rules": [ + { + "t": "false" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 3120, + "y": 4200, + "wires": [ + [ + "db3681610a5d90d9" + ] + ] + }, + { + "id": "2df7aa160cbf3a71", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "set metric", + "rules": [ + { + "t": "set", + "p": "bucket", + "pt": "msg", + "to": "th.bucket", + "tot": "msg" + }, + { + "t": "set", + "p": "measurement", + "pt": "msg", + "to": "thermostat", + "tot": "str" + }, + { + "t": "set", + "p": "field", + "pt": "msg", + "to": "offloading", + "tot": "str" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "true", + "tot": "bool" + }, + { + "t": "set", + "p": "tmp", + "pt": "msg", + "to": "offloading", + "tot": "flow" + }, + { + "t": "set", + "p": "offloading", + "pt": "flow", + "to": "$number(msg.tmp) + 1", + "tot": "jsonata" + }, + { + "t": "delete", + "p": "parts", + "pt": "msg" + }, + { + "t": "delete", + "p": "th", + "pt": "msg" + }, + { + "t": "delete", + "p": "tmp", + "pt": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 3500, + "y": 4200, + "wires": [ + [ + "7869c56dce3123ed" + ] + ] + }, + { + "id": "db3681610a5d90d9", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "state pilot", + "property": "th.pilot", + "propertyType": "msg", + "rules": [ + { + "t": "true" + } + ], + "checkall": "false", + "repair": false, + "outputs": 1, + "x": 3320, + "y": 4200, + "wires": [ + [ + "2df7aa160cbf3a71" + ] + ] + }, + { + "id": "7869c56dce3123ed", + "type": "link out", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "thermostat - update - offloading", + "mode": "link", + "links": [ + "206c1fb4a48067df" + ], + "x": 3635, + "y": 4200, + "wires": [] + }, + { + "id": "ea0c6cadf1d594c3", + "type": "delay", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "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": 2530, + "y": 4200, + "wires": [ + [ + "285a0091abda1f58" + ] + ] + }, + { + "id": "285a0091abda1f58", + "type": "switch", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "limit", + "property": "offloading", + "propertyType": "flow", + "rules": [ + { + "t": "lt", + "v": "2", + "vt": "num" + } + ], + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 2710, + "y": 4200, + "wires": [ + [ + "91ee9f04019a9999" + ] + ] + }, + { + "id": "96e92d4bad3792d3", + "type": "split", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "", + "splt": "\\n", + "spltType": "str", + "arraySplt": 1, + "arraySpltType": "len", + "stream": false, + "addname": "", + "x": 2350, + "y": 4200, + "wires": [ + [ + "ea0c6cadf1d594c3" + ] + ] + }, + { + "id": "3de9c88ac7ce9a77", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "sort offloading count", + "rules": [ + { + "t": "set", + "p": "sort", + "pt": "msg", + "to": "sort", + "tot": "flow" + }, + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "$sort(msg.sort, function($l, $r) {\t $l.nb > $r.nb\t})", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 2140, + "y": 4200, + "wires": [ + [ + "96e92d4bad3792d3" + ] + ] + }, + { + "id": "6e120320180e5cfd", + "type": "join", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "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": 1730, + "y": 4200, + "wires": [ + [ + "808426e9258cd024" + ] + ] + }, + { + "id": "d237415ac7c1b47b", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "name": "get offloading count", + "rules": [ + { + "t": "set", + "p": "tmp", + "pt": "msg", + "to": "metrics[msg.bucket]thermostat['offloading count']", + "tot": "global" + }, + { + "t": "set", + "p": "sort[msg.parts.index]", + "pt": "flow", + "to": "{\t \"bucket\":msg.bucket,\t \"nb\":msg.tmp\t }", + "tot": "jsonata" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1530, + "y": 4200, + "wires": [ + [ + "6e120320180e5cfd" + ] + ] + }, + { + "id": "808426e9258cd024", + "type": "delay", + "z": "80f2ffd4953c67e9", + "g": "6f1f772c23d57e24", + "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": 1910, + "y": 4200, + "wires": [ + [ + "3de9c88ac7ce9a77" + ] + ] + }, + { + "id": "659f9752db0967bc", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "indoor temperature", + "label": "Température intèrieur", + "tooltip": "", + "order": 2, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "indoor temperature", + "topicType": "str", + "thumbLabel": true, + "min": 0, + "max": "30", + "step": 1, + "className": "", + "x": 870, + "y": 4440, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "9caafb8c1719d275", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "outdoor temperature", + "label": "Température extèrieur", + "tooltip": "", + "order": 4, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "outdoor temperature", + "topicType": "str", + "thumbLabel": true, + "min": 0, + "max": "30", + "step": 1, + "className": "", + "x": 880, + "y": 4560, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "515b0c184c8a3628", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "temperature setpoint", + "label": "Température consigne", + "tooltip": "", + "order": 1, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "temperature setpoint", + "topicType": "str", + "thumbLabel": true, + "min": 0, + "max": "30", + "step": 1, + "className": "", + "x": 880, + "y": 4380, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "13697bbd73295b46", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "indoor coefficient", + "label": "Coefficient intèrieur", + "tooltip": "", + "order": 3, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "indoor coefficient", + "topicType": "str", + "thumbLabel": true, + "min": "1", + "max": "200", + "step": 1, + "className": "", + "x": 870, + "y": 4500, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "c6fdc57a80266f04", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "preheat time", + "label": "Temps de chauffe", + "tooltip": "", + "order": 7, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "preheat time", + "topicType": "str", + "thumbLabel": true, + "min": "5", + "max": "60", + "step": "5", + "className": "", + "x": 850, + "y": 4740, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "b7bc73260cea8570", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "cycle time", + "label": "Temps de cycle", + "tooltip": "", + "order": 6, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "cycle time", + "topicType": "str", + "thumbLabel": true, + "min": "5", + "max": "90", + "step": "5", + "className": "", + "x": 840, + "y": 4680, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "d60c017a8962d3f8", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "field", + "rules": [ + { + "t": "set", + "p": "th", + "pt": "msg", + "to": "thermostattest", + "tot": "flow" + }, + { + "t": "set", + "p": "th[msg.topic]", + "pt": "msg", + "to": "payload", + "tot": "msg" + }, + { + "t": "set", + "p": "thermostattest", + "pt": "flow", + "to": "th", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1090, + "y": 4380, + "wires": [ + [ + "6e4f87c323cc4659" + ] + ] + }, + { + "id": "dc37631fe73fce2a", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "reset", + "rules": [ + { + "t": "set", + "p": "th", + "pt": "msg", + "to": "{\t 'indoor temperature':20,\t 'outdoor temperature':20,\t 'temperature setpoint':20,\t 'indoor coefficient':5,\t 'outdoor coefficient':5,\t 'preheat time':10,\t 'cycle time':30\t }", + "tot": "jsonata" + }, + { + "t": "set", + "p": "thermostattest", + "pt": "flow", + "to": "th", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 330, + "y": 4320, + "wires": [ + [ + "67e91e753d3708e2", + "6e4f87c323cc4659" + ] + ] + }, + { + "id": "c932311ec07112b5", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['indoor temperature']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4440, + "wires": [ + [ + "659f9752db0967bc" + ] + ] + }, + { + "id": "67e91e753d3708e2", + "type": "delay", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "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": 500, + "y": 4380, + "wires": [ + [ + "c932311ec07112b5", + "f974a627497b4b7d", + "f81152d8df61c845", + "bc4771242d5d3bd8", + "135b7546018ecfba", + "6bf593bd1612dbde", + "64405bce10cccde1" + ] + ] + }, + { + "id": "a86e51fee3e3458d", + "type": "link in", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "thermostat - ui - test", + "links": [], + "x": 135, + "y": 4320, + "wires": [ + [ + "dc37631fe73fce2a" + ] + ] + }, + { + "id": "f974a627497b4b7d", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['outdoor temperature']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4560, + "wires": [ + [ + "9caafb8c1719d275" + ] + ] + }, + { + "id": "809635d5f2efc402", + "type": "ui-button", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "reset", + "label": "RAZ", + "order": 8, + "width": "6", + "height": "1", + "tooltip": "", + "color": "", + "bgcolor": "", + "className": "", + "icon": "", + "iconPosition": "left", + "payload": "", + "payloadType": "str", + "topic": "topic", + "topicType": "msg", + "x": 170, + "y": 4380, + "wires": [ + [ + "dc37631fe73fce2a" + ] + ] + }, + { + "id": "c9291360c0f0b490", + "type": "ui-text", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "order": 9, + "width": "6", + "height": "1", + "name": "calcul", + "label": "Résultat", + "format": "{{msg.payload}}", + "layout": "row-spread", + "style": false, + "font": "", + "fontSize": 16, + "color": "#717171", + "className": "", + "x": 1770, + "y": 4320, + "wires": [] + }, + { + "id": "f10733a435dc7390", + "type": "ui-slider", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "group": "75a98516fdcdf832", + "name": "outdoor coefficient", + "label": "Coefficient extèrieur", + "tooltip": "", + "order": 5, + "width": "6", + "height": "1", + "passthru": false, + "outs": "end", + "topic": "outdoor coefficient", + "topicType": "str", + "thumbLabel": true, + "min": "1", + "max": "200", + "step": 1, + "className": "", + "x": 870, + "y": 4620, + "wires": [ + [ + "d60c017a8962d3f8" + ] + ] + }, + { + "id": "f81152d8df61c845", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['temperature setpoint']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4380, + "wires": [ + [ + "515b0c184c8a3628" + ] + ] + }, + { + "id": "bc4771242d5d3bd8", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['indoor coefficient']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4500, + "wires": [ + [ + "13697bbd73295b46" + ] + ] + }, + { + "id": "135b7546018ecfba", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['outdoor coefficient']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4620, + "wires": [ + [ + "f10733a435dc7390" + ] + ] + }, + { + "id": "6bf593bd1612dbde", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['preheat time']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4740, + "wires": [ + [ + "c6fdc57a80266f04" + ] + ] + }, + { + "id": "64405bce10cccde1", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "topic", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "thermostattest['cycle time']", + "tot": "flow" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 4680, + "wires": [ + [ + "b7bc73260cea8570" + ] + ] + }, + { + "id": "bf5b9cb6fe9e3550", + "type": "change", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "payload", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "th.compute", + "tot": "msg" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1600, + "y": 4320, + "wires": [ + [ + "c9291360c0f0b490" + ] + ] + }, + { + "id": "6e4f87c323cc4659", + "type": "link call", + "z": "80f2ffd4953c67e9", + "g": "c3cbb2a2dd06d1bb", + "name": "", + "links": [ + "1452439e0c937126" + ], + "linkType": "static", + "timeout": "30", + "x": 1340, + "y": 4320, + "wires": [ + [ + "bf5b9cb6fe9e3550" + ] + ] + } +] \ No newline at end of file diff --git a/flows/K.Translate.json b/flows/K.Translate.json index bd877c6..69382be 100644 --- a/flows/K.Translate.json +++ b/flows/K.Translate.json @@ -73,7 +73,8 @@ "11f433c750eb1ef0", "6d85ed8e8c797a61", "882064c17728eabc", - "3c7edb67cf24ba2a" + "3c7edb67cf24ba2a", + "34adf50fcd75d48d" ], "x": 94, "y": 379, @@ -362,7 +363,9 @@ [ "35482cea99bb8930" ], - [], + [ + "34adf50fcd75d48d" + ], [ "5a20016530ef7456" ], @@ -1505,5 +1508,33 @@ "0649e79192cac511" ] ] + }, + { + "id": "34adf50fcd75d48d", + "type": "change", + "z": "bac2b08cd7c2e421", + "g": "c25adeeb66986f83", + "name": "lamp", + "rules": [ + { + "t": "set", + "p": "trans", + "pt": "msg", + "to": "lampe", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 670, + "y": 620, + "wires": [ + [ + "71a537d09616f957" + ] + ] } ] \ No newline at end of file diff --git a/flows/Kernel.json b/flows/Kernel.json index 889de25..55b8fce 100644 --- a/flows/Kernel.json +++ b/flows/Kernel.json @@ -5659,7 +5659,12 @@ "7e386532c9061f5e", "8a93715d93e96ec9", "be031b830d435b36", - "11474b42d0af96e8" + "11474b42d0af96e8", + "11cf1061a2c539a1", + "266e831763ed3b77", + "8bbf52c2a83e09ea", + "3099e4a17fd21410", + "5cb2a229a6fec1aa" ], "x": 5195, "y": 1260, @@ -5690,7 +5695,13 @@ "9a7fb4052f4efa9d", "a97c1309cdf39d94", "d16064888745aca6", - "3d7533b312eee22a" + "3d7533b312eee22a", + "884976027c7e86a2", + "cfeaa3a9e12b40eb", + "34e6817c2f435667", + "6fbdfc1ab44f9754", + "d09ad27d05d54698", + "7869c56dce3123ed" ], "x": 135, "y": 1260, @@ -6610,7 +6621,9 @@ "e6ea054f0c263d05", "2a688b0630f5cca4", "c726ae1ce799b0e5", - "b943866ac0bfd44c" + "b943866ac0bfd44c", + "ece815da9a3e1dab", + "209e2b300932e1ce" ], "x": 135, "y": 780, @@ -6977,7 +6990,9 @@ "ef0d3b8996ec469c", "804c8129107645c1", "05787fb2b77146c8", - "5d277429bd835728" + "5d277429bd835728", + "5c64177e3bbfd337", + "c13917bf46188642" ], "x": 2075, "y": 600,