wifi dosing pump

Home Assistant automation projects, questions, etc. go here.
funky83
LED-Curious
LED-Curious
Reactions:
Posts: 4
Joined: Thu Jan 14, 2021 5:51 pm

hello
i got this wifi dosing pump:
https://www.aliexpress.com/item/3303887 ... 4c4dE3ZTG3

and i cant find a way to connect it to home assistant..... did any one had any luck with this brand?

2020 NEW JEBAO WIFI mini titration pump titration system aquarium automatic titration pump plus liquid pump DOSER 3.4 DP-4
stud
LED Lover
LED Lover
Reactions:
Posts: 143
Joined: Wed Jun 03, 2020 4:19 pm
Location: Canada

is it a ESP8266 or ESP32 inside ?
funky83
LED-Curious
LED-Curious
Reactions:
Posts: 4
Joined: Thu Jan 14, 2021 5:51 pm

i really dont know, and it does not say nothing on its aliexpress page
User avatar
LEDG
Site Admin
Reactions:
Posts: 1599
Joined: Sun Jun 04, 2017 8:15 pm

This seems sort of like what you're trying to do: https://community.home-assistant.io/t/p ... ject/59748
Want to Support the Site?

Use this Amazon referral link and any purchase you make within 24 hrs will earn LEDgardener a commission at no cost to you!
stud
LED Lover
LED Lover
Reactions:
Posts: 143
Joined: Wed Jun 03, 2020 4:19 pm
Location: Canada

funky83 wrote:
Tue Mar 02, 2021 3:01 pm
i really dont know, and it does not say nothing on its aliexpress page
if it's a esp32 or esp8266 inside ,i would flash it with ESPHome or Tasmota to make it connect to Home Assistant . :mrgreen: :mrgreen: :mrgreen: :geek: :geek:
if not just put a ESP inside :ugeek: :ugeek:
Elburro24
LED-Curious
LED-Curious
Reactions:
Posts: 17
Joined: Tue Feb 23, 2021 9:43 am

I'm thinking about ordering a sonoff 4ch pro and flashing it with tasmota or esphome and having it control the 4 peristaltic pumps on the jebao dp4s. Any reason to not go down that path?

stud wrote:
Tue Mar 02, 2021 3:44 pm
funky83 wrote:
Tue Mar 02, 2021 3:01 pm
i really dont know, and it does not say nothing on its aliexpress page
if it's a esp32 or esp8266 inside ,i would flash it with ESPHome or Tasmota to make it connect to Home Assistant . :mrgreen: :mrgreen: :mrgreen: :geek: :geek:
if not just put a ESP inside :ugeek: :ugeek:
User avatar
hellresistor
LED-Curious
LED-Curious
Reactions:
Posts: 9
Joined: Sun Feb 28, 2021 8:11 am
Contact:

Some news with this dosing pump?

are you able put it work on homeassistant ? thank you
What's below is right.
What's on top is wrong.
mikeyB
LED-Curious
LED-Curious
Reactions:
Posts: 24
Joined: Wed Jan 19, 2022 11:45 pm

i got this a few days ago, gutted it and tapped a 18g wire into the pin end connection behind the pump, if you pull if from pcb board, so you dont have to destroy the orignal setup.

used a 4chpro sonoff switch and the 12v dc adapter plug for the jebao.

cut the plug close to where you would plug it into the sonoff switch about 2-3 inches down

strip both side to expose the red and black wires.

pig tailed the coms together and tied to red wire from both sides (red wire only) of dc adapter

tie all black wires from pumps and dc adapter together

then run the red wire from each pump to the NO one for each channel

you can then hook that to eWeLink and integrate into home assistant
mikeyB
LED-Curious
LED-Curious
Reactions:
Posts: 24
Joined: Wed Jan 19, 2022 11:45 pm

once i was able to link it to home assistant via ewelink integration i used node-red to monitor a data file from bluelab control stick csv file , this file allows me to then add checkdowns to reach an on/off value... i dont know if its the correct way to do this, ive only used node-red for a few days now but it does seem to work

Code: Select all

