Run-To-Waste Hydroponics Flow
This flow manages 2 lights, 3 fans & and two way valve watering system for a run to waste hydroponic system.
How To Setup Flow:
- Import flow into node red - google for more info
- Double click the "Call Service" nodes (there blue, if u cant find them search "call service" in the top left "filter nodes" search bar.
- you will see an option called "Server" to the right its a "pencil icon" click it once.
You Have 2 Options Here:
- click the checkbox that says: "I use the home assistant add-on" (not using the addon?) (here's the link if you want to: https://github.com/zachowj/hass-node-red)
Or Alternatively:
- Goto: http://"your.hass.os.ipAdress":8123/profile
- Scroll down to "Long-Lived Access Tokens"
- Click "Create token"
- Name your token anything you want and click "ok"
- Copy the "Token API" and paste it somewhere safe to use for later.
- Go back into "Node Red" Double click the "Call Service" nodes (there blue, if u cant find them search "call service" in the top left "filter nodes" search bar.
- you will see an option called "Server" to the right its a "pencil icon" click it once.
- there's an option that says "Access Token" paste that "token API" here.
- there's an option that says "base url" this will be:
- http://"your.hass.os.ipAdress":8123
- here's another example: http://10.0.0.0:8123 OR http://192.168.1.1:8123
- Restart Home Assistant
Possible Install Issues:
- bad base url, Solution = get rid of "/" at the end for example: "http://10.0.0.0:8123/ <-bad base url" "http://10.0.0.0:8123 <-good base url"
- this is the limit of my help... sorry feel free to google any more help you require.
System Requirements:
- 2x lights
- 3x fans
- 2x water flow valves
- 1x fish pump
- 8x smart plugs/switches
What Will This Flow Do:
- @ dawn turns on the lights and fans then.
- sends an audio notification letting you know what just happened.
- @ sunrise it waters plant 1 & 2 then.
- sends an audio notification letting you know what just happened.
- @ sunset it waters the plants 1 & 2 again.
- sends an audio notification letting you know what just happened.
- after a set duration, turns off the lights & fans.
- sends an audio notification letting you know what just happened.
- there's also a manual watering btn in the dashboard.
- you can also adjust the light and water timers from the dashboard.
Coming Soon:
- automatic temp & humidity control
- Automatic Tank refill
- ec dosing & calibration
- ph dosing & calibration
[{"id":"5ddea951.416828","type":"tab","label":"Timers","disabled":false,"info":""},{"id":"b03f9ae.86bd568","type":"bigtimer","z":"5ddea951.416828","outtopic":"","outpayload1":"on","outpayload2":"","name":"Sunrise","comment":"Best Time to water your plants","lat":"-31.952744848191998","lon":"115.86044311523439","starttime":"5003","endtime":"5003","starttime2":"0","endtime2":"0","startoff":"-1","endoff":"1","startoff2":"-1","endoff2":"1","offs":0,"outtext1":"oh. BrawndO! has what plants crave! It's got electrolytes!","outtext2":"","timeout":"1440","sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":80,"y":100,"wires":[["f4fb9fb9.75667"],[],["961c17be.8391f8"]]},{"id":"f4fb9fb9.75667","type":"link out","z":"5ddea951.416828","name":"","links":["cd328a2e.e9d7f8","832f9514.ab2828","fff4f759.5df888"],"x":195,"y":160,"wires":[]},{"id":"c11f6481.d94078","type":"bigtimer","z":"5ddea951.416828","outtopic":"","outpayload1":"on","outpayload2":"","name":"Sunset","comment":"2nd Best Time to water your plants","lat":"-31.952744848191998","lon":"115.86044311523439","starttime":"5004","endtime":"5004","starttime2":"0","endtime2":"0","startoff":"-1","endoff":"1","startoff2":"0","endoff2":"0","offs":0,"outtext1":"oh. BrawndO! has what plants crave! It's got electrolytes!","outtext2":"","timeout":"1440","sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":80,"y":160,"wires":[["f4fb9fb9.75667"],[],["961c17be.8391f8"]]},{"id":"da499045.12c1e","type":"ui_button","z":"5ddea951.416828","name":"Manual Water Btn-UI","group":"7ef0c7f2.6c31c8","order":0,"width":0,"height":0,"passthru":false,"label":"Manual Water","tooltip":"","color":"","bgcolor":"","icon":"","payload":"on","payloadType":"str","topic":"","x":420,"y":240,"wires":[["1d08311b.dd0d0f","f4fb9fb9.75667","ff7613cd.599ef"]]},{"id":"1d08311b.dd0d0f","type":"change","z":"5ddea951.416828","name":"disable ui btn","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":240,"wires":[["da499045.12c1e"]]},{"id":"3835cc66.1c5184","type":"link in","z":"5ddea951.416828","name":"","links":["190ed027.6ff1d","680a418b.2de2b"],"x":275,"y":240,"wires":[["da499045.12c1e"]]},{"id":"ff233b5b.818908","type":"link out","z":"5ddea951.416828","name":"","links":["caeec570.666218","394c4880.c3e4f8"],"x":215,"y":240,"wires":[]},{"id":"99a6fafa.b5e998","type":"inject","z":"5ddea951.416828","name":"Ui Btn Reset","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":110,"y":240,"wires":[["ff233b5b.818908"]]},{"id":"2d1a95d8.b053ba","type":"link out","z":"5ddea951.416828","name":"","links":["2d0c17ba.25b078","933a8e2d.3bc0c","1cd02a50.737a06","8bbe6e95.8f4cb","4f719f3.803f46","1b54a32c.80ac5d"],"x":195,"y":40,"wires":[]},{"id":"dcee3e31.c509b","type":"api-call-service","z":"5ddea951.416828","name":"Outlet Fan on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.kasa_smart_plug_bd36_0","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":260,"y":80,"wires":[[]]},{"id":"9c259367.9e468","type":"api-call-service","z":"5ddea951.416828","name":"Outlet Fan off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":300,"wires":[[]]},{"id":"960c95e0.3d0238","type":"bigtimer","z":"5ddea951.416828","outtopic":"","outpayload1":"on","outpayload2":"","name":"Dawn","comment":"Best Time to Turn lights on","lat":"-31.952744848191998","lon":"115.86044311523439","starttime":"5000","endtime":"5000","starttime2":"0","endtime2":"0","startoff":"-1","endoff":"1","startoff2":"-1","endoff2":"1","offs":0,"outtext1":"oh. Turning Knee Grow lights on!","outtext2":"","timeout":"1440","sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":70,"y":40,"wires":[["dcee3e31.c509b","2d1a95d8.b053ba"],[],["961c17be.8391f8"]]},{"id":"d6d9b4dd.426b88","type":"link in","z":"5ddea951.416828","name":"","links":["f4154823.50bfb8","2501f2f7.2fb6ee"],"x":35,"y":300,"wires":[["6367417e.c6659"]]},{"id":"ecf48d4c.d8d1c","type":"link in","z":"5ddea951.416828","name":"","links":["1bf1abd1.f8dd84","2c295fa8.965bc"],"x":35,"y":340,"wires":[["a74873a4.e7754"]]},{"id":"6c8b0b0.1800bf4","type":"switch","z":"5ddea951.416828","name":"","property":"sensorA","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":310,"y":300,"wires":[["374b91bf.d8583e"]]},{"id":"374b91bf.d8583e","type":"switch","z":"5ddea951.416828","name":"","property":"sensorB","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":300,"wires":[["61e4d1f0.25b7d"]]},{"id":"6367417e.c6659","type":"change","z":"5ddea951.416828","name":"","rules":[{"t":"set","p":"sensorA","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":300,"wires":[["6c8b0b0.1800bf4"]]},{"id":"a74873a4.e7754","type":"change","z":"5ddea951.416828","name":"","rules":[{"t":"set","p":"sensorB","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":340,"wires":[["6c8b0b0.1800bf4"]]},{"id":"316f2701.6d4608","type":"debug","z":"5ddea951.416828","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":750,"y":340,"wires":[]},{"id":"61e4d1f0.25b7d","type":"change","z":"5ddea951.416828","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Sequence completed","tot":"str"},{"t":"set","p":"sensorA","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"sensorB","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":300,"wires":[["316f2701.6d4608","9c259367.9e468"]]},{"id":"59b88f4c.46db","type":"ui_numeric","z":"5ddea951.416828","name":"water Timer Adjustment","label":"Water-Seconds","tooltip":"","group":"e561bc12.075aa","order":1,"width":0,"height":0,"wrap":true,"passthru":false,"topic":"","format":"{{msg.payload}}","min":"10","max":"1800","step":"30","x":130,"y":460,"wires":[["44532507.26827c"]]},{"id":"44532507.26827c","type":"change","z":"5ddea951.416828","name":"Flow Delay - For Function","rules":[{"t":"set","p":"delay1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":460,"wires":[[]]},{"id":"b663c957.5a7828","type":"delay","z":"5ddea951.416828","name":"Wait Timer","pauseType":"delayv","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":590,"y":420,"wires":[["c6b55e90.72d89"]]},{"id":"d455324c.f6f92","type":"function","z":"5ddea951.416828","name":"","func":"msg.delay = flow.get('delay1') * 1000\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":420,"wires":[["b663c957.5a7828"]]},{"id":"82686bc1.3adb78","type":"api-call-service","z":"5ddea951.416828","name":"Valve 1 on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.kasa_smart_plug_bd36_0","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":150,"y":420,"wires":[["95ef7697.ba0ab8"]]},{"id":"1b46a98b.44d576","type":"api-call-service","z":"5ddea951.416828","name":"Valve 1 off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"switch.kasa_smart_plug_bd36_0","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":890,"y":420,"wires":[["30988e14.81ddf2"]]},{"id":"95ef7697.ba0ab8","type":"api-call-service","z":"5ddea951.416828","name":"Pump on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.kasa_smart_plug_bd36_1","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":300,"y":420,"wires":[["d455324c.f6f92"]]},{"id":"c6b55e90.72d89","type":"api-call-service","z":"5ddea951.416828","name":"Pump off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"switch.kasa_smart_plug_bd36_1","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":420,"wires":[["1b46a98b.44d576"]]},{"id":"fff4f759.5df888","type":"link in","z":"5ddea951.416828","name":"","links":["f4fb9fb9.75667"],"x":35,"y":420,"wires":[["82686bc1.3adb78"]]},{"id":"30988e14.81ddf2","type":"link out","z":"5ddea951.416828","name":"","links":["738dc65f.e37978","c3f8735b.6698c"],"x":995,"y":420,"wires":[]},{"id":"8045d67b.952a78","type":"comment","z":"5ddea951.416828","name":"Tent 1 Water","info":"","x":90,"y":380,"wires":[]},{"id":"375d7ece.9a6f02","type":"api-call-service","z":"5ddea951.416828","name":"Tent 1 Light on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":160,"y":540,"wires":[["41c67528.b529ac"]]},{"id":"dbe8d199.0ba5e","type":"api-call-service","z":"5ddea951.416828","name":"Tent 1 light off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":540,"wires":[["1fedf4b6.9987db"]]},{"id":"c2d7ac5d.02131","type":"function","z":"5ddea951.416828","name":"","func":"msg.delay = flow.get('delay2') * 1000\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":580,"wires":[["10e8ac14.9ed244"]]},{"id":"10e8ac14.9ed244","type":"delay","z":"5ddea951.416828","name":"Wait Timer","pauseType":"delayv","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":690,"y":580,"wires":[["dbe8d199.0ba5e"]]},{"id":"2b7f81f3.5651be","type":"ui_numeric","z":"5ddea951.416828","name":"Light Timer Adjustment","label":"Hours Of Light","tooltip":"","group":"e561bc12.075aa","order":1,"width":0,"height":0,"wrap":true,"passthru":false,"topic":"","format":"{{msg.payload}}","min":"12","max":"18","step":"6","x":120,"y":580,"wires":[["d6ca7dda.e3d17"]]},{"id":"d6ca7dda.e3d17","type":"change","z":"5ddea951.416828","name":"Flow Delay - For Function","rules":[{"t":"set","p":"delay2","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":580,"wires":[[]]},{"id":"4f719f3.803f46","type":"link in","z":"5ddea951.416828","name":"","links":["2d1a95d8.b053ba"],"x":35,"y":540,"wires":[["375d7ece.9a6f02"]]},{"id":"41c67528.b529ac","type":"api-call-service","z":"5ddea951.416828","name":"Tent 1 Inlet Fan on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":350,"y":540,"wires":[["c2d7ac5d.02131"]]},{"id":"1fedf4b6.9987db","type":"api-call-service","z":"5ddea951.416828","name":"Tent 1 Inlet Fan off","server":"4a73486b.14a158","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":770,"y":540,"wires":[["2501f2f7.2fb6ee"]]},{"id":"2501f2f7.2fb6ee","type":"link out","z":"5ddea951.416828","name":"","links":["cd1bf35c.d8677","d6d9b4dd.426b88"],"x":895,"y":540,"wires":[]},{"id":"9487e94b.12bf98","type":"comment","z":"5ddea951.416828","name":"Tent 1 Light/Fan","info":"","x":100,"y":500,"wires":[]},{"id":"e258f451.812bb8","type":"comment","z":"5ddea951.416828","name":"Tent 2 Water","info":"","x":90,"y":620,"wires":[]},{"id":"4fbe9b91.98cbc4","type":"ui_numeric","z":"5ddea951.416828","name":"Water Timer Adjustments","label":"Water-Seconds","tooltip":"","group":"e5f48f81.46069","order":1,"width":0,"height":0,"wrap":true,"passthru":false,"topic":"","format":"{{msg.payload}}","min":"10","max":"1800","step":"30","x":130,"y":700,"wires":[["dc6eedfb.0a36b"]]},{"id":"dc6eedfb.0a36b","type":"change","z":"5ddea951.416828","name":"Flow Delay - For Function","rules":[{"t":"set","p":"delay3","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":700,"wires":[[]]},{"id":"c4ce18ae.778018","type":"api-call-service","z":"5ddea951.416828","name":"Pump on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.kasa_smart_plug_bd36_1","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":300,"y":660,"wires":[["a76482b1.64803"]]},{"id":"5e2f828d.c0c7ec","type":"api-call-service","z":"5ddea951.416828","name":"Pump off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"switch.kasa_smart_plug_bd36_1","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":660,"wires":[["36e88143.78dc7e"]]},{"id":"c990aaa7.196b18","type":"api-call-service","z":"5ddea951.416828","name":"Valve 2 on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.kasa_smart_plug_bd36_2","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":150,"y":660,"wires":[["c4ce18ae.778018"]]},{"id":"36e88143.78dc7e","type":"api-call-service","z":"5ddea951.416828","name":"Valve 2 off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"switch.kasa_smart_plug_bd36_2","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":890,"y":660,"wires":[["6eb89214.d9ea6c"]]},{"id":"c9098e6d.1aaae","type":"delay","z":"5ddea951.416828","name":"Wait Timer","pauseType":"delayv","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":590,"y":660,"wires":[["5e2f828d.c0c7ec"]]},{"id":"a76482b1.64803","type":"function","z":"5ddea951.416828","name":"","func":"msg.delay = flow.get('delay3') * 1000\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":660,"wires":[["c9098e6d.1aaae"]]},{"id":"c3f8735b.6698c","type":"link in","z":"5ddea951.416828","name":"","links":["743d2be1.f92124","30988e14.81ddf2"],"x":35,"y":660,"wires":[["c990aaa7.196b18"]]},{"id":"6eb89214.d9ea6c","type":"change","z":"5ddea951.416828","name":"Re Enable ui btn","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":700,"wires":[["680a418b.2de2b"]]},{"id":"680a418b.2de2b","type":"link out","z":"5ddea951.416828","name":"","links":["60378d53.193734","3835cc66.1c5184"],"x":955,"y":700,"wires":[]},{"id":"394c4880.c3e4f8","type":"link in","z":"5ddea951.416828","name":"","links":["b76e7f7d.6f6a5","ff233b5b.818908"],"x":675,"y":700,"wires":[["6eb89214.d9ea6c"]]},{"id":"7b614127.b997c","type":"comment","z":"5ddea951.416828","name":"Tent 2 Light/Fan","info":"","x":100,"y":740,"wires":[]},{"id":"2e7545cb.3cd08a","type":"api-call-service","z":"5ddea951.416828","name":"Tent 2 Light on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":160,"y":780,"wires":[["75a98fbf.32fa5"]]},{"id":"a03362cd.5a4b6","type":"api-call-service","z":"5ddea951.416828","name":"Tent 2 Inlet Fan off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":820,"wires":[["2c295fa8.965bc"]]},{"id":"d6a952b2.07bc2","type":"function","z":"5ddea951.416828","name":"","func":"msg.delay = flow.get('delay4') * 1000\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":780,"wires":[["83d9edeb.03f3e"]]},{"id":"83d9edeb.03f3e","type":"delay","z":"5ddea951.416828","name":"Wait Timer","pauseType":"delayv","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":670,"y":780,"wires":[["a68a8532.eecdf8"]]},{"id":"3f33ccd5.477e54","type":"ui_numeric","z":"5ddea951.416828","name":"Light Timer Adjustment","label":"Hours Of Light","tooltip":"","group":"e5f48f81.46069","order":1,"width":0,"height":0,"wrap":true,"passthru":false,"topic":"","format":"{{msg.payload}}","min":"12","max":"18","step":"6","x":360,"y":820,"wires":[["b1a9281a.d50588"]]},{"id":"b1a9281a.d50588","type":"change","z":"5ddea951.416828","name":"Flow Delay - For Function","rules":[{"t":"set","p":"delay4","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":820,"wires":[[]]},{"id":"1b54a32c.80ac5d","type":"link in","z":"5ddea951.416828","name":"","links":["2d1a95d8.b053ba"],"x":35,"y":780,"wires":[["2e7545cb.3cd08a"]]},{"id":"75a98fbf.32fa5","type":"api-call-service","z":"5ddea951.416828","name":"Tent 2 Inlet Fan on","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":350,"y":780,"wires":[["d6a952b2.07bc2"]]},{"id":"a68a8532.eecdf8","type":"api-call-service","z":"5ddea951.416828","name":"Tent 2 Light off","server":"4a73486b.14a158","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":780,"wires":[["a03362cd.5a4b6"]]},{"id":"2c295fa8.965bc","type":"link out","z":"5ddea951.416828","name":"","links":["3ffccbc2.913694","ecf48d4c.d8d1c"],"x":955,"y":820,"wires":[]},{"id":"961c17be.8391f8","type":"ui_audio","z":"5ddea951.416828","name":"","group":"7ef0c7f2.6c31c8","voice":"Google UK English Male","always":true,"x":240,"y":120,"wires":[]},{"id":"ff7613cd.599ef","type":"change","z":"5ddea951.416828","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"oh. BrawndO! has what plants crave! It's got electrolytes!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":200,"wires":[["961c17be.8391f8"]]},{"id":"e88d7691.7fee48","type":"inject","z":"5ddea951.416828","name":"on","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":90,"y":200,"wires":[["f4fb9fb9.75667","ff7613cd.599ef"]]},{"id":"7ef0c7f2.6c31c8","type":"ui_group","name":"Manual Water Btn","tab":"4933fd87.3254d4","order":1,"disp":false,"width":"6","collapse":false},{"id":"4a73486b.14a158","type":"server","name":"Home Assistant Server1","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"e561bc12.075aa","type":"ui_group","name":"Tent 1","tab":"4933fd87.3254d4","order":2,"disp":false,"width":"6","collapse":false},{"id":"e5f48f81.46069","type":"ui_group","name":"Tent 2","tab":"4933fd87.3254d4","order":3,"disp":false,"width":"6","collapse":false},{"id":"4933fd87.3254d4","type":"ui_tab","name":"Hydroponics System Controls","icon":"dashboard","order":2,"disabled":false,"hidden":false}]