Going to next level of Aquarium Automation...who's with me?

Dude! I finally had some free time to try the pyseneye & Seneye component you made for us. Awesome! Now I just have to order some new slides. Thank you!

Also, back when I setup my Seneye through the API interface, I made my own icons for pH, NH3, O2, NH4, and light values. (see screenshots) Dunno if there’s a way for you to include them as part of your component but I’m happy to contribute them to the HA component. Just tell me where to send / upload them. :slight_smile:

Well done!

20 13

Glad to see someone else is getting some use out of it :slight_smile:

Great icons! I think the best way to get them included is to contribute them back Material Design Icons, then I can change to using them once they’re accepted there. https://materialdesignicons.com/contribute

1 Like

I found this may interesting for finding NH4 value from dissolved NH3


refer from https://www.jmaterenvironsci.com/Document/vol8/vol8_NS/522-JMES-2876-Purwono.pdf

1 Like

@cowboy I’ve released a more complete version of my AquaIllumination component. Finally did a write up on it as well. Figured I’d add a link back here as well, since this is pretty much definitive aquarium thread.

2 Likes

Hi,

I have been following your project for quite a long time just reading through and through trying to see how i can put it into my use as i don’t own a aquarium but i do hobby hydroponics and the hobby has gone quite a big now changing water from tanks and dosing plants is just a head ache so for nothing is problem running dosing pumps on 12v with input slider as how long it will run the relay the pump is plugged into seconds it runs so its 1ml per second setting achieved by putting a speed controller in between the pumps and controlling their pumping speed till i got to my 1ml/sec.

Please i would like your and the community help into i want to integrate pH, EC dissolved sensors and i am not a coder or anything but i follow any guide and tweak things like anything please if any one can point me this direction how can connect Ph and ec sensors to HAssio it will be a great help into next direction

thanks in advance.

Hi Gagan,

As far as doser pumps, I’ve already done a write up on how to convert 220V Stepper motors for doser pumps into HA controllable, removing the need for the older micro controller they previously were provided with. I also provided the code I threw together to provide the User Interface elements & MQTT side of the solution.

This solution should even work with DC powered motors either with the DC version of the Sonoff 4-gang switch or if you build it from the ground up, 3D printing the dosing components and supplying only ESP chips and motors, and wiring it together yourself.

Of further interest to you, I’ve adapted two 4 channel dosers this way, and One has been installed on the aquarium with great success. The second unit had nothing to do since I stopped with breeding clownfish, so now it waters the backyard flower garden for my wife. I even introduced a binary sensor to indicate when it’s raining, that it doesn’t need to water the flower garden on that day.

Unfortunately, I’ve not had any time or hard requirement to implement EC or pH Tube sensors. My salinity stays pretty solid in place, and pH is measured by the Seneye devices I have. (Bows in appreciation to @mcclown for making this possible.)

I do know that making the hardware for pH meters is esp difficult due to electrical isolation requirements needed for an accurate pH measurement. There are some links to some 3rd party solutions that are prebuilt and made for makers, which are above (I posted about a year back about this topic) which I would recommend you to look at. But perhaps someone else on the forum has made their own pH / EC solutions and has good plans for it and will chime in to help you.

Good luck and keep us posted what you end up finding to go with, so that other’s may also learn from your experiences. :slight_smile:

Hi,

thank you for taking the time out and replying, i have had full luck with all the automations from drain pumps (relays with level float sensor) to fill pumps(relays with level float sensor) even putting in flow sensors to calculate amount of water flowing in and out of the tanks.

Again the relays control all the important functions like lights fans heater chiller humidifier connected with corresponding automations.

the problem when i get stuck with is again pH and EC i am even ready to spend for tentacle shield and stamps by atlas scientific but then again i am no coder i need something which tells me how to connect, will go over again with your recommendations.

i have scoped now the tentacle shield and the example library is pretty easy to code on arduino and run any idea how we can get feed from sensor connected to UNO on I2C to hassio ?

Thankyou again

Hi @Gagan_Kochar

I would urge you to check out reef-pi - there is a tutorial on how to integrate the atlas scientific pH probe. The info from Reef-Pi is then available via API, which can be easily pulled into HomeAssistant as a sensor. Even if you only use it for getting pH readings, it will be by far the easiest way to grab that data, as you won’t really have to muck about with code.