[{"id":"7c8093e112804a45","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"3d8dc278e7a2a5b7","type":"tail-file","z":"7c8093e112804a45","filename":"/config/grogreen.csv","createFile":false,"mode":"","encoding":"utf-8","split":true,"separator":"","fromBeginning":false,"flushAtEOF":false,"rememberLast":true,"limitSize":true,"maxBytes":"","skipBlank":true,"useTrim":true,"sendError":false,"interval":"","name":"my csv from above","x":290,"y":860,"wires":[["f54fe4d1babc2988"]]},{"id":"fbadbdea4a6246fa","type":"inject","z":"7c8093e112804a45","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"BlueData","payload":"{     \"topic\": \"tail-file-start\" }","payloadType":"json","x":130,"y":860,"wires":[["3d8dc278e7a2a5b7"]]},{"id":"f54fe4d1babc2988","type":"csv","z":"7c8093e112804a45","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":450,"y":860,"wires":[["ca7da7ce8ee7f876","e758886fed4e2b08"]]},{"id":"e8b6675cece2b790","type":"switch","z":"7c8093e112804a45","name":"Below 5.4","property":"payload[\"/config/grogreen.csv\"].col5","propertyType":"msg","rules":[{"t":"lt","v":"5.4","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":960,"y":700,"wires":[["a8e3720248d1d7ad"]]},{"id":"a338a63c73a8a9b6","type":"switch","z":"7c8093e112804a45","name":"Above 6.2","property":"payload[\"/config/grogreen.csv\"].col5","propertyType":"msg","rules":[{"t":"gt","v":"6.2","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":980,"y":800,"wires":[["6e28f868fbef1981"]]},{"id":"a8e3720248d1d7ad","type":"api-call-service","z":"7c8093e112804a45","name":"ch8 on","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1090,"y":700,"wires":[["e2374444c0e4ec29"]]},{"id":"b65aeaaaa837116a","type":"api-call-service","z":"7c8093e112804a45","name":"ch8 off","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1350,"y":700,"wires":[["c89ea2389c80664f"]]},{"id":"e2374444c0e4ec29","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1220,"y":700,"wires":[["b65aeaaaa837116a"]]},{"id":"516663d4a242d337","type":"switch","z":"7c8093e112804a45","name":"Between 5.4 - 6.2","property":"payload[\"/config/grogreen.csv\"].col5","propertyType":"msg","rules":[{"t":"btwn","v":"5.4","vt":"num","v2":"6.2","v2t":"num"}],"checkall":"true","repair":false,"outputs":1,"x":990,"y":760,"wires":[["6fab8f33ae97b205"]]},{"id":"e221a018eb156be8","type":"switch","z":"7c8093e112804a45","name":"Below 1300 Ppm","property":"payload[\"/config/grogreen.csv\"].col4","propertyType":"msg","rules":[{"t":"lt","v":"1300","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":950,"y":1120,"wires":[["4f630cc4e0fd73b4","1a8ec483ecb2b575","6ac5e32941f13b5b","c3e4ae6ffe4d8eb5","f3468e510564d083","17b22c5c0901591e","e12f39669e9838b7"]]},{"id":"5a261aae7ee027f9","type":"switch","z":"7c8093e112804a45","name":"Above 1300 Ppm","property":"payload[\"/config/grogreen.csv\"].col4","propertyType":"msg","rules":[{"t":"btwn","v":"1300","vt":"num","v2":"2000","v2t":"num"}],"checkall":"true","repair":false,"outputs":1,"x":970,"y":1080,"wires":[["3e628c65f31d6bee"]]},{"id":"fa190306e8747576","type":"switch","z":"7c8093e112804a45","name":"Above 2300 Ppm","property":"payload[\"/config/grogreen.csv\"].col4","propertyType":"msg","rules":[{"t":"gt","v":"2300","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":1010,"y":980,"wires":[["c713a83020298766"]]},{"id":"458d96ac7caf326f","type":"change","z":"7c8093e112804a45","name":"1121","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg (1121): Ppm's went below 1300, dosing system activated","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1590,"y":1120,"wires":[["e758886fed4e2b08"]]},{"id":"4f630cc4e0fd73b4","type":"api-call-service","z":"7c8093e112804a45","name":"ch1","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.1001207d06_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1120,"wires":[["d56e53e370fb54d8"]]},{"id":"1a8ec483ecb2b575","type":"api-call-service","z":"7c8093e112804a45","name":"ch 2","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.1001207d06_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1180,"wires":[["eb37ae4531a8d01f"]]},{"id":"6ac5e32941f13b5b","type":"api-call-service","z":"7c8093e112804a45","name":"ch 3","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.1001207d06_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1240,"wires":[["c2e4c2b780e41f48"]]},{"id":"c3e4ae6ffe4d8eb5","type":"api-call-service","z":"7c8093e112804a45","name":"ch 4","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.1001207d06_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1300,"wires":[["54b1ef740f636584"]]},{"id":"f3468e510564d083","type":"api-call-service","z":"7c8093e112804a45","name":"ch 5","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1360,"wires":[["c040850a4159a174"]]},{"id":"17b22c5c0901591e","type":"api-call-service","z":"7c8093e112804a45","name":"ch 6","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1420,"wires":[["607394373a4d70ed"]]},{"id":"e12f39669e9838b7","type":"api-call-service","z":"7c8093e112804a45","name":"ch 7","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1150,"y":1480,"wires":[["369564a4ad5d6386"]]},{"id":"c7b1855ad0e74a44","type":"api-call-service","z":"7c8093e112804a45","name":"ch1","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1120,"wires":[["458d96ac7caf326f"]]},{"id":"562f90d9d01bf852","type":"api-call-service","z":"7c8093e112804a45","name":"ch 2","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1180,"wires":[["458d96ac7caf326f"]]},{"id":"28758d5c9cbb8e11","type":"api-call-service","z":"7c8093e112804a45","name":"ch 3","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1240,"wires":[["458d96ac7caf326f"]]},{"id":"37e8f70008508b87","type":"api-call-service","z":"7c8093e112804a45","name":"ch 4","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1300,"wires":[["458d96ac7caf326f"]]},{"id":"26d26ebb8a5cb333","type":"api-call-service","z":"7c8093e112804a45","name":"ch 5","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1360,"wires":[["458d96ac7caf326f"]]},{"id":"6a576509891e8f3c","type":"api-call-service","z":"7c8093e112804a45","name":"ch 6","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1420,"wires":[["458d96ac7caf326f"]]},{"id":"c84f2c455bcba1a5","type":"api-call-service","z":"7c8093e112804a45","name":"ch 7","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":1480,"wires":[["458d96ac7caf326f"]]},{"id":"d56e53e370fb54d8","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1120,"wires":[["c7b1855ad0e74a44"]]},{"id":"eb37ae4531a8d01f","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1180,"wires":[["562f90d9d01bf852"]]},{"id":"607394373a4d70ed","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1420,"wires":[["6a576509891e8f3c"]]},{"id":"c040850a4159a174","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1360,"wires":[["26d26ebb8a5cb333"]]},{"id":"54b1ef740f636584","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1300,"wires":[["37e8f70008508b87"]]},{"id":"369564a4ad5d6386","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1480,"wires":[["c84f2c455bcba1a5"]]},{"id":"c2e4c2b780e41f48","type":"delay","z":"7c8093e112804a45","name":"","pauseType":"delay","timeout":"9","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1280,"y":1240,"wires":[["28758d5c9cbb8e11"]]},{"id":"ed8a95c95dc4b3f2","type":"switch","z":"7c8093e112804a45","name":"Above 2000 Ppm","property":"payload[\"/config/grogreen.csv\"].col4","propertyType":"msg","rules":[{"t":"gt","v":"2000","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":990,"y":1020,"wires":[["fd1d69b360c2b974"]]},{"id":"fd1d69b360c2b974","type":"api-call-service","z":"7c8093e112804a45","name":"STOP ALL","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_1, switch.1001207d06_2, switch.1001207d06_3, switch.1001207d06_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1170,"y":1020,"wires":[["d46ad0cf150fafc4"]]},{"id":"21af0a14976f9476","type":"file","z":"7c8093e112804a45","name":"BlueLogs","filename":"/config/BlueLogs.csv","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":1540,"y":880,"wires":[["dc721b77684d5411"]]},{"id":"e758886fed4e2b08","type":"csv","z":"7c8093e112804a45","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":1410,"y":880,"wires":[["21af0a14976f9476"]]},{"id":"dc721b77684d5411","type":"debug","z":"7c8093e112804a45","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1690,"y":880,"wires":[]},{"id":"c89ea2389c80664f","type":"change","z":"7c8093e112804a45","name":"1133","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg (1133): Ph went under 5.4, doser has been activated. Check status ASAP","tot":"str","dc":true}],"action":"","property":"","from":"","to":"","reg":false,"x":1470,"y":700,"wires":[["e758886fed4e2b08"]]},{"id":"d46ad0cf150fafc4","type":"change","z":"7c8093e112804a45","name":"1143","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg(1143) Error within system, pumps may need calibrating","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1310,"y":1020,"wires":[["e758886fed4e2b08"]]},{"id":"889d364795ba430d","type":"inject","z":"7c8093e112804a45","name":"BlueLab ripper","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"15","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{     \"topic\": \"tail-file-start\" }","payloadType":"json","x":160,"y":740,"wires":[["b0969e83678e1fe8"]]},{"id":"09df4ae3e15bb55f","type":"file","z":"7c8093e112804a45","name":"Nf","filename":"/config/grogreen.csv","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":470,"y":740,"wires":[[]]},{"id":"b0969e83678e1fe8","type":"tail-file","z":"7c8093e112804a45","filename":"/config/BlueLog/2022-01-23 154400.csv","createFile":false,"mode":"","encoding":"utf-8","split":true,"separator":"","fromBeginning":false,"flushAtEOF":false,"rememberLast":true,"limitSize":true,"maxBytes":"","skipBlank":true,"useTrim":true,"sendError":false,"interval":"","name":"CSV HERE","x":330,"y":740,"wires":[["09df4ae3e15bb55f"]]},{"id":"3e628c65f31d6bee","type":"change","z":"7c8093e112804a45","name":"1122","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg (1122): Within Recommended Levels","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1310,"y":1080,"wires":[["e758886fed4e2b08"]]},{"id":"6fab8f33ae97b205","type":"change","z":"7c8093e112804a45","name":"1124","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg(1124): Conditions are Optimal","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1290,"y":760,"wires":[["e758886fed4e2b08"]]},{"id":"9ec35ded97a42349","type":"change","z":"7c8093e112804a45","name":"1144","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg(1144): Pump or probe may need attention","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1350,"y":800,"wires":[["e758886fed4e2b08"]]},{"id":"c713a83020298766","type":"change","z":"7c8093e112804a45","name":"1666","rules":[{"t":"set","p":"payload","pt":"msg","to":"System Msg(1666) Fucking all hell is breaking loose SHUT SHIT DOWN!)","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1310,"y":980,"wires":[["e758886fed4e2b08"]]},{"id":"99e8ae0773c77d16","type":"inject","z":"7c8093e112804a45","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":150,"y":800,"wires":[["0df7d0b6609d34a3"]]},{"id":"0df7d0b6609d34a3","type":"moment","z":"7c8093e112804a45","name":"","topic":"","input":"payload","inputType":"msg","inTz":"America/New_York","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD.MM.YYYY HH:mm","locale":"C","output":"","outputType":"msg","outTz":"America/New_York","x":340,"y":800,"wires":[["86aaa2a44fdc6ccd"]]},{"id":"86aaa2a44fdc6ccd","type":"file","z":"7c8093e112804a45","name":"","filename":"/config/time.csv","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":540,"y":800,"wires":[[]]},{"id":"fb7497fed9316a95","type":"inject","z":"7c8093e112804a45","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"time","payload":"{     \"topic\": \"tail-file-start\" }","payloadType":"json","x":130,"y":920,"wires":[["f4fbc397d21f6223"]]},{"id":"f4fbc397d21f6223","type":"tail-file","z":"7c8093e112804a45","filename":"/config/time.csv","createFile":false,"mode":"","encoding":"utf-8","split":true,"separator":"","fromBeginning":false,"flushAtEOF":false,"rememberLast":true,"limitSize":true,"maxBytes":"","skipBlank":true,"useTrim":true,"sendError":false,"interval":"","name":"","x":280,"y":920,"wires":[["d2596263d1174f94"]]},{"id":"ca7da7ce8ee7f876","type":"moment","z":"7c8093e112804a45","name":"d1","topic":"","input":"payload.col1","inputType":"msg","inTz":"America/New_York","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD.MM.YYYY HH:mm","locale":"C","output":"payload.col1","outputType":"msg","outTz":"America/New_York","x":570,"y":860,"wires":[["22f7754c31a33517"]]},{"id":"22f7754c31a33517","type":"join","z":"7c8093e112804a45","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":690,"y":880,"wires":[["12b1037a1a9d35f8","8244c1e6c3feaf9d"]]},{"id":"d2596263d1174f94","type":"csv","z":"7c8093e112804a45","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":450,"y":920,"wires":[["22f7754c31a33517"]]},{"id":"8244c1e6c3feaf9d","type":"switch","z":"7c8093e112804a45","name":"","property":"payload[\"/config/grogreen.csv\"].col1","propertyType":"msg","rules":[{"t":"eq","v":"payload[\"/config/time.csv\"].col1","vt":"msg"}],"checkall":"true","repair":false,"outputs":1,"x":810,"y":860,"wires":[["a338a63c73a8a9b6","516663d4a242d337","e8b6675cece2b790","e221a018eb156be8","5a261aae7ee027f9","ed8a95c95dc4b3f2","fa190306e8747576"]]},{"id":"12b1037a1a9d35f8","type":"switch","z":"7c8093e112804a45","name":"","property":"payload[\"/config/grogreen.csv\"].col1","propertyType":"msg","rules":[{"t":"neq","v":"payload[\"/config/time.csv\"].col1","vt":"msg"}],"checkall":"true","repair":false,"outputs":1,"x":810,"y":900,"wires":[["2ab3fe0fb7747a69"]]},{"id":"2ab3fe0fb7747a69","type":"change","z":"7c8093e112804a45","name":"time check","rules":[{"t":"set","p":"payload","pt":"msg","to":"The Date or Time does not match","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":970,"y":900,"wires":[["e758886fed4e2b08"]]},{"id":"6e28f868fbef1981","type":"api-call-service","z":"7c8093e112804a45","name":"","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":800,"wires":[["9ec35ded97a42349"]]},{"id":"a52fadfc.d75d","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
mikeyB
LED-Curious
LED-Curious
Reactions:
Posts: 24
Joined: Wed Jan 19, 2022 11:45 pm

Code: Select all

[{"id":"a998dd17390238e7","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"12f22822e234e566","type":"api-call-service","z":"a998dd17390238e7","name":"ch8 on","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1250,"y":300,"wires":[["8204fe934e07e21b"]]},{"id":"287cdf9afbf955a7","type":"api-call-service","z":"a998dd17390238e7","name":"ch8 off","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2190,"y":300,"wires":[[]]},{"id":"d5d4f4a58ed5290d","type":"api-call-service","z":"a998dd17390238e7","name":"c/m","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.1001207d06_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":640,"wires":[["f01b50dbf8b6f13d"]]},{"id":"4418cf1eb9964cd4","type":"api-call-service","z":"a998dd17390238e7","name":"gh G","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.1001207d06_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":700,"wires":[["ecd0c0eceb1b8515"]]},{"id":"b40bcd90c8448a8b","type":"api-call-service","z":"a998dd17390238e7","name":"GH M","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":760,"wires":[["44efeb1ee5a79601"]]},{"id":"6318a8cbc87fd445","type":"api-call-service","z":"a998dd17390238e7","name":"gh F","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":820,"wires":[["399eb71164c8ba7e"]]},{"id":"3cf7c71b1283bb01","type":"api-call-service","z":"a998dd17390238e7","name":"boost","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.10013b653f_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":880,"wires":[["817f49633389bf37"]]},{"id":"a8c6b3c7255b566f","type":"api-call-service","z":"a998dd17390238e7","name":"ch 2","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2210,"y":640,"wires":[[]]},{"id":"f8b96d58b740e488","type":"api-call-service","z":"a998dd17390238e7","name":"ch 4","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2210,"y":700,"wires":[[]]},{"id":"e645942f2a8127b3","type":"api-call-service","z":"a998dd17390238e7","name":"ch 5","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2210,"y":760,"wires":[[]]},{"id":"2511d43a7e0f67cb","type":"api-call-service","z":"a998dd17390238e7","name":"ch 6","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2210,"y":820,"wires":[[]]},{"id":"e9d2410f5f97f640","type":"api-call-service","z":"a998dd17390238e7","name":"ch 7","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2210,"y":880,"wires":[[]]},{"id":"13fbb6bf727124d8","type":"api-call-service","z":"a998dd17390238e7","name":"all off","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.1001207d06_1, switch.1001207d06_2, switch.1001207d06_3, switch.1001207d06_4, switch.10013b653f_1, switch.10013b653f_2, switch.10013b653f_3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2190,"y":500,"wires":[[]]},{"id":"2bac8a27dd243774","type":"api-call-service","z":"a998dd17390238e7","name":"ch8/off","server":"a52fadfc.d75d","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.10013b653f_4","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2190,"y":400,"wires":[[]]},{"id":"f01b50dbf8b6f13d","type":"api-current-state","z":"a998dd17390238e7","name":"cal/mag","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.cm","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1500,"y":640,"wires":[["3566e24fd884dc6d"]]},{"id":"3566e24fd884dc6d","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"0.83","round":false,"decimals":0,"x":1630,"y":640,"wires":[["adaa70d76a4f3a7f"]]},{"id":"7dea2d33a1382bed","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1920,"y":640,"wires":[["3b360eb28adc0950"]]},{"id":"3b360eb28adc0950","type":"delay","z":"a998dd17390238e7","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2080,"y":640,"wires":[["a8c6b3c7255b566f"]]},{"id":"adaa70d76a4f3a7f","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1000","round":false,"decimals":0,"x":1760,"y":640,"wires":[["7dea2d33a1382bed"]]},{"id":"8204fe934e07e21b","type":"api-current-state","z":"a998dd17390238e7","name":"ph up","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ph_up","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1470,"y":300,"wires":[["5d7a8905346d8b9a"]]},{"id":"5d7a8905346d8b9a","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"0.83","round":false,"decimals":0,"x":1610,"y":300,"wires":[["2b79e0aef05cbbbd"]]},{"id":"77a107bbe6d13c55","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1900,"y":300,"wires":[["5b8a2fecacd1a1e5"]]},{"id":"5b8a2fecacd1a1e5","type":"delay","z":"a998dd17390238e7","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2060,"y":300,"wires":[["287cdf9afbf955a7"]]},{"id":"2b79e0aef05cbbbd","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1000","round":false,"decimals":0,"x":1740,"y":300,"wires":[["77a107bbe6d13c55"]]},{"id":"ecd0c0eceb1b8515","type":"api-current-state","z":"a998dd17390238e7","name":"gh grow","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.gh_gro","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1500,"y":700,"wires":[["73ac9209d0d3e246"]]},{"id":"73ac9209d0d3e246","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"0.83","round":false,"decimals":0,"x":1630,"y":700,"wires":[["af8ee4b439f3bf0f"]]},{"id":"3bda3ca7122a7ecb","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1920,"y":700,"wires":[["1de98d23fc4429cf"]]},{"id":"1de98d23fc4429cf","type":"delay","z":"a998dd17390238e7","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2080,"y":700,"wires":[["f8b96d58b740e488"]]},{"id":"af8ee4b439f3bf0f","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1000","round":false,"decimals":0,"x":1760,"y":700,"wires":[["3bda3ca7122a7ecb"]]},{"id":"44efeb1ee5a79601","type":"api-current-state","z":"a998dd17390238e7","name":"gh micro","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.gh_micro","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1500,"y":760,"wires":[["c46a06b9cc4ca8d5"]]},{"id":"c46a06b9cc4ca8d5","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"0.83","round":false,"decimals":0,"x":1630,"y":760,"wires":[["4beae1ae0aa3a789"]]},{"id":"6e652afb14fd1c67","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1920,"y":760,"wires":[["dce536057ac362e9"]]},{"id":"dce536057ac362e9","type":"delay","z":"a998dd17390238e7","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2080,"y":760,"wires":[["e645942f2a8127b3"]]},{"id":"4beae1ae0aa3a789","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1000","round":false,"decimals":0,"x":1760,"y":760,"wires":[["6e652afb14fd1c67"]]},{"id":"399eb71164c8ba7e","type":"api-current-state","z":"a998dd17390238e7","name":"gh bloom","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.gh_flora","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1500,"y":820,"wires":[["975a931f11c8b36e"]]},{"id":"975a931f11c8b36e","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"0.83","round":false,"decimals":0,"x":1630,"y":820,"wires":[["4b643c2a325b6af8"]]},{"id":"c3de446662652f85","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1920,"y":820,"wires":[["5e2298ad8aaf286d"]]},{"id":"5e2298ad8aaf286d","type":"delay","z":"a998dd17390238e7","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2080,"y":820,"wires":[["2511d43a7e0f67cb"]]},{"id":"4b643c2a325b6af8","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1000","round":false,"decimals":0,"x":1760,"y":820,"wires":[["c3de446662652f85"]]},{"id":"817f49633389bf37","type":"api-current-state","z":"a998dd17390238e7","name":"boost","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.boost","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1490,"y":880,"wires":[["62f37dc6b94f59ce"]]},{"id":"62f37dc6b94f59ce","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"0.83","round":false,"decimals":0,"x":1630,"y":880,"wires":[["a42eedbe8abaad49"]]},{"id":"e2e638364b451d7e","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1920,"y":880,"wires":[["5cedd6eb4bd025c0"]]},{"id":"5cedd6eb4bd025c0","type":"delay","z":"a998dd17390238e7","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2080,"y":880,"wires":[["e9d2410f5f97f640"]]},{"id":"a42eedbe8abaad49","type":"calculator","z":"a998dd17390238e7","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1000","round":false,"decimals":0,"x":1760,"y":880,"wires":[["e2e638364b451d7e"]]},{"id":"54d5d8a28ea173f8","type":"file in","z":"a998dd17390238e7","name":"read","filename":"/config/grogreen.csv","format":"lines","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":270,"y":480,"wires":[["526306de63059e78"]]},{"id":"c48a43ae5284193c","type":"function","z":"a998dd17390238e7","name":"last line","func":"let lines = msg.payload\nmsg.payload = lines[lines.length - 2]\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":640,"y":480,"wires":[["3a2ef3c47a5a97f9"]]},{"id":"3ed72a1cb3d043cf","type":"join","z":"a998dd17390238e7","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":510,"y":480,"wires":[["c48a43ae5284193c"]]},{"id":"526306de63059e78","type":"csv","z":"a998dd17390238e7","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":390,"y":480,"wires":[["3ed72a1cb3d043cf"]]},{"id":"0912b9a6cde9c022","type":"api-current-state","z":"a998dd17390238e7","name":"ph dose","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ph_dose","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":240,"wires":[["79df981202047865"]]},{"id":"e22d8bdeff16c075","type":"api-current-state","z":"a998dd17390238e7","name":"ph low","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ph_low","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":810,"y":300,"wires":[["79df981202047865"]]},{"id":"83f546ccbf6cbfdb","type":"api-current-state","z":"a998dd17390238e7","name":"ph high","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ph_high","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":360,"wires":[["79df981202047865"]]},{"id":"9c47dbce882ba47f","type":"api-current-state","z":"a998dd17390238e7","name":"ph warn","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ph_warn","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":420,"wires":[["79df981202047865"]]},{"id":"79df981202047865","type":"join","z":"a998dd17390238e7","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"5","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":990,"y":480,"wires":[["5c2f7e95a4692414","dfd3a4f1c997e377"]]},{"id":"0f89cc3bd06f1806","type":"api-current-state","z":"a998dd17390238e7","name":"Ppm Dose","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ppm_dose","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":830,"y":520,"wires":[["3829ab2c80b4be0c"]]},{"id":"a87a45bdb0591381","type":"api-current-state","z":"a998dd17390238e7","name":"Ppm low","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ppm_high","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":580,"wires":[["3829ab2c80b4be0c"]]},{"id":"8ebf4a8dfb38453a","type":"api-current-state","z":"a998dd17390238e7","name":"Ppm high","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ppm_low","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":640,"wires":[["3829ab2c80b4be0c"]]},{"id":"9ec9f8cded1696a9","type":"api-current-state","z":"a998dd17390238e7","name":"ppm warn","server":"a52fadfc.d75d","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.ppm_warn","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":700,"wires":[["3829ab2c80b4be0c"]]},{"id":"3829ab2c80b4be0c","type":"join","z":"a998dd17390238e7","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"5","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":990,"y":520,"wires":[["f79ece8934ec7711","bc638b1896a68a03"]]},{"id":"46e6f9e8b74631f0","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"complete","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":760,"wires":[["3829ab2c80b4be0c"]]},{"id":"3a2ef3c47a5a97f9","type":"change","z":"a998dd17390238e7","name":"","rules":[{"t":"set","p":"complete","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":480,"wires":[["79df981202047865"]]},{"id":"5c2f7e95a4692414","type":"switch","z":"a998dd17390238e7","name":"","property":"payload[4].col5","propertyType":"msg","rules":[{"t":"lt","v":"payload[3]","vt":"msg"},{"t":"btwn","v":"payload[2]","vt":"msg","v2":"payload[1]","v2t":"msg"},{"t":"gt","v":"payload[0]","vt":"msg"}],"checkall":"true","repair":false,"outputs":3,"x":1090,"y":380,"wires":[["12f22822e234e566"],[],["2bac8a27dd243774"]]},{"id":"384639df4fd6fb5d","type":"file in","z":"a998dd17390238e7","name":"read","filename":"/config/grogreen.csv","format":"lines","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":270,"y":760,"wires":[["f7e38f26e4def862"]]},{"id":"3b97725e96861089","type":"function","z":"a998dd17390238e7","name":"last line","func":"let lines = msg.payload\nmsg.payload = lines[lines.length - 2]\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":640,"y":760,"wires":[["46e6f9e8b74631f0"]]},{"id":"0f8edfd99ad16eaa","type":"join","z":"a998dd17390238e7","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":510,"y":760,"wires":[["3b97725e96861089"]]},{"id":"f7e38f26e4def862","type":"csv","z":"a998dd17390238e7","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":390,"y":760,"wires":[["0f8edfd99ad16eaa"]]},{"id":"f79ece8934ec7711","type":"debug","z":"a998dd17390238e7","name":"8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1330,"y":540,"wires":[]},{"id":"dfd3a4f1c997e377","type":"debug","z":"a998dd17390238e7","name":"7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1330,"y":420,"wires":[]},{"id":"bc638b1896a68a03","type":"switch","z":"a998dd17390238e7","name":"","property":"payload[4].col4","propertyType":"msg","rules":[{"t":"gt","v":"payload[0]","vt":"msg"},{"t":"btwn","v":"payload[1]","vt":"msg","v2":"payload[2]","v2t":"msg"},{"t":"lt","v":"payload[3]","vt":"msg"}],"checkall":"true","repair":false,"outputs":3,"x":1100,"y":580,"wires":[["13fbb6bf727124d8"],[],["d5d4f4a58ed5290d","4418cf1eb9964cd4","b40bcd90c8448a8b","6318a8cbc87fd445","3cf7c71b1283bb01"]]},{"id":"a52fadfc.d75d","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
Post Reply