Double post
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
welcome to reef2reef and thank you for trying out reef-pi.
Now, onto hs300 setup
- Go to Configuration -> Drivers section and add a new driver with type "hs300" and provide ip:port as addresss. Port should be 9999. IP you can get from your wifi router.
- Go to connector section and create 6 new outlet and analog inputs. You can name them whatever you want. I prefer to use Plug1 -> Plug6 to reflect Kasa's original naming. Associate them with pin 0 to 5 for plug1 to plug 6.
- After that you can create equipment and associate them with relevant outlets. You can also create fake ph probes and associate them with the corresponding analog input to chart current usage (in Amps)
This is probably the third time im writing these steps down :-( , i really need some help to update the adafruit guides
GFCI detects sudden surge in usage (amp) and break the circuit if needed. It can be used in cases where Ground or earth is not available.Different, but basically the same. As per my previous post, yes, AC Positive and Negative are switching at the Hz cycle - 60 times a second, so both wires are essentially the same. Hot / Neutral / Positive / Negative = same-same :) Like I said - different terminology.
Your gfci is used as what we call "Earth Leakage Unit" over here. While I'm not 100% sure exactly how our units work, I was under the impression that they monitored the earth connection and tripped if a value larger than a certain milliamp reading was sensed. Hence the importance of connecting those wires to equipment chassis etc.
Thank you for the clarification.

As an electrician I will chime in here to hopefully clear a few things up. This is for the US and only applies to residential electric services. Commercial and industrial stuff can be much different.GFCI detects sudden surge in usage (amp) and break the circuit if needed. It can be used in cases where Ground or earth is not available.
There are subtle difference between the neutral and live wire. Though they both carry current, neutral will read 0 volt compared to ground, while live/hot wire will read 120V compared to ground. Most equipment will not be impacted by this difference, but some will. Its a very common question and you'll find plenty of stack threads and quora questions on this exact topic.
The ATO is running well and consistently for the last few days, but I was doing a water change the other day and it ran a lot, didn't alert or shut off as expected.. Is the alert # in seconds for any given hour? It ran 2 hours straight with no alert or shutoff. I also noticed someone asked about that the other day and I didn't see if there was a reply or anyone verified that it wasn't a bug in 3.3
![]()
right now there is no easy way,. as the charts are built from the usage data directly. You can use the reef-pi db command to edit the ato_usage value to get rid of that specific usage, if you are up for some command :Would it be difficult to add reset button for charts?lets say my ato doses 10; but when I am out of water it d0ses 3600, so this number stays and I cant see 10 s graphs anymore.. if there would be reset it would be great. Now I have to delete it and make another..its same with other graphs..it takes a lot of work and if I delete it in diffrent order, i get something error and then I need to import settings and do it again..
Really annoying..
sudo systemctl stop reef-pi.service
sudo reef-pi db list ato
reef-pi db -store reef-pi.db show ato_usage 2 | jq . > usage.json
cat usage.json | sudo reef-pi db updare ato_usage 2
right now there is no easy way,. as the charts are built from the usage data directly. You can use the reef-pi db command to edit the ato_usage value to get rid of that specific usage, if you are up for some command :
1) Stop reef-pi
2) Get a list of ato id's. Identify the one that you want to fix
3) Dump the usage data of that ato in a file.
4) Edit that file to remove the value (with whatever you prefer). And then update it .
I am sharing the exact command for my ato (with id). I have the jq command installed to make it easy to read the usage data (installl: sudo apt-get install jq)
Code:sudo systemctl stop reef-pi.service sudo reef-pi db list ato reef-pi db -store reef-pi.db show ato_usage 2 | jq . > usage.json cat usage.json | sudo reef-pi db updare ato_usage 2
I have updated the doc with reef-pi db usage :-0) . I realize i should not wait for long release and start incrementally update the official docs.. even if their quality if not great, at least having these details there saves my time :) .
Try with sudo and you don’t have to pass the -store argemnt, the example was from my laptop, for actual build the default (/var/lib/reef-pi/reef-pi.db) should workI tried this to familiarise myself with the process.
When I run "reef-pi db -store reef-pi.db show ato_usage 2 | jq . > usage.json" I get the following
"parse error: Invalid numeric literal at line 1, column 7"
My ATO ID's seem to be 1, 2, 3, so I tried all of them as options and get the same response. Maybe this fiddling around stuff just isn't for me LOL
Try with sudo and you don’t have to pass the -store argemnt, the example was from my laptop, for actual build the default (/var/lib/reef-pi/reef-pi.db) should work
Be sure to make a build thread!!!Just wanted to pop my head in here and say thanks everyone for creating this project & community! I've been out of the hobby for 6 years and just getting a tank plumbed and setup, finding reef-pi is the highlight so far (but plumbing hardpipes is a close 2nd).
I put myself in for the robotank hardware kickstarter, to simplify the hardware build and got reef-pi installed on a RPi-2b I had laying around last night. Looking forward to getting the tank automated from day 1 :)
Notepad++ (Windows)Ranjib I managed to save db file for my ato 1 with this command:
reef-pi db -output reef-pi.db show ato_usage 1 | jq . > usage.json
but now I dont know how to open it.. yes I know:)
tnx
Has anyone hacked into an eheim auto feeder yet? I’m debating cracking mine open to try and make a reefpi auto feeder.
Try nano . It’s a text editor .Ranjib I managed to save db file for my ato 1 with this command:
reef-pi db -output reef-pi.db show ato_usage 1 | jq . > usage.json
but now I dont know how to open it.. yes I know:)
tnx