Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [{"id":"60057d9.2919184","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"6db4664c.ab01d8","type":"inject","z":"60057d9.2919184","name":"","topic":"","payload":"","payloadType":"date","repeat":"4","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":480,"wires":[["ee8c54ec.0aa818"]]},{"id":"ee8c54ec.0aa818","type":"rpi-dht22","z":"60057d9.2919184","name":"DHT22","topic":"rpi-dht22","dht":22,"pintype":"0","pin":"18","x":316.0000057220459,"y":479.9999761581421,"wires":[["5d76c18b.43d14","9ffba848.ada068","22449c75.e31024"]]},{"id":"5d76c18b.43d14","type":"function","z":"60057d9.2919184","name":"temperature","func":"msg.payload = (msg.payload*1.8+32).toFixed(1);\nmsg.topic = \"inside_temp\";\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":260,"wires":[["7343a0a1.8d114","58fb06be.9a4fa8","e335b99f.b9c448"]]},{"id":"9ffba848.ada068","type":"function","z":"60057d9.2919184","name":"humidity","func":"msg.payload = Number(((msg.humidity)-10).toFixed(1));\nmsg.topic = \"inside_rh\";\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":600,"wires":[["a966d65f.443478","827501d1.9b834","7104745b.a04dec","3161d3f9.38203c"]]},{"id":"7343a0a1.8d114","type":"ui_gauge","z":"60057d9.2919184","name":"","group":"a7a70150.97cbb","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperature","label":"°F","format":"{{value}}°F","min":"50","max":"100","colors":["#0080ff","#e6e600","#ca3838"],"seg1":"","seg2":"","x":930,"y":100,"wires":[]},{"id":"a966d65f.443478","type":"ui_gauge","z":"60057d9.2919184","name":"","group":"de6936e2.9fc0a8","order":1,"width":0,"height":0,"gtype":"gage","title":"Relative Humidity","label":"%RH","format":"{{value}}%","min":0,"max":"100","colors":["#ff7315","#75ea00","#ff7315"],"seg1":"","seg2":"","x":890,"y":620,"wires":[]},{"id":"3161d3f9.38203c","type":"ui_chart","z":"60057d9.2919184","name":"","group":"de6936e2.9fc0a8","order":2,"width":0,"height":0,"label":"Relative Humidity (%RH)","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"6","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":890,"y":700,"wires":[[]]},{"id":"e335b99f.b9c448","type":"ui_chart","z":"60057d9.2919184","name":"","group":"a7a70150.97cbb","order":2,"width":"0","height":"0","label":"Temperature (°F)","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"6","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":950,"y":160,"wires":[[]]},{"id":"25359d85.f8fc42","type":"rpi-gpio out","z":"60057d9.2919184","name":"Humidifier Relay (4) - Pin 22 - GPIO25","pin":"22","set":true,"level":"1","freq":"","out":"out","x":1830,"y":840,"wires":[]},{"id":"827501d1.9b834","type":"switch","z":"60057d9.2919184","name":"Humidifier on/off","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"minrh","vt":"global"},{"t":"gte","v":"maxrh","vt":"global"},{"t":"else"}],"checkall":"false","repair":false,"outputs":3,"x":920,"y":880,"wires":[["fdf2b3b4.75a5f","aead432c.71963"],["cd04b79d.c2a188","cd8974d0.f96148"],[]]},{"id":"aead432c.71963","type":"change","z":"60057d9.2919184","name":"667","rules":[{"t":"set","p":"payload","pt":"msg","to":"667","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":940,"wires":[["cd04b79d.c2a188"]]},{"id":"cd8974d0.f96148","type":"change","z":"60057d9.2919184","name":"666","rules":[{"t":"set","p":"payload","pt":"msg","to":"666","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":840,"wires":[["fdf2b3b4.75a5f"]]},{"id":"cafb4969.6b45b8","type":"rpi-gpio out","z":"60057d9.2919184","name":"Exhaust Relay (5) - Pin 29 - GPIO05","pin":"29","set":true,"level":"1","freq":"","out":"out","x":2110,"y":80,"wires":[]},{"id":"58fb06be.9a4fa8","type":"switch","z":"60057d9.2919184","name":"Exhaust on/off","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"maxtemp","vt":"global"},{"t":"lte","v":"mintemp","vt":"global"}],"checkall":"false","repair":false,"outputs":2,"x":980,"y":260,"wires":[["d2b72fa.b843ad","ae53d8df.f1f308"],["19fdf282.0cac5d"]]},{"id":"cd04b79d.c2a188","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"667","bytopic":"all","name":"trigger 1","x":1300,"y":1060,"wires":[["9444284e.8c3548"]]},{"id":"fdf2b3b4.75a5f","type":"trigger","z":"60057d9.2919184","op1":"0","op2":"0","op1type":"str","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"666","bytopic":"all","name":"trigger 0","x":1300,"y":760,"wires":[["3176b117.bb2c5e"]]},{"id":"d2b72fa.b843ad","type":"change","z":"60057d9.2919184","name":"667","rules":[{"t":"set","p":"payload","pt":"msg","to":"667","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1410,"y":300,"wires":[["19fdf282.0cac5d"]]},{"id":"19fdf282.0cac5d","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"667","bytopic":"all","name":"trigger 1 (OFF)","x":1600,"y":360,"wires":[["d9322144.08e09"]]},{"id":"bbfddab.d1d1d28","type":"rpi-gpio out","z":"60057d9.2919184","name":"Lights Relay (1) - Pin 15 - GPIO22","pin":"15","set":true,"level":"1","freq":"","out":"out","x":1220,"y":1240,"wires":[]},{"id":"b7441d22.158f","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Lights","tooltip":"Turn lights on/off - ON bypasses all timers","group":"d4dfd796.402728","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"str","onicon":"","oncolor":"","offvalue":"1","offvalueType":"str","officon":"","offcolor":"","x":130,"y":1280,"wires":[["1e71a5a5.c31cda"]]},{"id":"3a14e5c3.cc54ca","type":"trigger","z":"60057d9.2919184","op1":"0","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"1","bytopic":"all","name":"ON (0) + HOLD","x":560,"y":1200,"wires":[["10b583d3.becc5c"]]},{"id":"ae53d8df.f1f308","type":"change","z":"60057d9.2919184","name":"0 (on)","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1430,"y":120,"wires":[["fdc57292.49e64"]]},{"id":"935a580.ed9aea8","type":"ui_led","z":"60057d9.2919184","group":"d4dfd796.402728","order":7,"width":0,"height":0,"label":"Lights Status","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"num"},{"color":"red","value":"1","valueType":"num"},{"color":"green","value":"0","valueType":"str"},{"color":"red","value":"1","valueType":"str"}],"name":"LIGHTS","x":1140,"y":1300,"wires":[]},{"id":"b4faef82.7b717","type":"ui_led","z":"60057d9.2919184","group":"6b149980.cb6228","order":11,"width":0,"height":0,"label":"Exhaust Status","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"str"},{"color":"red","value":"1","valueType":"str"}],"name":"EXHAUST LED","x":2040,"y":300,"wires":[]},{"id":"421cdc20.d6cab4","type":"ui_led","z":"60057d9.2919184","group":"6b149980.cb6228","order":6,"width":0,"height":0,"label":"Humidifier Status","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"str"},{"color":"red","value":"1","valueType":"str"}],"name":"HUMIDIFIER LED","x":1770,"y":920,"wires":[]},{"id":"1c6f0bf4.aca634","type":"rpi-gpio out","z":"60057d9.2919184","name":"Fan Relay (3) - Pin 18 - GPIO24","pin":"18","set":true,"level":"1","freq":"","out":"out","x":450,"y":100,"wires":[]},{"id":"4b2d8066.e1576","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Circulation Fans OFF / ON","tooltip":"Turn circulation fans off / on","group":"6b149980.cb6228","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"str","onicon":"","oncolor":"","offvalue":"1","offvalueType":"str","officon":"","offcolor":"","x":120,"y":120,"wires":[["1c6f0bf4.aca634","192316e1.517c09"]]},{"id":"192316e1.517c09","type":"ui_led","z":"60057d9.2919184","group":"6b149980.cb6228","order":3,"width":0,"height":0,"label":"Fans Status","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"str"},{"color":"red","value":"1","valueType":"str"}],"name":"FANS","x":370,"y":160,"wires":[]},{"id":"f0ce718b.09291","type":"bigtimer","z":"60057d9.2919184","outtopic":"","outpayload1":"0","outpayload2":"1","name":"Big Timer","comment":"","lat":"41.879","lon":"-87.636","starttime":"15","endtime":"0","starttime2":0,"endtime2":0,"startoff":0,"endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"0","outtext2":"1","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":false,"atstart":true,"odd":false,"even":false,"x":840,"y":1380,"wires":[["10b583d3.becc5c"],[],[]]},{"id":"d4af2848.bc3cd8","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Light Timer Disable","tooltip":"Suspend the timer function and use manual on/off","group":"d4dfd796.402728","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"manual","onvalueType":"str","onicon":"","oncolor":"","offvalue":"auto","offvalueType":"str","officon":"","offcolor":"","x":630,"y":1580,"wires":[["f0ce718b.09291"]]},{"id":"a692868b.fc3a48","type":"ui_text_input","z":"60057d9.2919184","name":"On Override Time","label":"On Time Override HH:MM (24h format)","tooltip":"","group":"d4dfd796.402728","order":5,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"","x":170,"y":1440,"wires":[["5be5d940.a1ce08"]]},{"id":"2ecc5449.cac3ac","type":"join","z":"60057d9.2919184","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":" ","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":590,"y":1460,"wires":[["f0ce718b.09291"]]},{"id":"5be5d940.a1ce08","type":"trigger","z":"60057d9.2919184","op1":"on_override","op2":"","op1type":"str","op2type":"pay","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":400,"y":1440,"wires":[["2ecc5449.cac3ac"]]},{"id":"d9a51180.66936","type":"trigger","z":"60057d9.2919184","op1":"off_override","op2":"","op1type":"str","op2type":"pay","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":400,"y":1540,"wires":[["2ecc5449.cac3ac"]]},{"id":"299ad4be.adfe3c","type":"ui_text_input","z":"60057d9.2919184","name":"Off Override Time","label":"Off Time Override HH:MM (24h format)","tooltip":"","group":"d4dfd796.402728","order":6,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"","x":170,"y":1540,"wires":[["d9a51180.66936"]]},{"id":"1e71a5a5.c31cda","type":"switch","z":"60057d9.2919184","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":300,"y":1280,"wires":[["3a14e5c3.cc54ca"],["3a14e5c3.cc54ca","10b583d3.becc5c"]]},{"id":"4973dd17.862a54","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Exhaust Auto / ON","tooltip":"Toggle Exhaust between Auto and ON - ON bypasses all sensors","group":"6b149980.cb6228","order":9,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"str","onicon":"","oncolor":"","offvalue":"1","offvalueType":"str","officon":"","offcolor":"","x":1250,"y":240,"wires":[["37d0c4f7.aea25c","d2b72fa.b843ad","17c7d099.a9814f"]]},{"id":"5d00624.568e09c","type":"trigger","z":"60057d9.2919184","op1":"0","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"1","bytopic":"all","name":"ON (0) + HOLD","x":1600,"y":180,"wires":[["d9322144.08e09"]]},{"id":"37d0c4f7.aea25c","type":"switch","z":"60057d9.2919184","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1430,"y":240,"wires":[["5d00624.568e09c"],["5d00624.568e09c","d9322144.08e09"]]},{"id":"f01a29f0.cddd98","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Humidifier Auto / ON","tooltip":"Toggle humidifier between AUTO and ON - ON bypasses all sensors","group":"6b149980.cb6228","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"str","onicon":"","oncolor":"","offvalue":"1","offvalueType":"str","officon":"","offcolor":"","x":940,"y":1000,"wires":[["19e5c81a.99e028","cd8974d0.f96148","aead432c.71963"]]},{"id":"19e5c81a.99e028","type":"switch","z":"60057d9.2919184","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1310,"y":1120,"wires":[["79ab3121.2f9d3"],["79ab3121.2f9d3","9444284e.8c3548"]]},{"id":"79ab3121.2f9d3","type":"trigger","z":"60057d9.2919184","op1":"0","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"1","bytopic":"all","name":"ON (0) + HOLD","x":1520,"y":1120,"wires":[["9444284e.8c3548"]]},{"id":"928c8889.f96b88","type":"ui_numeric","z":"60057d9.2919184","name":"","label":"Max RH","tooltip":"Humidifier turns off above this RH. Exhaust will also turn on even if temp is below max.","group":"6b149980.cb6228","order":7,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}%","min":0,"max":"100","step":1,"x":100,"y":740,"wires":[["7a657f30.0c548"]]},{"id":"7a657f30.0c548","type":"change","z":"60057d9.2919184","name":"","rules":[{"t":"set","p":"maxrh","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":740,"wires":[["b6954c63.9c52a"]]},{"id":"492b15c.655edec","type":"ui_numeric","z":"60057d9.2919184","name":"","label":"Min RH","tooltip":"Humidifier turns on below this RH. Exhaust will also turn off if temp is below max.","group":"6b149980.cb6228","order":8,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}%","min":0,"max":"100","step":1,"x":100,"y":800,"wires":[["884ce60c.ccfca8"]]},{"id":"884ce60c.ccfca8","type":"change","z":"60057d9.2919184","name":"","rules":[{"t":"set","p":"minrh","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":800,"wires":[[]]},{"id":"abeb7044.2c52c","type":"ui_numeric","z":"60057d9.2919184","name":"","label":"Max Temp","tooltip":"Exhaust turns on above this temperature","group":"6b149980.cb6228","order":12,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}°F","min":0,"max":"100","step":1,"x":670,"y":320,"wires":[["8d973e6a.9b4aa"]]},{"id":"8d973e6a.9b4aa","type":"change","z":"60057d9.2919184","name":"","rules":[{"t":"set","p":"maxtemp","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":320,"wires":[[]]},{"id":"386e983c.ed1b78","type":"ui_numeric","z":"60057d9.2919184","name":"","label":"Min Temp","tooltip":"Exhaust turns off below this temp. High RH will still turn exhaust back on.","group":"6b149980.cb6228","order":13,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}°F","min":0,"max":"100","step":1,"x":660,"y":380,"wires":[["4d13363.4cce4c8"]]},{"id":"4d13363.4cce4c8","type":"change","z":"60057d9.2919184","name":"","rules":[{"t":"set","p":"mintemp","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":380,"wires":[[]]},{"id":"64499a39.9c7e54","type":"moment","z":"60057d9.2919184","name":"","topic":"","input":"payload","inputType":"msg","inTz":"America/Chicago","adjAmount":"0","adjType":"hours","adjDir":"subtract","format":"MM/DD/YYYY h:mm A","locale":"en_US","output":"payload","outputType":"msg","outTz":"America/Chicago","x":320,"y":40,"wires":[["b67b661b.d27998"]]},{"id":"b67b661b.d27998","type":"ui_text","z":"60057d9.2919184","group":"d4dfd796.402728","order":1,"width":0,"height":0,"name":"","label":"Current Time","format":"{{msg.payload}}","layout":"row-spread","x":510,"y":40,"wires":[]},{"id":"a960d582.315798","type":"inject","z":"60057d9.2919184","name":"","topic":"","payload":"","payloadType":"date","repeat":"120","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":40,"wires":[["64499a39.9c7e54"]]},{"id":"7104745b.a04dec","type":"switch","z":"60057d9.2919184","name":"RH High Exh/Dehumt ON","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"rh_high","vt":"global"},{"t":"lte","v":"maxrh","vt":"global"}],"checkall":"true","repair":false,"outputs":2,"x":950,"y":500,"wires":[["63987cd9.ed1bf4","40a84344.d34ddc"],["7431ac9f.bcce24","7b018dfc.1fcec4"]]},{"id":"da6eaceb.37a94","type":"change","z":"60057d9.2919184","name":"","rules":[{"t":"set","p":"rh_high","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":800,"wires":[[]]},{"id":"b6954c63.9c52a","type":"change","z":"60057d9.2919184","name":"Deadband offset 3%","rules":[{"t":"set","p":"payload","pt":"msg","to":"(payload+3)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":740,"wires":[["da6eaceb.37a94"]]},{"id":"40a84344.d34ddc","type":"change","z":"60057d9.2919184","name":"996","rules":[{"t":"set","p":"payload","pt":"msg","to":"996","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":560,"wires":[["7431ac9f.bcce24"]]},{"id":"7b018dfc.1fcec4","type":"change","z":"60057d9.2919184","name":"995","rules":[{"t":"set","p":"payload","pt":"msg","to":"995","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":440,"wires":[["63987cd9.ed1bf4"]]},{"id":"7431ac9f.bcce24","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"996","bytopic":"all","name":"trigger 1","x":1480,"y":560,"wires":[["bb799bce.e06b38"]]},{"id":"63987cd9.ed1bf4","type":"trigger","z":"60057d9.2919184","op1":"0","op2":"0","op1type":"str","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"995","bytopic":"all","name":"trigger 0","x":1480,"y":440,"wires":[["bb799bce.e06b38"]]},{"id":"9223bce.619194","type":"ui_slider","z":"60057d9.2919184","name":"Dimmer","label":"Dimmer","tooltip":"","group":"d4dfd796.402728","order":9,"width":0,"height":0,"passthru":true,"outs":"end","topic":"","min":0,"max":"100","step":1,"x":100,"y":1020,"wires":[["e4c70223.8670d","26656702.f9e6e8"]]},{"id":"59b88554.db531c","type":"ui_gauge","z":"60057d9.2919184","name":"Wattage","group":"d4dfd796.402728","order":8,"width":0,"height":0,"gtype":"gage","title":"Lights Wattage","label":"Watts","format":"{{msg.payload | number:0}}","min":"70","max":"555","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":510,"y":1080,"wires":[]},{"id":"e4c70223.8670d","type":"change","z":"60057d9.2919184","name":"Scale PWM to Wattage","rules":[{"t":"set","p":"payload","pt":"msg","to":"30+32.953*$power(2.71828, (0.0276*(payload)))","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1080,"wires":[["59b88554.db531c"]]},{"id":"26656702.f9e6e8","type":"change","z":"60057d9.2919184","name":"Invert Dimmer","rules":[{"t":"set","p":"payload","pt":"msg","to":"(100-payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1020,"wires":[["f2780799.8811b8"]]},{"id":"33767e98.f452f2","type":"ui_switch","z":"60057d9.2919184","name":"","label":"ALL OFF","tooltip":"TURN ALL RELAYS OFF! OVERRIDES EVERYTHING","group":"6b149980.cb6228","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":80,"y":320,"wires":[["30b697eb.ad1a98"]]},{"id":"30b697eb.ad1a98","type":"switch","z":"60057d9.2919184","name":"KILL SWITCH","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":240,"y":320,"wires":[["f77e11e9.8674d"],["f77e11e9.8674d"]]},{"id":"f77e11e9.8674d","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"0","bytopic":"all","name":"OFF(1) + HOLD","x":440,"y":280,"wires":[["60f5635b.e8ba9c"]]},{"id":"60f5635b.e8ba9c","type":"link out","z":"60057d9.2919184","name":"","links":["cf696682.85ed58","2a0fa58a.d1b95a","da2ca67e.ba02e8","d08e6841.8998b8","4cddcf04.e6c9"],"x":615,"y":200,"wires":[]},{"id":"cf696682.85ed58","type":"link in","z":"60057d9.2919184","name":"ESTOP","links":["60f5635b.e8ba9c"],"x":1795,"y":200,"wires":[["b4faef82.7b717","cafb4969.6b45b8"]]},{"id":"2a0fa58a.d1b95a","type":"link in","z":"60057d9.2919184","name":"","links":["60f5635b.e8ba9c","3176b117.bb2c5e","9444284e.8c3548"],"x":1495,"y":880,"wires":[["25359d85.f8fc42","421cdc20.d6cab4"]]},{"id":"da2ca67e.ba02e8","type":"link in","z":"60057d9.2919184","name":"","links":["60f5635b.e8ba9c"],"x":635,"y":1340,"wires":[["f0ce718b.09291"]]},{"id":"d08e6841.8998b8","type":"link in","z":"60057d9.2919184","name":"","links":["60f5635b.e8ba9c"],"x":215,"y":80,"wires":[["1c6f0bf4.aca634","192316e1.517c09"]]},{"id":"ea1f20a5.4fb0f","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Exhaust Killswitch","tooltip":"Turns Exhaust OFF immediately, and holds OFF until unclicked.","group":"6b149980.cb6228","order":10,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":1130,"y":20,"wires":[["1920daeb.a33d05","d2b72fa.b843ad","17c7d099.a9814f"]]},{"id":"1920daeb.a33d05","type":"switch","z":"60057d9.2919184","name":"KILL SWITCH","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1380,"y":20,"wires":[["8362bf7.0b1a14"],["8362bf7.0b1a14"]]},{"id":"8362bf7.0b1a14","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"0","bytopic":"all","name":"OFF(1) + HOLD","x":1580,"y":20,"wires":[["fdc57292.49e64"]]},{"id":"4bd16476.222ebc","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Humidifier Killswitch","tooltip":"Turns Humidifier OFF immediately, and holds OFF until unclicked.","group":"6b149980.cb6228","order":5,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","x":1120,"y":680,"wires":[["d45a259c.3bf358","cd8974d0.f96148","aead432c.71963"]]},{"id":"d45a259c.3bf358","type":"switch","z":"60057d9.2919184","name":"KILL SWITCH","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1360,"y":680,"wires":[["9f7e6a02.4b49c8"],["9f7e6a02.4b49c8"]]},{"id":"9f7e6a02.4b49c8","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"0","bytopic":"all","name":"OFF(1) + HOLD","x":1560,"y":680,"wires":[["3176b117.bb2c5e"]]},{"id":"5b030e61.c2913","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Lights Killswitch","tooltip":"Turns Lights OFF immediately, and holds OFF until unclicked.","group":"d4dfd796.402728","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"str","onicon":"","oncolor":"","offvalue":"1","offvalueType":"str","officon":"","offcolor":"","x":380,"y":1160,"wires":[["f2ab50ed.ac1fb"]]},{"id":"f2ab50ed.ac1fb","type":"switch","z":"60057d9.2919184","name":"KILL SWITCH","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":560,"y":1160,"wires":[["c33c16d5.64fd48"],["c33c16d5.64fd48"]]},{"id":"c33c16d5.64fd48","type":"trigger","z":"60057d9.2919184","op1":"1","op2":"pause","op1type":"str","op2type":"str","duration":"-250","extend":false,"units":"ms","reset":"0","bytopic":"all","name":"OFF(1) + HOLD","x":760,"y":1160,"wires":[["10b583d3.becc5c"]]},{"id":"22449c75.e31024","type":"function","z":"60057d9.2919184","name":"calc VPD","func":"var temp = Number(msg.payload-1);\nvar RH = Number(msg.humidity-10);\nvar svd = 610.7*(Math.pow(2.71828, (temp/(238.3+temp)*17.2694)));\nvar vpd = (1-(RH/100))*svd/1000;\nvpd = Number(vpd.toFixed(2))\nmsg.payload = vpd;\nreturn msg;","outputs":1,"noerr":0,"x":480,"y":480,"wires":[["2d35fb35.c56344","b0f36622.6eedc8"]]},{"id":"2d35fb35.c56344","type":"ui_gauge","z":"60057d9.2919184","name":"VPD","group":"f75eb50b.bb8418","order":1,"width":0,"height":0,"gtype":"gage","title":"VPD","label":"kPa","format":"{{value}}","min":0,"max":"2","colors":["#0000ff","#80ff80","#ff8040"],"seg1":"","seg2":"","x":650,"y":440,"wires":[]},{"id":"e503a6ba.ec5f28","type":"ui_chart","z":"60057d9.2919184","name":"","group":"f75eb50b.bb8418","order":2,"width":0,"height":0,"label":"VPD (kPa)","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"6","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":810,"y":440,"wires":[[]]},{"id":"fdc57292.49e64","type":"link out","z":"60057d9.2919184","name":"","links":["850666cb.1c2638"],"x":1755,"y":60,"wires":[]},{"id":"850666cb.1c2638","type":"link in","z":"60057d9.2919184","name":"Trigger 1","links":["bb799bce.e06b38","d9322144.08e09","fdc57292.49e64"],"x":1895,"y":220,"wires":[["b4faef82.7b717","cafb4969.6b45b8"]]},{"id":"d9322144.08e09","type":"link out","z":"60057d9.2919184","name":"","links":["850666cb.1c2638"],"x":1735,"y":260,"wires":[]},{"id":"bb799bce.e06b38","type":"link out","z":"60057d9.2919184","name":"","links":["850666cb.1c2638"],"x":1615,"y":500,"wires":[]},{"id":"b4d497af.137598","type":"link in","z":"60057d9.2919184","name":"","links":["17c7d099.a9814f"],"x":1155,"y":500,"wires":[["7b018dfc.1fcec4","40a84344.d34ddc"]]},{"id":"17c7d099.a9814f","type":"link out","z":"60057d9.2919184","name":"","links":["b4d497af.137598"],"x":1415,"y":180,"wires":[]},{"id":"b0f36622.6eedc8","type":"smooth","z":"60057d9.2919184","name":"","property":"payload","action":"mean","count":"30","round":"2","mult":"single","x":660,"y":480,"wires":[["e503a6ba.ec5f28"]]},{"id":"3176b117.bb2c5e","type":"link out","z":"60057d9.2919184","name":"","links":["2a0fa58a.d1b95a"],"x":1695,"y":760,"wires":[]},{"id":"9444284e.8c3548","type":"link out","z":"60057d9.2919184","name":"","links":["2a0fa58a.d1b95a"],"x":1655,"y":1000,"wires":[]},{"id":"f2780799.8811b8","type":"pi-gpiod out","z":"60057d9.2919184","name":"PWM","host":"localhost","port":8888,"pin":"13","set":"","level":"0","out":"pwm","sermin":"1000","sermax":"2000","x":510,"y":1020,"wires":[]},{"id":"d2384fde.35ef","type":"rpi-gpio out","z":"60057d9.2919184","name":"Dehumidifier Relay (6) - Pin 31 - GPIO06","pin":"31","set":true,"level":"1","freq":"","out":"out","x":2280,"y":440,"wires":[]},{"id":"e5a18411.ee79c8","type":"ui_led","z":"60057d9.2919184","group":"de6936e2.9fc0a8","order":7,"width":0,"height":0,"label":"Dehumidifier Status","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"num"},{"color":"red","value":"1","valueType":"num"},{"color":"green","value":"0","valueType":"str"},{"color":"red","value":"1","valueType":"str"}],"name":"DEHUMIDIFIER LED","x":2240,"y":520,"wires":[]},{"id":"4cddcf04.e6c9","type":"link in","z":"60057d9.2919184","name":"","links":["60f5635b.e8ba9c"],"x":2015,"y":500,"wires":[["d2384fde.35ef","e5a18411.ee79c8"]]},{"id":"8a726e07.34b4f","type":"ui_switch","z":"60057d9.2919184","name":"","label":"Dehumidifier OFF / ON","tooltip":"Turn Dehumidifier off / on","group":"6b149980.cb6228","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"str","onicon":"","oncolor":"","offvalue":"1","offvalueType":"str","officon":"","offcolor":"","x":1860,"y":440,"wires":[["d2384fde.35ef","e5a18411.ee79c8"]]},{"id":"f160c66e.517f88","type":"link in","z":"60057d9.2919184","name":"","links":["10b583d3.becc5c"],"x":1015,"y":1240,"wires":[["bbfddab.d1d1d28","935a580.ed9aea8"]]},{"id":"10b583d3.becc5c","type":"link out","z":"60057d9.2919184","name":"","links":["f160c66e.517f88"],"x":955,"y":1240,"wires":[]},{"id":"a7a70150.97cbb","type":"ui_group","z":"","name":"Temperature Monitoring","tab":"580f4a4f.856da4","order":2,"disp":false,"width":"5","collapse":false},{"id":"de6936e2.9fc0a8","type":"ui_group","z":"","name":"Humidity Monitoring","tab":"580f4a4f.856da4","order":1,"disp":false,"width":"5","collapse":false},{"id":"d4dfd796.402728","type":"ui_group","z":"","name":"Lights","tab":"580f4a4f.856da4","order":5,"disp":false,"width":"5","collapse":false},{"id":"6b149980.cb6228","type":"ui_group","z":"","name":"Settings & Status","tab":"580f4a4f.856da4","order":4,"disp":false,"width":"5","collapse":false},{"id":"f75eb50b.bb8418","type":"ui_group","z":"","name":"VPD & Reservoir Monitoring","tab":"580f4a4f.856da4","order":3,"disp":false,"width":"5","collapse":false},{"id":"580f4a4f.856da4","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement