smort

allflows14.06.19

Jun 14th, 2019
1,931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.36 KB | None | 0 0
  1. [{"id":"368c6b12.3ae6f4","type":"tab","label":"Brucontrol interface","disabled":false,"info":""},{"id":"b875ee30.c832a","type":"tab","label":"Brewfather","disabled":false,"info":""},{"id":"36bfb87c.45c688","type":"ui_tab","z":"","name":"Home","icon":"dashboard"},{"id":"e15967f2.8aa848","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"53952ee.261c7d","type":"ui_group","z":"","name":"Default","tab":"36bfb87c.45c688","disp":true,"width":"6","collapse":false},{"id":"5ac206be.5d039","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"9edff3bb.b16508","type":"ui_group","z":"","name":"Quick Start","tab":"58530ee0.1b49a","order":1,"disp":true,"width":"6"},{"id":"26e66f00.0e026a","type":"ui_group","z":"","name":"1","tab":"aec18eab.8f8ba","order":1,"disp":false,"width":"6"},{"id":"a82cb656.4c564","type":"ui_group","z":"","name":"5","tab":"aec18eab.8f8ba","order":5,"disp":false,"width":"6"},{"id":"6d5031.1803bfd","type":"ui_group","z":"","name":"6","tab":"aec18eab.8f8ba","order":6,"disp":false,"width":"6"},{"id":"8419d9ad.04149","type":"ui_group","z":"","name":"Cloud Settings","tab":"58530ee0.1b49a","order":2,"disp":true,"width":"6"},{"id":"8b1fc422.6b6a","type":"ui_group","z":"","name":"2","tab":"aec18eab.8f8ba","order":2,"disp":false,"width":"6"},{"id":"bde78433.ab2a7","type":"ui_group","z":"","name":"3","tab":"aec18eab.8f8ba","order":3,"disp":false,"width":"6"},{"id":"732f52c8.059224","type":"ui_group","z":"","name":"Set SG Calibration Points (SG only)","tab":"6362a235.fa6c14","order":2,"disp":true,"width":"6"},{"id":"cf19fe6d.174f68","type":"ui_group","z":"","name":"4","tab":"aec18eab.8f8ba","order":4,"disp":false,"width":"6"},{"id":"db42f5c3.465fe","type":"ui_group","z":"","name":"8","tab":"aec18eab.8f8ba","order":8,"disp":false,"width":"6"},{"id":"c523384e.87b468","type":"ui_group","z":"","name":"7","tab":"aec18eab.8f8ba","order":7,"disp":false,"width":"6"},{"id":"4280c272.dc40a4","type":"ui_group","z":"","name":"Tilt Pi Settings","tab":"58530ee0.1b49a","order":3,"disp":true,"width":"6"},{"id":"6a4e96a1.def97","type":"ui_group","z":"","name":"Calibrate","tab":"6362a235.fa6c14","order":1,"disp":true,"width":"6"},{"id":"4700f23d.fc3014","type":"ui_group","z":"","name":"Time","tab":"a4ec8385.ca04c","order":1,"disp":true,"width":"6"},{"id":"ea439d75.8a5518","type":"ui_group","z":"","name":"App Admin (Tilt Pi v.2.1)","tab":"a4ec8385.ca04c","order":4,"disp":true,"width":"6"},{"id":"58530ee0.1b49a","type":"ui_tab","z":"","name":"Logging","icon":"fa-line-chart","order":2},{"id":"aec18eab.8f8ba","type":"ui_tab","z":"","name":"Tilt Pi","icon":"fa-tachometer","order":1},{"id":"6362a235.fa6c14","type":"ui_tab","z":"","name":"Calibration","icon":"fa-bullseye","order":3},{"id":"a4ec8385.ca04c","type":"ui_tab","z":"","name":"System","icon":"fa-clock-o","order":4},{"id":"9315fa32.11f5f","type":"ui_group","z":"","name":"Set Temp. Calibration Points","tab":"6362a235.fa6c14","order":4,"disp":true,"width":"6"},{"id":"e785b8ea.d2b88","type":"ui_group","z":"","name":"Tilt Pi Display Units","tab":"a4ec8385.ca04c","order":2,"disp":true,"width":"6"},{"id":"3be35859.8053","type":"ui_group","z":"","name":"Raspberry Pi","tab":"a4ec8385.ca04c","order":5,"disp":false,"width":"6"},{"id":"ceaf908d.093478","type":"ui_group","z":"","name":"Filter Tilt by Signal Strength","tab":"a4ec8385.ca04c","order":3,"disp":true,"width":"6"},{"id":"be0f7430.630eb8","type":"ui_link","z":"","name":"Tilt Shop","link":"http://tilthydrometer.com","icon":"open_in_browser","target":"newtab","order":5},{"id":"c55602d6.eaeb","type":"tcp out","z":"368c6b12.3ae6f4","host":"","port":"","beserver":"reply","base64":false,"end":false,"name":"To BC","x":890,"y":960,"wires":[]},{"id":"184f78d8.bc7917","type":"tcp in","z":"368c6b12.3ae6f4","name":"From BC","server":"server","host":"","port":"5000","datamode":"stream","datatype":"utf8","newline":"","topic":"","base64":false,"x":60,"y":980,"wires":[["30344b49.8fc444","bf63d504.758de8","12fa773.1516589","3d95c515.4187ba"]]},{"id":"58408118.db1018","type":"change","z":"368c6b12.3ae6f4","name":"200","rules":[{"t":"set","p":"payload","pt":"msg","to":"$floor(msg.payload.DS18B20.Temperature*100)","tot":"jsonata"},{"t":"set","p":"200","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"200","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":360,"wires":[["bd38150b.8dce8"]]},{"id":"a59001c4.2a4dd8","type":"inject","z":"368c6b12.3ae6f4","name":"Analog in","topic":"","payload":"123454","payloadType":"str","repeat":"1","crontab":"","once":true,"onceDelay":0.1,"x":1290,"y":40,"wires":[["b0c20f16.72267","207eb92c.a0628e","bb1d0f05.8b5a1","b37ccddf.7e07e8","4ffb02eb.00b7e4","5c26e7ae.dbbbc8","c81efba0.ad7af","b0e036ed.603da","8fde4d20.605de8","8dae0381.0d3e88","a2415a34.ffb258","7b444078.c3d5e8","e6597cbd.540898","16b984b7.5d2e03","8ec2878e.8ec66","488de313.1b02c4","1304aef1.250359","7fa9d5c6.5a2f74","1dd513db.bd8f44","32acbddb.48c02a","89dedeff.3a83b8"]]},{"id":"1304aef1.250359","type":"change","z":"368c6b12.3ae6f4","name":"100","rules":[{"t":"set","p":"100","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":160,"wires":[[]]},{"id":"8dae0381.0d3e88","type":"change","z":"368c6b12.3ae6f4","name":"205","rules":[{"t":"set","p":"205","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1670,"y":40,"wires":[[]]},{"id":"a2415a34.ffb258","type":"change","z":"368c6b12.3ae6f4","name":"206","rules":[{"t":"set","p":"206","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1670,"y":160,"wires":[[]]},{"id":"7b444078.c3d5e8","type":"change","z":"368c6b12.3ae6f4","name":"207","rules":[{"t":"set","p":"207","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1670,"y":200,"wires":[[]]},{"id":"e6597cbd.540898","type":"change","z":"368c6b12.3ae6f4","name":"208","rules":[{"t":"set","p":"208","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1670,"y":240,"wires":[[]]},{"id":"16b984b7.5d2e03","type":"change","z":"368c6b12.3ae6f4","name":"209","rules":[{"t":"set","p":"209","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1670,"y":280,"wires":[[]]},{"id":"b0c20f16.72267","type":"change","z":"368c6b12.3ae6f4","name":"101","rules":[{"t":"set","p":"101","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":200,"wires":[[]]},{"id":"207eb92c.a0628e","type":"change","z":"368c6b12.3ae6f4","name":"102","rules":[{"t":"set","p":"102","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":240,"wires":[[]]},{"id":"bb1d0f05.8b5a1","type":"change","z":"368c6b12.3ae6f4","name":"103","rules":[{"t":"set","p":"103","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":280,"wires":[[]]},{"id":"b37ccddf.7e07e8","type":"change","z":"368c6b12.3ae6f4","name":"104","rules":[{"t":"set","p":"104","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":320,"wires":[[]]},{"id":"4ffb02eb.00b7e4","type":"change","z":"368c6b12.3ae6f4","name":"105","rules":[{"t":"set","p":"105","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":360,"wires":[[]]},{"id":"5c26e7ae.dbbbc8","type":"change","z":"368c6b12.3ae6f4","name":"106","rules":[{"t":"set","p":"106","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":400,"wires":[[]]},{"id":"c81efba0.ad7af","type":"change","z":"368c6b12.3ae6f4","name":"107","rules":[{"t":"set","p":"107","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":440,"wires":[[]]},{"id":"b0e036ed.603da","type":"change","z":"368c6b12.3ae6f4","name":"108","rules":[{"t":"set","p":"108","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":480,"wires":[[]]},{"id":"8fde4d20.605de8","type":"change","z":"368c6b12.3ae6f4","name":"109","rules":[{"t":"set","p":"109","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":520,"wires":[[]]},{"id":"8ec2878e.8ec66","type":"change","z":"368c6b12.3ae6f4","name":"110","rules":[{"t":"set","p":"110","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":160,"wires":[[]]},{"id":"488de313.1b02c4","type":"change","z":"368c6b12.3ae6f4","name":"111","rules":[{"t":"set","p":"111","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":200,"wires":[[]]},{"id":"7fa9d5c6.5a2f74","type":"change","z":"368c6b12.3ae6f4","name":"112","rules":[{"t":"set","p":"112","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":240,"wires":[[]]},{"id":"1dd513db.bd8f44","type":"change","z":"368c6b12.3ae6f4","name":"113","rules":[{"t":"set","p":"113","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":280,"wires":[[]]},{"id":"32acbddb.48c02a","type":"change","z":"368c6b12.3ae6f4","name":"114","rules":[{"t":"set","p":"114","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":320,"wires":[[]]},{"id":"89dedeff.3a83b8","type":"change","z":"368c6b12.3ae6f4","name":"115","rules":[{"t":"set","p":"115","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":360,"wires":[[]]},{"id":"415da8a3.e66638","type":"http in","z":"b875ee30.c832a","name":"","url":"/brewfather","method":"post","upload":false,"swaggerDoc":"","x":80,"y":20,"wires":[["7d6a6687.0b59a8","aa6f2be3.727528","732dcc4f.60ca64"]]},{"id":"7d6a6687.0b59a8","type":"function","z":"b875ee30.c832a","name":"BF to BC","func":"flow.set('recipe' , msg.payload.recipe.fermentation)\nflow.set('fbeername' , msg.payload.recipe.name)\n\n\nfunction time_convert(num)\n { \n var hours = Math.floor(num / 60); \n var minutes = num % 60;\n return + hours + \":\" + minutes + \":00\"; \n}\n\nvar hopstand\nvar hopstandtemp\nif (msg.payload.recipe.hopStandMinutes > 0) {\n hopstand = true\n hopstandtemp = msg.payload.recipe.avgWeightedHopstandTemp\n}\nelse {\n hopstandtemp = 0\n hopstand = false\n}\n\nvar firstwort\nif (msg.payload.recipe.hops[0].use == \"First Wort\") {\n firstwort = true\n} \nelse {\n firstwort = false\n}\n\n\nvar hoptime=[];\nfor(var x=0;x<msg.payload.boilStepsCount;x++){\n hoptime[x]= msg.payload.recipe.hops[x].time;\n }\nhoptime.push(0,0,0,0,0,0,0,0,0,0);\nhoptime.length = 10\n\nvar mashtime=[];\nfor(var y=0;y<msg.payload.mashStepsCount;y++){\n mashtime[y]= msg.payload.recipe.mash.steps[y].stepTime;\n }\nmashtime.push(0,0,0,0,0);\nmashtime.length = 5\n\nvar mashsteps = msg.payload.mashStepsCount - 1;\nvar mashtemp=[];\nfor(var z=0;z<msg.payload.mashStepsCount;z++){\n mashtemp[z]= msg.payload.recipe.mash.steps[z].stepTemp;\n }\nmashtemp.push(mashtemp[mashsteps], mashtemp[mashsteps], mashtemp[mashsteps], mashtemp[mashsteps], mashtemp[mashsteps], mashtemp[mashsteps])\nmashtemp.length = 6\n\nmsg.payload = [ \n\n{ \"Name\": \"Preboil volume\", \"Value\": msg.payload.recipe.boilSize } , \n{ \"Name\": \"HLT volume\" , \"Value\": msg.payload.recipe.data.hltWaterAmount } , \n{ \"Name\": \"Sparge volume\" , \"Value\": msg.payload.recipe.data.spargeWaterAmount } , \n{ \"Name\": \"Strike temp\" , \"Value\": msg.payload.recipe.data.strikeTemp } , \n{ \"Name\": \"Mash volume\" , \"Value\": msg.payload.recipe.data.mashWaterAmount } , \n{ \"Name\": \"Mash temp\" , \"Value\": mashtemp[0] } ,\n{ \"Name\": \"Mash temp1\" , \"Value\": mashtemp[1] } , \n{ \"Name\": \"Mash temp2\" , \"Value\": mashtemp[2] } ,\n{ \"Name\": \"Mash temp3\" , \"Value\": mashtemp[3] } ,\n{ \"Name\": \"Mash temp4\" , \"Value\": mashtemp[4] } ,\n{ \"Name\": \"Mash temp5\" , \"Value\": mashtemp[5] } ,\n{ \"Name\": \"Mash time1\" , \"Value\": time_convert(mashtime[0]) } ,\n{ \"Name\": \"Mash time2\" , \"Value\": time_convert(mashtime[1]) } ,\n{ \"Name\": \"Mash time3\" , \"Value\": time_convert(mashtime[2]) } ,\n{ \"Name\": \"Mash time4\" , \"Value\": time_convert(mashtime[3]) } ,\n{ \"Name\": \"Mash time5\" , \"Value\": time_convert(mashtime[4]) } ,\n{ \"Name\": \"Hop time0\" , \"Value\": time_convert(hoptime[0]) } ,\n{ \"Name\": \"Hop time1\" , \"Value\": time_convert(hoptime[1]) } ,\n{ \"Name\": \"Hop time2\" , \"Value\": time_convert(hoptime[2]) } ,\n{ \"Name\": \"Hop time3\" , \"Value\": time_convert(hoptime[3]) } ,\n{ \"Name\": \"Hop time4\" , \"Value\": time_convert(hoptime[4]) } ,\n{ \"Name\": \"Hop time5\" , \"Value\": time_convert(hoptime[5]) } ,\n{ \"Name\": \"Hop time6\" , \"Value\": time_convert(hoptime[7]) } ,\n{ \"Name\": \"Hop time8\" , \"Value\": time_convert(hoptime[8]) } ,\n{ \"Name\": \"Hop time9\" , \"Value\": time_convert(hoptime[9]) } ,\n{ \"Name\": \"Boil time\" , \"Value\": time_convert(msg. payload.recipe.boilTime) } ,\n{ \"Name\": \"Hopstand temp\" , \"Value\": hopstandtemp } ,\n{ \"Name\": \"First wort\" , \"Value\": firstwort } ,\n{ \"Name\": \"Recipe received\" , \"Value\": msg.payload._timestamp } ,\n{ \"Name\": \"Status\" , \"Value\": msg.payload.recipe.name }\n\n];\n\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":20,"wires":[["72236c7c.855b24"]]},{"id":"72236c7c.855b24","type":"http request","z":"b875ee30.c832a","name":"","method":"PUT","ret":"txt","paytoqs":false,"url":"http://192.168.77.246:8000/globals","tls":"","proxy":"","authType":"basic","x":450,"y":20,"wires":[[]]},{"id":"58479622.81d7a","type":"http in","z":"b875ee30.c832a","name":"","url":"/Fermenter","method":"get","upload":false,"swaggerDoc":"","x":80,"y":60,"wires":[["a021ade4.3d4dd"]]},{"id":"aa6f2be3.727528","type":"http response","z":"b875ee30.c832a","name":"","statusCode":"200","headers":{},"x":440,"y":60,"wires":[]},{"id":"a021ade4.3d4dd","type":"function","z":"b875ee30.c832a","name":"Fermenter","func":"msg.payload = [flow.get('recipe'),flow.get('fbeername')]\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":60,"wires":[["aa6f2be3.727528"]]},{"id":"db6d2933.986498","type":"tcp in","z":"b875ee30.c832a","name":"F1","server":"server","host":"","port":"8886","datamode":"single","datatype":"utf8","newline":"","topic":"F1","base64":false,"x":50,"y":140,"wires":[["f254039a.b45ca"]]},{"id":"f254039a.b45ca","type":"json","z":"b875ee30.c832a","name":"","property":"payload","action":"obj","pretty":false,"x":170,"y":140,"wires":[["bbbd6559.b57ea8"]]},{"id":"ce616d18.fef93","type":"mqtt out","z":"368c6b12.3ae6f4","name":"Fcool2 ctrl","topic":"cmnd/Fcool/POWER2","qos":"","retain":"","broker":"e15967f2.8aa848","x":550,"y":100,"wires":[]},{"id":"137d5803.f2199","type":"switch","z":"368c6b12.3ae6f4","name":"Out","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"},{"t":"eq","v":"11","vt":"str"},{"t":"eq","v":"12","vt":"str"},{"t":"eq","v":"13","vt":"str"},{"t":"eq","v":"14","vt":"str"},{"t":"eq","v":"15","vt":"str"},{"t":"eq","v":"16","vt":"str"},{"t":"eq","v":"17","vt":"str"},{"t":"eq","v":"18","vt":"str"},{"t":"eq","v":"19","vt":"str"},{"t":"eq","v":"20","vt":"str"},{"t":"eq","v":"21","vt":"str"},{"t":"eq","v":"22","vt":"str"},{"t":"eq","v":"23","vt":"str"}],"checkall":"true","repair":false,"outputs":23,"x":70,"y":180,"wires":[[],[],[],["e42edb68.196658"],[],["37cafdb7.480942"],["6dbf619f.2144a"],["f3ed6fc1.a6822"],[],[],["1b20fa56.8799b6","ce7072ee.32213"],[],[],[],[],["50ba9255.e3055c","3b0f82a9.baa34e"],["1a92a509.fb0a9b","70edf285.a9824c"],[],[],[],[],[],[]]},{"id":"179a0b7d.e3dee5","type":"mqtt out","z":"368c6b12.3ae6f4","name":"Fcool1 ctrl","topic":"cmnd/Fcool/POWER1","qos":"","retain":"","broker":"e15967f2.8aa848","x":550,"y":60,"wires":[]},{"id":"75807430.88109c","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Cooler temp","topic":"tele/cooler/SENSOR","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":730,"y":360,"wires":[["375bb888.d87dd8"]]},{"id":"375bb888.d87dd8","type":"json","z":"368c6b12.3ae6f4","name":"","property":"payload","action":"","pretty":false,"x":870,"y":360,"wires":[["58408118.db1018","21316851.1b579"]]},{"id":"d4df721b.34af","type":"mqtt out","z":"368c6b12.3ae6f4","name":"Cooler ctrl","topic":"cmnd/cooler/POWER","qos":"","retain":"","broker":"e15967f2.8aa848","x":550,"y":320,"wires":[]},{"id":"e38efb94.440698","type":"mqtt out","z":"368c6b12.3ae6f4","name":"4ch L1","topic":"cmnd/4ch/POWER1","qos":"","retain":"","broker":"e15967f2.8aa848","x":570,"y":20,"wires":[]},{"id":"9762d994.361d98","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Freezer temp","topic":"tele/freezer/SENSOR","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":730,"y":320,"wires":[["9696e940.76b2a8"]]},{"id":"9696e940.76b2a8","type":"json","z":"368c6b12.3ae6f4","name":"","property":"payload","action":"","pretty":false,"x":870,"y":320,"wires":[["2a6686fe.5791d2","21316851.1b579"]]},{"id":"2be0985d.8818e8","type":"mqtt out","z":"368c6b12.3ae6f4","name":"Freezer ctrl","topic":"cmnd/freezer/POWER","qos":"","retain":"","broker":"e15967f2.8aa848","x":550,"y":220,"wires":[]},{"id":"82506c1e.0ab398","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Cooler feedback","topic":"stat/cooler/POWER","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":220,"wires":[["8c0b2cbd.f5a0f8","21316851.1b579"]]},{"id":"8c0b2cbd.f5a0f8","type":"change","z":"368c6b12.3ae6f4","name":"16","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"16","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":220,"wires":[[]]},{"id":"e408cd4e.20e708","type":"mqtt in","z":"368c6b12.3ae6f4","name":"4ch L1 feedback","topic":"stat/4ch/POWER1","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":20,"wires":[["3685d214.b48a06","21316851.1b579"]]},{"id":"3685d214.b48a06","type":"change","z":"368c6b12.3ae6f4","name":"4","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"4","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":20,"wires":[[]]},{"id":"ad8f13fc.951b98","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Fcool1 feedback","topic":"stat/Fcool/POWER1","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":60,"wires":[["ae355df.1b1aca","21316851.1b579"]]},{"id":"ae355df.1b1aca","type":"change","z":"368c6b12.3ae6f4","name":"6","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"6","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":60,"wires":[[]]},{"id":"ffd9d1cf.8dec88","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Fcool2 feedback","topic":"stat/Fcool/POWER2","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":100,"wires":[["f9936e54.d6d5a8","21316851.1b579"]]},{"id":"f9936e54.d6d5a8","type":"change","z":"368c6b12.3ae6f4","name":"7","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"7","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":100,"wires":[[]]},{"id":"306509fc.3b5c5e","type":"rbe","z":"368c6b12.3ae6f4","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":730,"y":920,"wires":[["137d5803.f2199"]]},{"id":"2a6686fe.5791d2","type":"change","z":"368c6b12.3ae6f4","name":"201","rules":[{"t":"set","p":"payload","pt":"msg","to":"$floor(msg.payload.DS18B20.Temperature*100)\t","tot":"jsonata"},{"t":"set","p":"201","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"201","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":320,"wires":[["bd38150b.8dce8"]]},{"id":"c4fc07f7.b802","type":"change","z":"368c6b12.3ae6f4","name":"11","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"11","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":180,"wires":[[]]},{"id":"5ef1bfff.454408","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Freezer feedback","topic":"stat/freezer/POWER","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":180,"wires":[["c4fc07f7.b802","21316851.1b579"]]},{"id":"bd38150b.8dce8","type":"function","z":"368c6b12.3ae6f4","name":"Hysteresis","func":"var port = msg.topic\nvar value = msg.payload\nvar delay;\nvar flush = {};\nvar coolmode;\nvar output;\nvar on;\nvar off;\nvar pin = flow.get(String(port)+\"pin\")\nvar target = flow.get(String(port)+\"target\")\nvar onoffset = flow.get(String(port)+\"onoffset\")\nvar cooling = flow.get(String(pin));\nvar activelow = flow.get(String(port)+\"activelow\")\nvar ondelay = flow.get(String(port)+\"ondelay\")\n\nif (activelow === 1) {\n on = 0\n off = 1\n}\nelse {\n on = 1\n off = 0\n}\n\nif (onoffset > target) {\n coolmode = true\n}\n\nif (value >= onoffset && coolmode === true){\noutput = on\n}\nif (value <= onoffset && value > target && cooling === 1 && coolmode === true) {\n output = on \n}\nif (value <= target && coolmode === true){\n output = off\nmsg.flush = flush\nnode.send(msg.flush)\n}\n\nif (flow.get(String(pin)+\"disabled\") === 1) {\noutput = off\nmsg.flush = flush\nnode.send(msg.flush)\n}\n\nmsg.topic = pin\nmsg.payload = output\nmsg.delay = ondelay\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":940,"wires":[["306509fc.3b5c5e"]]},{"id":"1cb68ce9.48f553","type":"mqtt out","z":"368c6b12.3ae6f4","name":"Steam ctrl","topic":"cmnd/steam/POWER","qos":"","retain":"","broker":"e15967f2.8aa848","x":550,"y":140,"wires":[]},{"id":"855a522c.a10c1","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Steam feedback","topic":"stat/steam/POWER","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":140,"wires":[["2c750a9c.0ca526","21316851.1b579"]]},{"id":"2c750a9c.0ca526","type":"change","z":"368c6b12.3ae6f4","name":"8","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"8","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":140,"wires":[[]]},{"id":"50ba9255.e3055c","type":"falling-edge","z":"368c6b12.3ae6f4","name":"Stop","threshold":"1","x":270,"y":320,"wires":[["d4df721b.34af"]]},{"id":"3b0f82a9.baa34e","type":"delay","z":"368c6b12.3ae6f4","name":"ONdelay","pauseType":"delayv","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":280,"y":280,"wires":[["47ff9754.f0ae28"]]},{"id":"ce7072ee.32213","type":"falling-edge","z":"368c6b12.3ae6f4","name":"Stop","threshold":"1","x":270,"y":220,"wires":[["2be0985d.8818e8"]]},{"id":"1b20fa56.8799b6","type":"delay","z":"368c6b12.3ae6f4","name":"ONdelay","pauseType":"delayv","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":280,"y":180,"wires":[["1849cdac.6051b2"]]},{"id":"21316851.1b579","type":"debug","z":"368c6b12.3ae6f4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1170,"y":120,"wires":[]},{"id":"30344b49.8fc444","type":"string","z":"368c6b12.3ae6f4","name":"first","methods":[{"name":"getLeftMost","params":[{"type":"str","value":"?"}]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":230,"y":1040,"wires":[["e07ac922.25a448","e4f98089.b5c448"]]},{"id":"bf63d504.758de8","type":"string","z":"368c6b12.3ae6f4","name":"last","methods":[{"name":"delLeftMost","params":[{"type":"str","value":"?"}]},{"name":"ensureLeft","params":[{"type":"str","value":"?"}]},{"name":"delRightMost","params":[{"type":"str","value":"!"}]},{"name":"delRightMost","params":[{"type":"str","value":"!"}]},{"name":"delRightMost","params":[{"type":"str","value":"!"}]},{"name":"delRightMost","params":[{"type":"str","value":";"}]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":230,"y":1080,"wires":[["ce236939.941758"]]},{"id":"e07ac922.25a448","type":"split","z":"368c6b12.3ae6f4","name":"","splt":"!","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":370,"y":1000,"wires":[["52bb424f.135f2c"]]},{"id":"ce236939.941758","type":"split","z":"368c6b12.3ae6f4","name":"","splt":"?","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":370,"y":1080,"wires":[["66608328.39483c"]]},{"id":"e4f98089.b5c448","type":"join","z":"368c6b12.3ae6f4","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"","joinerType":"str","accumulate":false,"timeout":"0.1","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":650,"y":1040,"wires":[["4dc4fade.04b844"]]},{"id":"66608328.39483c","type":"function","z":"368c6b12.3ae6f4","name":"feedback","func":"if (msg.payload.length > 0) {\n var pin = msg.payload\n msg.payload = \"?\"+String(pin)+\"=\"+String(flow.get(pin));\n \nreturn msg;\n}","outputs":1,"noerr":0,"x":520,"y":1080,"wires":[["e4f98089.b5c448"]]},{"id":"52bb424f.135f2c","type":"function","z":"368c6b12.3ae6f4","name":"pin config","func":"if (msg.payload.length > 0) {\nvar input = msg.payload.split(\",\");\nvar pin = parseInt(input[0])\nvar config = parseInt(input[1])\nvar state;\n\nflow.set(String(pin)+\"disabled\", 0);\n\nif (config == 1) {\n var one ={};\n one.topic = pin\n state = parseInt(input[2])\n one.payload = state \n return [one, null, null];\n}\nif (config == 5) {\n five = {};\n five.topic = \"newconfig\"\n pin = parseInt(input[0])\n config = parseInt(input[1])\n var port = parseInt(input[2])\n var target = parseInt(input[3])\n var onoffset = parseInt(input[4])\n var ondelay = parseInt(input[5]) * 1000\n var activelow = parseInt(input[6])\n var value = parseInt(flow.get(String(port)))\n flow.set(String(port)+\"pin\", pin);\n flow.set(String(port)+\"target\", target);\n flow.set(String(port)+\"onoffset\", onoffset);\n flow.set(String(port)+\"activelow\", activelow);\n flow.set(String(port)+\"ondelay\", ondelay);\n five.payload = [pin, config, port, target, onoffset, ondelay, activelow]\n return [null, five, null];\n}\nif (config == 7) {\n var seven = {};\n seven.topic = pin\n state = parseInt(input[2])\n seven.payload = state \n return [null, null, seven];\n}\n}","outputs":3,"noerr":0,"x":520,"y":1000,"wires":[["306509fc.3b5c5e"],[],["306509fc.3b5c5e"]]},{"id":"35844c6e.bcd07c","type":"split","z":"368c6b12.3ae6f4","name":"","splt":"/","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":370,"y":900,"wires":[["83f84393.6dbd7"]]},{"id":"83f84393.6dbd7","type":"function","z":"368c6b12.3ae6f4","name":"disable pins","func":"\nif (msg.payload.length > 0) {\nvar input = msg.payload;\nvar pin = input;\nflow.set(String(pin)+\"disabled\", 1);\nmsg.topic = pin;\nmsg.payload = 0;\nreturn msg;\n}\n\n","outputs":1,"noerr":0,"x":530,"y":900,"wires":[["306509fc.3b5c5e","137d5803.f2199"]]},{"id":"4dc4fade.04b844","type":"string","z":"368c6b12.3ae6f4","name":"","methods":[{"name":"ensureRight","params":[{"type":"str","value":";"}]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":730,"y":960,"wires":[["c55602d6.eaeb","24c0dd5f.742752"]]},{"id":"12fa773.1516589","type":"switch","z":"368c6b12.3ae6f4","name":"keepalive","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"*","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":380,"y":960,"wires":[["4dc4fade.04b844"]]},{"id":"24c0dd5f.742752","type":"debug","z":"368c6b12.3ae6f4","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":1000,"wires":[]},{"id":"41ea08e5.849c08","type":"change","z":"368c6b12.3ae6f4","name":"rbe reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":860,"wires":[["306509fc.3b5c5e"]]},{"id":"c75835f6.090708","type":"inject","z":"368c6b12.3ae6f4","name":"","topic":"","payload":"","payloadType":"date","repeat":"600","crontab":"","once":true,"onceDelay":"60","x":250,"y":860,"wires":[["41ea08e5.849c08"]]},{"id":"47ff9754.f0ae28","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"60","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":410,"y":280,"wires":[["d4df721b.34af"]]},{"id":"1849cdac.6051b2","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"60","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":410,"y":180,"wires":[["2be0985d.8818e8"]]},{"id":"3d95c515.4187ba","type":"function","z":"368c6b12.3ae6f4","name":"disable","func":"var str = msg.payload\nif (str.indexOf(\"/\") >= 0) {\n var firstq = str.indexOf(\"?\")\n var firstw = str.indexOf(\"!\")\n var slashpart\n if (firstq >= 0 || firstw >= 0) {\n if (firstw > firstq) {\n slashpart = str.slice(0, firstw)\n }\n if (firstq > firstw) {\n if (firstw > -1) { \n slashpart = str.slice(0, firstw)\n }\n if (firstw == -1) { \n slashpart = str.slice(0, firstq)\n }\n }\n msg.payload = slashpart\n return msg;\n }\n else {\n msg.payload = str\n }\n return msg;\n}\n","outputs":1,"noerr":0,"x":240,"y":900,"wires":[["35844c6e.bcd07c"]]},{"id":"e42edb68.196658","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"2","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":270,"y":20,"wires":[["e38efb94.440698"]]},{"id":"f3ed6fc1.a6822","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"2","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":410,"y":140,"wires":[["1cb68ce9.48f553"]]},{"id":"78bf8af.bb367f4","type":"switch","z":"b875ee30.c832a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"istype","v":"string","vt":"string"}],"checkall":"true","repair":false,"outputs":2,"x":410,"y":140,"wires":[["bd311b25.cb8b78"],["9ce2e10e.bce7f8"]]},{"id":"bbbd6559.b57ea8","type":"split","z":"b875ee30.c832a","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":290,"y":140,"wires":[["78bf8af.bb367f4"]]},{"id":"32d2dc09.6f275c","type":"debug","z":"b875ee30.c832a","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":750,"y":200,"wires":[]},{"id":"b70b3cf5.3979a","type":"inject","z":"b875ee30.c832a","name":"Fusion config","topic":"fusion-configuration","payload":"{\"outputTopic\":\"F1\",\"inputTopics\":[\"beer\",\"name\",\"temp\",\"ext_temp\",\"aux_temp\",\"temp_unit\",\"pressure\",\"pressure_unit\",\"gravity\",\"temperature\",\"comment\"],\"allowUndefined\":true,\"onlyPayloads\":true}","payloadType":"json","repeat":"","crontab":"","once":true,"onceDelay":"2","x":440,"y":100,"wires":[["9ce2e10e.bce7f8"]]},{"id":"9ce2e10e.bce7f8","type":"fusion","z":"b875ee30.c832a","name":"","x":670,"y":140,"wires":[["32d2dc09.6f275c"]]},{"id":"bd311b25.cb8b78","type":"aggregator","z":"b875ee30.c832a","name":"median","topic":"","intervalCount":"60","intervalUnits":"s","submitIncompleteInterval":true,"submitPerTopic":true,"aggregationType":"median","x":540,"y":140,"wires":[["9ce2e10e.bce7f8"]]},{"id":"2015c268.6509ce","type":"delay","z":"b875ee30.c832a","name":"limit","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"15","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":810,"y":140,"wires":[[]]},{"id":"5d5351ea.508d8","type":"tcp in","z":"b875ee30.c832a","name":"iSpindelRed","server":"server","host":"","port":"8891","datamode":"single","datatype":"utf8","newline":"","topic":"iSpindelRed","base64":false,"x":70,"y":300,"wires":[[]]},{"id":"30b9ab62.bdbd04","type":"tcp in","z":"b875ee30.c832a","name":"iSpindelGreen","server":"server","host":"","port":"8892","datamode":"single","datatype":"utf8","newline":"","topic":"iSpindelGreen","base64":false,"x":70,"y":360,"wires":[["69847bf0.25eec4"]]},{"id":"665fd1e3.52fb6","type":"tcp in","z":"b875ee30.c832a","name":"iSpindelBlue","server":"server","host":"","port":"8893","datamode":"single","datatype":"utf8","newline":"","topic":"iSpindelBlue","base64":false,"x":70,"y":420,"wires":[[]]},{"id":"69847bf0.25eec4","type":"json","z":"b875ee30.c832a","name":"","property":"payload","action":"","pretty":false,"x":270,"y":360,"wires":[["82222f58.c6bc88","3e2c043d.57bd94"]]},{"id":"82222f58.c6bc88","type":"split","z":"b875ee30.c832a","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":390,"y":360,"wires":[["4cf357b9.d2fac8","5512c87.9df2db8"]]},{"id":"4cf357b9.d2fac8","type":"change","z":"b875ee30.c832a","name":"","rules":[{"t":"change","p":"topic","pt":"msg","from":"name","fromt":"str","to":"comment","tot":"str"},{"t":"change","p":"topic","pt":"msg","from":"temperature","fromt":"str","to":"aux_temp","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":360,"wires":[["78bf8af.bb367f4"]]},{"id":"a7081d2e.5a9ec","type":"tcp in","z":"b875ee30.c832a","name":"iSpindelBlack","server":"server","host":"","port":"8894","datamode":"single","datatype":"utf8","newline":"","topic":"iSpindelBlack","base64":false,"x":70,"y":480,"wires":[[]]},{"id":"6658808a.9ab658","type":"tcp in","z":"b875ee30.c832a","name":"iSpindelWhite","server":"server","host":"","port":"8895","datamode":"single","datatype":"utf8","newline":"","topic":"iSpindelWhite","base64":false,"x":70,"y":540,"wires":[[]]},{"id":"5512c87.9df2db8","type":"switch","z":"b875ee30.c832a","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"angle","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":400,"wires":[["b19c755a.3a338"]]},{"id":"b19c755a.3a338","type":"aggregator","z":"b875ee30.c832a","name":"average","topic":"","intervalCount":"60","intervalUnits":"s","submitIncompleteInterval":false,"submitPerTopic":true,"aggregationType":"geometricMean","x":640,"y":400,"wires":[["3e2c043d.57bd94"]]},{"id":"3e2c043d.57bd94","type":"debug","z":"b875ee30.c832a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":790,"y":400,"wires":[]},{"id":"732dcc4f.60ca64","type":"debug","z":"b875ee30.c832a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":20,"wires":[]},{"id":"12293e91.fa0581","type":"mqtt out","z":"368c6b12.3ae6f4","name":"Fridge1 ctrl","topic":"cmnd/Fridge1/POWER","qos":"","retain":"","broker":"e15967f2.8aa848","x":550,"y":400,"wires":[]},{"id":"70edf285.a9824c","type":"falling-edge","z":"368c6b12.3ae6f4","name":"Stop","threshold":"1","x":270,"y":400,"wires":[["12293e91.fa0581"]]},{"id":"1a92a509.fb0a9b","type":"delay","z":"368c6b12.3ae6f4","name":"ONdelay","pauseType":"delayv","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":280,"y":360,"wires":[["d67adf85.a0d45"]]},{"id":"d67adf85.a0d45","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"60","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":410,"y":360,"wires":[["12293e91.fa0581"]]},{"id":"3bfb3171.7dc54e","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Fridge1 temp","topic":"tele/Fridge1/SENSOR","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":730,"y":400,"wires":[["57b474f2.4388fc"]]},{"id":"57b474f2.4388fc","type":"json","z":"368c6b12.3ae6f4","name":"","property":"payload","action":"","pretty":false,"x":870,"y":400,"wires":[["be7f892b.7c1138","21316851.1b579"]]},{"id":"be7f892b.7c1138","type":"change","z":"368c6b12.3ae6f4","name":"202","rules":[{"t":"set","p":"payload","pt":"msg","to":"$floor(msg.payload.DS18B20.Temperature*100)\t","tot":"jsonata"},{"t":"set","p":"202","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"202","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":400,"wires":[["bd38150b.8dce8"]]},{"id":"bf965743.fe58c8","type":"change","z":"368c6b12.3ae6f4","name":"17","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"17","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":260,"wires":[[]]},{"id":"5096f4a6.b98afc","type":"mqtt in","z":"368c6b12.3ae6f4","name":"Fridge1 feedback","topic":"stat/Fridge1/POWER","qos":"2","datatype":"auto","broker":"e15967f2.8aa848","x":740,"y":260,"wires":[["bf965743.fe58c8","21316851.1b579"]]},{"id":"37cafdb7.480942","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"2","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":410,"y":60,"wires":[["179a0b7d.e3dee5"]]},{"id":"6dbf619f.2144a","type":"delay","z":"368c6b12.3ae6f4","name":"limit","pauseType":"rate","timeout":"0","timeoutUnits":"seconds","rate":"1","nbRateUnits":"2","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":410,"y":100,"wires":[["ce616d18.fef93"]]}]
Advertisement
Add Comment
Please, Sign In to add comment