Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Home assistant build
#1
Hi all,  this is my second time making my controller, the first time I fried the board and Rob was kind enough to send me another one.  I am documenting my build with home assistant (HA) as a reference for others.  I am having issues posting pictures so i have attached it here.

Background:
I have home assistant running in a VM in my synology for about 6 months, and have a lot of things integrated like thermostats, powerbars, garage door openers etc.  It is also controlling the timers for my fish tank via tasmota flashed powerbars in which I have 3.  I am not exactly happy with my setup as I dont want to overdose kalk for example and nuke my tank.

Currently I have a ATO controller and a temperature controller running, I want the reefpi to replace it.  Other equipment like pump, skimmer, dosing pump etc are controlled by HA.  Unfortunately the dosing pump i have is a BRS AC dosing pump so cannot use the DC port functions, I may change it at a later date.

Tank: SW tank 120g + sump with a skimmer, AI lights, 3 powerbars controlled by HA, dosing pump, skimmer, ATO, ecotech powerhead + battery backup etc.

So far I only have the temperature probes and pH probes in the tank monitoring.  I did the temperature calibration (using my inkbird) and the temperature seems to match.  The pH probe is also functional but I am not sure if i trust the reading.  First I calibrated it using the provided calibration fluid @ 6.86 + 9.18, however when I put it in the calibration fluid it would show a different result.  Not sure if it is a setting, but i ended up calibrating it to my pH pen.  I will slowly move my heaters over to the reef pi once I get more comfortable.
With many hours on R2R, I have the float sensors, pi status etc communicating with the HA via MQTT, and HA can control the reefpi via API.  Currently the reefpi is on wifi but I will eventually put it on ethernet.  I am more familiar with HA and I think I can create a more robust system using HA.  So I am planning to put all the logic on HA and using the reefpi simply as input/ output interface.

Currently with my kalk automation, it turns on and off via a timer and has been pretty reliable.  In the case where I restart my HA during the time the timer turns off.  I also have a alarm in parallel to monitor how long the switch turns on, if the switch is on more than the intended time HA will notify me.  

I hit many bumps trying to get reefpi to communicate to HA, get the reef pi cookie, getting the equipment pinouts etc.  If there are interests I can share my code in the post.  

The left most column is my AI lights, showing the channel schedule.  Bottom left is my tasmota powerbar.
The middle column shows the temperature of the reefpi as well as sensor status.
The right column shows the pH as well as controls of the AC & DC ports (DC are not mapped yet.)

Enjoy.

Im retarded and dont know how to post pictures - added attachments.


Attached Files Image(s)
       
[-] The following 1 user Likes derek.xenia@gmail.com's post:
  • Rob F
Reply to top
#2
Very cool, I think it's awesome reef-pi can integrate into these 3rd party apps.

What kind of readings were you getting for pH? It's common if you use say 6.86 it won't read that but should be somewhat close. If you did a single point calibration with 6.86 after setting point one you should then get 6.86 from the probe after you close the calibration window. The value showing in that is always the uncalibrated value so you can only see the effects once you enable the pH.

Sorry about the crappy forum, it's frustrating there are no extensions to make it easier unless the images are hosted on a 3rd party site which I'm not really a fan of. It seems forum packages like this aren't widely used anymore because of social media they say, so development has come to nearly a standstill and few are making extensions now.
Reply to top
#3
(05-22-2021, 09:15 PM)Rob F Wrote: Very cool, I think it's awesome reef-pi can integrate into these 3rd party apps.

What kind of readings were you getting for pH? It's common if you use say 6.86 it won't read that but should be somewhat close. If you did a single point calibration with 6.86 after setting point one you should then get 6.86 from the probe after you close the calibration window. The value showing in that is always the uncalibrated value so you can only see the effects once you enable the pH.

Sorry about the crappy forum, it's frustrating there are no extensions to make it easier unless the images are hosted on a 3rd party site which I'm not really a fan of. It seems forum packages like this aren't widely used anymore because of social media they say, so development has come to nearly a standstill and few are making extensions now.


Rob,  I was confused about the term 'mid point' in the calibration.  Maybe I was doing something wrong.

First time i did it i had 6.86 and 9.18 solution.  So i put the probe in 6.86 and entered it in midpoint.  Repeat that with 9.18 in second point.  Then I left the probe in the 9.18 solution and it was showing 9.5.

Unless it was meant to put the midpoint, (6.86 + 9.18 )/2 = 8.02, so I enter 8.02 as mid point and 9.5 as second point?  If that is the correct way I will calibrate it again.

The way I did it is not so good, I used a pH pen to measure the water and used that to calibrate my probe using a single point calibration.  I think the value relatively should be correct, just not sure about the precision of the measurement.
Reply to top
#4
Sounds like you did it correct the first time, maybe you didn't leave the probe in solution long enough, it can take a while to stabilize, maybe try leaving it 10 minutes or something, don't press the set button until it's stable. I don't think you did but don't close the calibration window until both points are done.
Reply to top
#5
I forgot to ask about the HA graphs, can you set a rolling average? That would smooth out the lines.
Reply to top
#6
Ok will try to calibrate it again.

I'm still learning HA, the default lovelace is a no frills version. I can export that to grafana and do more customization with it. I think Ranjib from R2R is looking at it also.

I got a RP3B+, now wished i got the RSP4 as it comes with USB3. Now i'm thinking of getting a SSD via USB 2.0 to run the OS as the micro sd isnt so reliable. Has anyone done it yet?
Reply to top
#7
Thought I would see if anyone uses SSD. I hear it's a good upgrade to do, even a USB stick is probably better than SD card, I've seen tutorials on booting from one but haven't tried it yet.

The Pi4 is nice but 3 runs a lot cooler, the 4 can get quite hot.
Reply to top


Possibly Related Threads…
Thread Author Replies Views Last Post
  The Dewd Robo-Tank build thread Dewd 29 1,590 01-21-2021, 02:23 AM
Last Post: Rob F

Forum Jump:

Current time: 06-14-2021, 08:37 AM