I also only use it to monitor only. To make it work, just use the code I attached to my last post.
Great tip, my Atlas Wifi Pool Kit is on its way ;-). How would I add the temp sensor to your code? Like below? Any need to fiddle around with my_custom_component.h
at all?
sensor:
- platform: ezo
id: orp_ezo
name: "orp"
address: 0x62
accuracy_decimals: 3
unit_of_measurement: "mV"
update_interval: 15s
- platform: ezo
id: ph_ezo
name: "pH"
address: 0x63
accuracy_decimals: 3
unit_of_measurement: "pH"
update_interval: 15s
- platform: ezo
id: rtd_ezo
name: "Temp"
address: 0x66 # see page 5 on https://atlas-scientific.com/files/Wi-Fi-Pool-kit-setup-guide.pdf
accuracy_decimals : 1
unit_of_measurement: "°C"
update_interval: 15s
i2c:
sda: D4
scl: D5
scan: True
On a related note, how do you calibrate the system once it runs ESPHome? telnet/ssh into the device and run the poll, ph, orp commands like page 19 of https://atlas-scientific.com/files/Wi-Fi-Pool-kit-setup-guide.pdf indicates?
You will need to change the digitalWrite(13, HIGH); to unable it.
To calibrate the probe, I had to use an Arduino UNO to calibrate it
Hi @smurry. Thanks for sharing your experience.
Would you mind to tell us how you manage the pumps (Bleach and/or Ph) from HA? I’ve seen that you calculate the Free Chlorine level from pH and Orp (using tabulated chart values). Then, you can send a command through Mqtt to the ESP32 to turn on/off the peristatic pumps. But did you create an automation to send the command to the bleach/ph pump(s) based on the Free Chlorine level or do you manage manually the chemical feedings ? Would it be possible to share your HA automation yaml configuration (or Node-Red ?).
Many thanks.
Thanks for the feedback. I plan to flash the pool kit with ESPHome and have not Arduino around. Will have to search the web for more info on how to calibrate the sensors from within HA.
No need for custom components or C code to do the pin enablement. This can easily be done with the built-in gpio switch functionality. My ESPHome code:
sensor:
- platform: ezo
name: "pH"
id: ph_ezo
address: 99
unit_of_measurement: "pH"
update_interval: 2s
accuracy_decimals: 2
- platform: ezo
id: orp_ezo
address: 98
unit_of_measurement: "mv"
- platform: ezo
id: pump_acid #Currently only reads pumped volume from the pump
address: 103
unit_of_measurement: "ml"
- platform: ezo
id: pump_cl #Currently only reads pumped volume from the pump
address: 104
unit_of_measurement: "ml"
switch:
- platform: gpio
pin: 14
name: "pH On"
inverted: yes #Makes the ON status turn the pin LOW
internal: true #Hides the switch from Home Assistant so as not to clutter the interface
restore_mode: ALWAYS_ON #Sets the switch status ON at boot
- platform: gpio
pin: 15
name: "Temp On"
inverted: no #This pin needs to be HIGH, so not inverted
internal: true #Hides the switch from Home Assistant so as not to clutter the interface
restore_mode: ALWAYS_ON #Sets the switch status ON at boot
- platform: gpio
pin: 12
name: "ORP On"
inverted: yes #Makes the ON status turn the pin LOW
internal: true #Hides the switch from Home Assistant so as not to clutter the interface
restore_mode: ALWAYS_ON #Sets the switch status ON at boot
- platform: gpio
pin: 13
name: "AUX On"
inverted: yes #Makes the ON status turn the pin LOW
internal: true #Hides the switch from Home Assistant so as not to clutter the interface
restore_mode: ALWAYS_ON #Sets the switch status ON at boot
Seth,
I read thru this and several other areas to get my Atlas Scientific Pool Kit working. In the end, the part I was missing was doing the pin low/high to activate the sensors. I also have all the parts coming separately to build from scratch, including pumps.
I am using this kit to strictly monitor levels as you mention you want to do. I will write up a quick and dirty guide if you or anyone else is still interested. With what I know now, I can get it going in 30 min or less, including turning up ESPHOME.
~TJ
I recently bought the Atlas Scientific Pool Kit and mainly need some suggestions. The electrical supply to my pool equipment only has a 220 line (2 hot legs). Any suggestions for a power supply or other device to step down the power so I can have the 5v for the Altas equipment as well as 12-24v for the pumps? Thank you for any assistance.
Get an adequate power supply for your pumps as they will consume the most electricity. I guess you could use a buck converter from the 12/24 down to 5v (make sure voltage is properly set before plugin it into the kit), or just use a cheap USB power supply for the kit.
Yes, I know I need to convert the power, I’m looking for a suggestion aka link to a good product. I guess a power supply that can take 220v and output 5v as well as the power needed for the pumps. Does such a product exist? I’d rather something I can just wire in vs having to solder anything.
You can walk into any electronics/electrical shop and buy a 12 or 24v DC power supply.
From there a buck convertor for the 5v needed for the atlas stuff and the esp. Or a separate 5v supply, see para 1.
A 220v to 12/24v AND 5v might exist, but that is not the common way of doing it. A cheap buck converter will work fine.
Btw, buck converters are everywhere in appliances we use every day. They are very efficient and very cheap. Your computer has them to convert the 12v from the main power supply to USB for example. This is what a manufacturer would do if they were to create an elegant one-piece package 12/24v pump with ESP measuring kit.
Just make sure you set the buck converter correctly before plugging it into the pool kit. Plenty of videos on youtube on how to do that, very easy.
If you aren’t confident enough to use a voltmeter, use a USB power supply, can’t go wrong.
For those that purchased the atlas scientific kit, how has the accuracy been on calculating free chlorine? I’ve heard the ORP probes are not very accurate for outdoor pools due to the need for CYA.
How are you sending the rest of the i2c commands through esphome? Dosing, calibration, etc?
Unfortunately at this time I’m not. I’m stuck with what some kind stranger has created an earphone module for.
I badly want to be able to do that, and I’ve done enough research to see that the current module is just an esphome’d version of the atlas reference code. One of these days I need to get enough time to do similar module additions for the reference code for the pumps, calibration, etc. I just haven’t found time, and I’m also not good enough at development to be able to just pull it off in a few hours etc. if I get it before a better developer does, I’ll definitely post it and create a PR.
Did you ever get around to adding support for the ezo pumps in tasmota??
Thanks. For what it’s worth, they work fine with the current setup. You can issue all the commands with sensor78, including the dispense command for a specific amount. Very cool. Now to see if it’s strong enough to use with my pool…