You can also look through the giant Reef2Reef thread to see how other folks are getting pH readings with it.

The Atlas probe is too pricey for my little nano setup so I’ve just integrated a Google spreadsheet where I update dropper tests. You can read more about my setup on my Reef2Reef thread, which is a mixture of Reef-Pi and HomeAssistant control.

Just for kicks, here’s what mine looks like lately:

2 Likes

Thank you , for the link to reefpi going to check this out also had a email conversation with atlas scientific they say they are currently working on the code for mqtt as almost everyday they are getting requests the guy said almost 2 weeks and it will be done. so looking forward for that also,

can you also share how you used API settings from reefpi to HASS your system seems to reporting all the values needed

many thanks

1 Like

Good to know about the MQTT! A much needed option.

The sensors and controls that go to Reef-pi are just Rest Sensors. For different sensors, it’s just the “resource” link that changes.

The sensor.yaml entry for getting the water temp look like this:

- platform: rest
  name: ReefControlPiTemp
  username: !secret reefcontrolpi_username
  password: !secret reefcontrolpi_password
  authentication: basic
  resource: http://reefcontrolpi.local/api/tcs/1/usage
  headers:
      Connection: keep-alive
      content-type: application/json
      Referer: http://reefcontrolpi.local/
      Cookie: !secret reefcontrolpi_cookie
  value_template: '{{ value_json.current[-1].temperature | round(2) }}'
  unit_of_measurement: '°F'

My entire (giant) HomeAssistant config is on github here if you want to see more.

1 Like

@sfgabe thank you for pointing me to your github page, I think i will now be able to get to where i want will keep posted how my project goes

thanks again

1 Like

I have released a Swimmig Pool Automation System based on raspberry pi + HA, that have some similarities with this project. Maybe people here can get or propose ideas.
I use Atlas Scientific EZO boards and I have a custom-component to support all of them (pH, ORP, Dissolved Oxigen and Conductivity…). Only pH and ORP has been tested, and only UART connection is supported (no I2C).

Thanks

Thnaks

1 Like

Hi sfgabe, how are you storing the cookie details in your secrets file? I tried and it complains about tabs in the cookie.

1 Like

As far as I can see there shouldn’t be any tabs in the cookie, you might want to check for a copy/paste error. Here’s what I have in secrets.yaml:

reefcontrolpi_cookie: "auth=BIGSTRINGOFNUMBERSANDLETTERS="

Thanks for that. I didn’t have the auth= in front of the cookie. It’s now working.

1 Like

@sfgabe thanks for posting your entire HA config online. I still need to clean up mine & get mine posted likewise, and is on the list of things to do.

One thing I learned from your setup was the whole Janet speech engine. Ref URL for those who, like me, also missed that memo about Janet:

I am currently using Google TTS via all my remote Pi boxes via the speaker output. The core HA instance sends texts to say out to the Pi boxes via MQTT, and TTS conversion happens on each Pi. I’ve also been very surprised and pleased how “in sync” all the speakers sound across the house, despite different system loads on each Pi.

How is Janet working out for you? By any chance do you have some videos or audio recordings of how it sounds? Any implementation tips to watch out for? I think I may give this a try myself.

And again, thanks!

1 Like

@cowboy ha just in time for the final season! It would be especially cute to get her to give aquarium updates with fish facts, etc.

Janet (the Project you linked to) was great, though I think the latest google TTS changes on version (97.2) messed something up on my system, so she’s been troublingly quiet since I upgraded. I’m planning to look into this week, if I get anywhere I’ll post on the Janet page.

The code itself, with all the randomized response macros have been useful for other parts of templating, so it’s a good reference doc anyway.

Voices are from the Google Translate source, so you can pick any of these: https://cloud.google.com/text-to-speech/docs/voices - IMO “en-US-Wavenet-F” sounds the most Janet-like. You used to define the voice in the config.yaml file, but I’m not sure if that’s correct anymore.

1 Like

Hi All,

I have been trying to get pyseneye running on my pi on jesse but keep getting errors stating that libraries not available and the error below. Tried both python and python3 with and without sudo and same errors and pulling my hair out here. I have a device connected so it should just work.
All advice welcomed…

Alan

image

@pondguru,

Did you do a “pip install pyseneye” first?

Yes I did and I can see it loads correctly too…
Very strange.

Alan