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 the 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. The dashboard receiving the mock data currently looks like this:
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:
- And their related EZO circuits:
- Flip the EZO circuits to I2C mode using the breadboard/jumper wire method
- Put the entire thing in an Adafruit Flanged Weatherproof Enclosure w/PG-7 Cable Glands
- Calculate estimated Free Chlorine PPM based on temp, ORP, and pH readings.
- Indiate “trends” (pH trending downward, ORP trending upward, etc…)
- 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