I’ve begun work on a system that will send pH, ORP (oxidation/reduction potential), and water temperature data from my pool to my Home Assistant instance at regular intervals, inspired primarily by “raspipool” (GitHub - segalion/raspipool: Swimming Pool Automation Systen with Raspberry Pi + Home Assistant). I went a different way with the primary hardware and have an Arduino Uno Wifi rev2 board instead of another RPi. To test the setup of communication between the Uno and Home Assistant, I set up MQTT sensors, input_number helpers, an automation to translate the MQTT values to the input_numbers, and a dashboard in HA, and wrote a “mock” service that sends randomized data (within specific parameters so it’s not all over the place) from the Uno to the MQTT topics.
A full write-up of the configurations I found necessary, as well as the Arduino code is at:
I already have all the other components - the “Whitebox T2” shield, the EZO circuits, and related probes, but just ordered still need an enclosure and some other support hardware in order to flip the EZO circuits to I2C mode (they come factory-programmed for UART and the T2 only allows for I2C), and of course I need to build the plumbing necessary for the probes to actually do their job reading the pool water. But I’m glad to have the proof-of-concept already running. For the next iteration, I will attempt to tackle all of the “future vision” bullet points:
Future Vision
Connect Whitebox T2 Arduino Uno Shield to the Uno Wifi rev2
Connect the following sensor probes to the Whitebox T2:
Design a modified version of the HA “Gauge” card that has severity coloration at both the low and high end of the arch, since the pH and ORP should have a specific “good” range that does not start with 0 (pH being “good” between 6.9 and 7.4, ORP optimally being above 650mV and generally topping out at 850mV).
Build the pool circulation system bypass rig for the probes
You may well be right, but I would put the Atlas Scientific sensors somewhere above consumer level, they have pro ones, but that raises the price considerably.
As for the FC sensor - I plan to implement the calculation on the Arduino instead of in HA, and just have an MQTT topic that it will be sent to. That way the separation of concerns will allow someone to implement the Arduino side of the equation and use whatever system that can leverage MQTT on the other side.
Biggest problem with those charts is they only work in a strict pH range ~7-8pH. So outside of that it needs a different calc or an outside pH range(error) check. Presumably it’s because it’s some wild exponential calculation.