How to make PH Sensor that works with Home Assistant?

  Переглядів 15,318

KPeyanski

KPeyanski

День тому

Join me in Revolut - peyanski.com/revolut/
Why to #DIY #PH Sensor for #HomeAssistant? There are a several important water characteristics that have to be monitored and controlled all the time so the water in your pool, fish tank, or for gardening can stay usable and healthy. One of the most important water characteristics is the PH. What if you can have the PH readings in Home Assistant in real time, so you can have a safe and clean water during the whole season?
► MY ARTICLE ABOUT THAT TOPIC - peyanski.com/diy-ph-sensor-fo...
► MY HOME ASSISTANT INSTALLATION METHODS FREE WEBINAR - automatelike.pro/webinar
► DOWNLOAD MY FREE SMART HOME GLOSSARY - automatelike.pro/glossary
► PH SENSOR PARTS (AFFILIATE LINKS)
D1 Mini ESP8266 - s.click.aliexpress.com/e/_Dms...
PH Value Detection Sensor - s.click.aliexpress.com/e/_DeR...
LCD1602 Display module - s.click.aliexpress.com/e/_DEA...
5K Ohm Potentiometer - s.click.aliexpress.com/e/_DBi...
Jumper Wires - s.click.aliexpress.com/e/_DEo...
ProjectBox 100x60x30mm - s.click.aliexpress.com/e/_Dmt...
Soldering Iron - s.click.aliexpress.com/e/_Des...
Hot Glue Gun - s.click.aliexpress.com/e/_DeJ...
► AFFILIATE LINKS
SwitchBot Flash Deals - switchbot.vip/3BwF221
Shelly Amazon Store - amzn.to/34d88VR
Shelly Official Store (main page) - bit.ly/3BwMMn2
Reolink Flash Deals - shrsl.com/301ih
Aqara Amazon Store - amzn.to/3EpeCSb
Tech that I’m using right now - www.amazon.com/shop/kpeyanski
Get $100 in credit over 60 days for DigitalOcean - m.do.co/c/6dd2caef1f1f
Register for Kajabi from here app.kajabi.com/r/NetydFAg and I will share half of my commission with you (15%)
► CRYPTO AFFILIATE LINKS
Sign up for Crypto.com and we both get $25 USD (Referral code: xn86atnceg) - crypto.com/app/xn86atnceg
Deposit more than $50 in Binance and receive 100 USDT cashback voucher - www.binance.com/en/activity/r...
Binance - One of the biggest Crypto currency exchange - www.binance.com/en/register?r...
► SUPPORT MY WORK
Paypal - www.paypal.me/kpeyanski
Patreon - / kpeyanski
Bitcoin - 1GnUtPEXaeCUVWdJxCfDaKkvcwf247akva
Revolut - revolut.me/kiriltk3x
► TIME TABLE
00:00 Intro
01:01 Is Home Assistant needed for the Smart pH Sensor?
02:24 Needed Parts for the Smart DIY pH Sensor
04:27 Cutting the Box so it can carry all the parts
05:01 How to connect the Smart DIY pH Sensor parts?
05:29 Installing ESPHome on the D1 Mini
06:59 Adjusting the display brightness
07:31 Calibrating the Smart pH Sensor
09:12 Adding the Smart pH Sensor in Home Assistant
11:13 How to make PH Sensor automation in Home Assistant?
► ESPHOME PHSENSOR GITHUB PROJECT
github.com/mlauhalu/esphome-p...
► GUAGE CARD FOR THE PH SENSOR
type: gauge
entity: sensor.ph_sensor
needle: true
min: 1
max: 14
segments:
- from: 1
color: '#db4437'
- from: 6
color: '#ffa600'
- from: 7
color: '#43a047'
- from: 8
color: '#ffa600'
- from: 9
color: '#db4437'
► PH SENSOR HOME ASSISTANT AUTOMATION
alias: if pH goes above 8 or below 6.5
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.ph_sensor
above: '8'
- platform: numeric_state
entity_id: sensor.ph_sensor
below: '6.5'
condition: []
action:
- service: persistent_notification.create
data:
message: The pH value becomes {{ states('sensor.ph_sensor') }}
mode: single
► ESPHOME CODE THAT I USED
gist.github.com/peyanski/9029...
✅ Don't Forget to like 👍 comment ✍ and subscribe to my channel!
► DISCLAIMER
Some of the links above are affiliate links. If you click on these links and purchase an item I will earn a small commission with no additional cost for you. Of course, you don’t have to do so in case you don’t want to support my work!

КОМЕНТАРІ: 94
@taxy71
@taxy71 3 місяці тому
Thank you! yours videos are perfect! keep it up this way.
@KPeyanski
@KPeyanski 3 місяці тому
Thanks, will do!
@bobbymsq
@bobbymsq 11 місяців тому
Great work thanks for sharing, can you help with this cuiosity, what's the use for the 5k potentiometer?
@joels7605
@joels7605 Рік тому
Excellent work, sir.
@KPeyanski
@KPeyanski Рік тому
Thank you very much!
@Tntdruid
@Tntdruid Рік тому
Very cool, I need to try that 👍
@KPeyanski
@KPeyanski Рік тому
Go for it! And let me know what happened.
@botialoach1
@botialoach1 Рік тому
Great work keep it up, can not wait to use my pH sensor in my fish tank but I have a problem after connecting everything together all I get on the display is squares or nothing depending on the position of the potensiometer of the display NO readable letters any help would be appreciated ?
@botialoach1
@botialoach1 Рік тому
Excellent, keep up the great work you are doing , I needed one for my fish tank , when you have time think about a temperature sensor for my fish tank also, many thanks
@KPeyanski
@KPeyanski Рік тому
Thanks, will do!
@taxy71
@taxy71 3 місяці тому
yes please, im trying also project for my >Aquarium Ive got TDS sensor , Ph sensor (same as you have), and Temperatur sensor DS18b20. it would be really nice to have one video from you. I think a lots of ppl from Hassio do have Aquarium and they would be also happy. same sensors can be for pool in use. THANK YOU
@user-oi2xo8ve8q
@user-oi2xo8ve8q 8 місяців тому
Hi there, thanks for your effort. I have a question: Do we need to remove the pH meter sensor from the water? For example, if I have a substance that I need to measure, should I periodically remove and clean the sensor?
@Robert-JanKempink
@Robert-JanKempink 10 місяців тому
Nice! i would like also to see a video about ORP :) i think that would be a little bit harder but possible
@JoaoGabriel-bk6pn
@JoaoGabriel-bk6pn Рік тому
Top!!!! This was what I was searching! Is it possible to make it without the screen? Thanks
@KPeyanski
@KPeyanski Рік тому
Yes, of course
@osr75
@osr75 8 місяців тому
Nice Video with good idea! I'm trying to do for a pool, the idea is to take an esp32, or similar, power with small solar panel with some small betteries and test PH, TEMP and ORP or clorine. All togheter insde in a floating Clorine device, with the solar panel on the top! with ESPHOME every 30 minuts ( for example) ESP32 with wakeup, send PH+TEMP+clorine level by WIFI to Home assistant, and go to deepsleep andother time for 30 minuts! In the mena time the minisolar panel will give power to the batteries to keep enough energy!
@antoniomazabandes5419
@antoniomazabandes5419 Рік тому
Hello Kiril: How would we do it if we had two sensors for the display on the i2c screen?
@Hautakoskifi-
@Hautakoskifi- Рік тому
I got this to work! And also add Dallas temperature sensor. Using it with aquarium..
@Hautakoskifi-
@Hautakoskifi- Рік тому
Also making other one for my pool for next summer! I have just take first steps to home automation, esp so on. Thank you for making also good videos. Without good videos, it’s not kinda possible to start to make sensors so on. Good learning, step by step. 😁
@KPeyanski
@KPeyanski Рік тому
Great to hear. I'm super happy that I was able to help. Don't forget to check my other DIY smart sensor videos. I have a whole playlist of them :) Enjoy!
@kirkk2643
@kirkk2643 21 день тому
THANK YOU. Followed your example and it works as expected. However, I noticed that the pH value doesn't represent the reality when the pool water changes temperature. Can you please tell me how to fix that? Couldn't find anything about how to make temperature compensation.
@lucamarcio4110
@lucamarcio4110 Рік тому
Ciao Kiril, what about creating an aquarium control device that controls temperature, water level, pH value and LED lights all together? It would be great and your tutorial would have a tons of visualizations for sure! Think about it, please! Many thanks.
@KPeyanski
@KPeyanski Рік тому
Cool idea. I will think about it. Thanks for the comment
@nehajain2974
@nehajain2974 Рік тому
You make such great useful tutorials... please please please make a tutorial on how to connect and use multiple Bluetooth speakers with raspberrypi.... please I have been searching how to achieve this since so long. Please consider this humble request
@KPeyanski
@KPeyanski Рік тому
Thanks, I will think about it!
@JournaldeThomas
@JournaldeThomas Рік тому
It is really a good idea and I will try to do something similar. But I am wondering how to let the pH meter all the time. Perhaps on the top of the pump…
@KPeyanski
@KPeyanski Рік тому
Yes, top of the pump is not a bad idea. I may "steal" that from you ;)
@christian1603
@christian1603 Рік тому
Nice video, just what I needed ! For powering the ESP8266/ESP32 : I presume each micro USB cable with adapter of any phone or tablet may be used for this (are Amps important ?) ? Do you have a link in case I would like to buy one for this project ? Thanks !
@KPeyanski
@KPeyanski Рік тому
Yes, adapter is needed or any regular usb socket like the one from a laptop/desktop or other similar devices. Amps are not important.
@511Burak
@511Burak 2 місяці тому
Hi friend have a question. Is it possible to combine PH Sensor and a temperatur sensor to showing on the same display? Actually have another esp32 board to shown water temp. Is it possible to measure on same esp32?
@private2707
@private2707 Рік тому
Thanks for the great tutorial!! I was wondering if you went further and pickup a thermometer to read the solution's temperature. PH reading will vary according to the temperature.
@therevoman
@therevoman 9 місяців тому
can you do this and add the temperature sensor as well?
@kirkk2643
@kirkk2643 20 днів тому
Did anyone find the solution for temperature compensation?
@Mimbultonia
@Mimbultonia 5 місяців тому
I find the dh1 mini is a bit power limited. I already have a dh1 mini running a temperature sensor and when I added a float switch the temperature sensor stopped and I think this was due to power available - do you think it would also run a pH sensor or would it need its own dh1 mini? I’m a bit limited on power sockets and would prefer to run just the one dh1 mini if possible.
@marconugnes6192
@marconugnes6192 Рік тому
Great idea! Thank you! Do you think is it possible to have multiple sensors? Ph, temperature and chlorine? Marco
@KPeyanski
@KPeyanski Рік тому
Why not? I think it is doable...
@marconugnes6192
@marconugnes6192 Рік тому
One last question.. is it possible to do this project without a screen? For working with esp home it’s a must to have an i2c bus?
@peripharel
@peripharel Рік тому
Worked perfectly! So next step is to control dosing pumps. Anyone have any examples?
@KPeyanski
@KPeyanski Рік тому
Great to hear! So you can use the #phowned hashtag as well, right? 😉
@peripharel
@peripharel Рік тому
#phowned
@TheAlexdj1971
@TheAlexdj1971 11 місяців тому
Thanks for the video. I have a question. The probe you use has a screwable cap, If I leave this probe in a fish tank full time, can I remove the cap and get instant readings?
@codahq
@codahq 8 місяців тому
did you try this?
@xsiimonox
@xsiimonox 22 дні тому
Hi i have a new version of the ph probe. the SEN0161-V2. There is no potentiometer to turn. how do i calibrate this one? can u help me plase?
@Fluless
@Fluless Рік тому
#phowned. for some reason esphome doesnt work on rpi but the esp webinterface does. thanks for the great tutorial
@KPeyanski
@KPeyanski Рік тому
Congratulations and welcome to the club :) Enjoy your DIY sensor!
@botialoach1
@botialoach1 Рік тому
I get nothing on the screen of the ph sensor when stand alone probably I have a faulty pH-probe or board but how to test ?
@Mimbultonia
@Mimbultonia 4 місяці тому
Can’t get this to work 😢 it seems the voltage output from the ph sensor board is very narrow when I finally got it adjusted so it’s not maxed out. Do you think I have a poor board or is there something else I can try?
@erwinmikkers8708
@erwinmikkers8708 Рік тому
I've been wanting to build this for our pool. Would love to see a project including a chlorine sensor!
@KPeyanski
@KPeyanski Рік тому
Yes, That would be cool!
@clairerovic
@clairerovic Рік тому
@@KPeyanski so cool
@rolschu1960
@rolschu1960 Рік тому
yes chlorine and salinity sensor. Is there any possibility you could do that? Are there sensors on the market? Great videos!
@Fluless
@Fluless Рік тому
Has someone tried using this setup with a tds meter?
@robertzioo6508
@robertzioo6508 Рік тому
Will it work without the screen? I want watch pH in Home Assistant only. Your videos are very useful. Thanks
@aaryanpour
@aaryanpour 2 місяці тому
Yep, if you monitor the Esp32 log of the device, effectively will do the same i.e. reading the voltage (Ph)
@vvkarhu1477
@vvkarhu1477 3 місяці тому
Hi, how did you put the sensor in water. Can the probe be fully submerged in water so that only the cable comes out from the water? Thanks!
@KPeyanski
@KPeyanski 3 місяці тому
yes, you can do that
@vvkarhu1477
@vvkarhu1477 3 місяці тому
@@KPeyanski thanks!
@nyx574
@nyx574 11 місяців тому
I was able to it built, but I can't get a stable reading. It bounces all over the place.
@Edu2pc
@Edu2pc 9 місяців тому
Can the sensor be left permanently submerged in water without seriously risking the life of the sensor or its calibration?
@woshitomtom
@woshitomtom Рік тому
Hi, do you think it’s possible to use zigbee instead of wifi?
@KPeyanski
@KPeyanski Рік тому
not sure about that
@jjvelar
@jjvelar Рік тому
Does not the reading oscillate a lot? A median of just 7 values is not enough for my setup
@KPeyanski
@KPeyanski Рік тому
They are. But isn't it normal when you add lemon to the water or you put the sensor in milk? I saw the sensor to reach 22PH so that means higher median.
@jjvelar
@jjvelar Рік тому
@@KPeyanski it oscillates submerged in the same liquid. By the way, maximum pH is 14 so reaching 22 looks wrong to me. Calibration issue?
@sleepessence7566
@sleepessence7566 Рік тому
I have built this following it to the letter and triple checked all cables etc. I have two issues 1) there is no display (it staes in the log communication failed) and also the sensor is stuck on 21.57 - even though I have tried adjusting the pots. Finally I connected the main 5k pot but you did not mention what to do with it. Any help would be appreciated
@KPeyanski
@KPeyanski Рік тому
for the display check the logs during the boot very carefully it is possible your display to have different address. You can also try to remove the address from the code completely as this will try the default address. The 5K pot should be connected and you can use it along with the adjustment knobs on the ph Sensor
@sleepessence7566
@sleepessence7566 Рік тому
@@KPeyanski Thanks for the reply. I have checked the logs as carefully as I can but all it states is that the connection to the display failed. I have tried removing the address completely but no avaiul. Is there any way you can direct me as to what to look for in the log. Much appreciated - I really want to say #phowned!
@sjaakhijmering4951
@sjaakhijmering4951 Рік тому
I am doing exactly the same with a salt pool but then the PH reading is way lower than it actually is... I calibrated the sensor with calibration fluid 4.01 and 7.01.. I am now back to doing it manual..:@? do you know what the problem may be? and yes a chlorine sensor would be awesome:)
@KPeyanski
@KPeyanski Рік тому
OMG salt pool :) That is cool... Do you have waves as well? Unfortunately I don't know what could be the problem.
@sjaakhijmering4951
@sjaakhijmering4951 Рік тому
@@KPeyanski today I tried to mix salt into the Calibration fluids still no luck:( Will sent a mail to the supplier I think.. its a normal Intex salt system BTW so not huge pool of something;)
@511Burak
@511Burak 2 місяці тому
#phowned. Thank you
@KPeyanski
@KPeyanski 2 місяці тому
Congratulations and welcome to the club! Enjoy!
@user-fw6lb7jd6h
@user-fw6lb7jd6h 7 місяців тому
#phowned dzięki:)
@KPeyanski
@KPeyanski 7 місяців тому
Congratulations and welcome to the club. Check my other DIY Smart Sensor tutorials
@peteturcan825
@peteturcan825 10 місяців тому
#phowned 😁 Thank you !
@KPeyanski
@KPeyanski 10 місяців тому
Great work! Enjoy!
@peteturcan825
@peteturcan825 10 місяців тому
Thank you for your great work. Now will try to implement a temperature sensor
@fred7flinstone
@fred7flinstone Рік тому
#phowned, although I find the values bounce around so much I doubt it's going to be that useful. I'm finding it pretty difficult to calibrate as well.
@KPeyanski
@KPeyanski Рік тому
Congrats, once you calibrate is the values still bouncing?
@jaredmackay9488
@jaredmackay9488 Рік тому
#phowned, But having the same issue with the values ranging all over the place. I rest the sensor in the the original fluid bottle that it was shipped with and I'll watch the reading alter +/- 1.0 to 2.0 points throughout the day. Confirmed my solder joints are solid and even changed power supply to the esp to confirm there was influence to the values but it still bounces. I'm concerened it will be reliable. Anyone have some solutions?
@nigelholland24
@nigelholland24 Рік тому
made mine but lcd stuck on -3.25 very acidic ,adjusting the pots dont help
@KPeyanski
@KPeyanski Рік тому
Strange, try adjusting the 5K Ohm potentiometer as well.
@nigelholland24
@nigelholland24 Рік тому
@@KPeyanski all working now must have been a loose wire.
@KPeyanski
@KPeyanski Рік тому
Great to hear. Don’t forget to leave a #phowned comment, but more importantly - enjoy!
@aaryanpour
@aaryanpour 2 місяці тому
#phowned
@KPeyanski
@KPeyanski 2 місяці тому
Congratulations and welcome to the club! You can now try my other DIY smart sensors :)
@PeterNordin
@PeterNordin Рік тому
Do you have the sensor in your pool all the time?
@KPeyanski
@KPeyanski Рік тому
No, not yet. My cable is too short and I have no place to mount the sensor steadily and safe. My pool is small and temporary (just for the season) and there is a lot of action in it from time to time with a lot of splashing, so I'm still wondering how to do that.
@farkasroman
@farkasroman Рік тому
#phowned
@KPeyanski
@KPeyanski Рік тому
Wow, you are fast :) Good job Roman. Enjoy!
@nigelholland24
@nigelholland24 Рік тому
#phowned
@KPeyanski
@KPeyanski Рік тому
That is better. Well done ✅
@Hautakoskifi-
@Hautakoskifi- Рік тому
#phowned
@KPeyanski
@KPeyanski Рік тому
Great job! Congrats on the effort and enjoy!
This is Surprisingly Better Than MMWave Sensors?
10:20
Technithusiast
Переглядів 38 тис.
The World's Fastest Cleaners
00:35
MrBeast
Переглядів 99 млн
How to use Trigger IDs in Home Assistant - Tutorial
13:15
Smart Home Junkie
Переглядів 56 тис.
DIY pH automation for hydroponic reservoirs
11:38
growmau5
Переглядів 210 тис.
My Smart Home is Stupid - HVAC Update
17:44
Linus Tech Tips
Переглядів 3 млн
Building a realistic artificial sun (for dark winter days)
19:45
The Mixologist - Automated nutrient mixing for hydroponics.
20:00
Jim Conner
Переглядів 122 тис.
I Made A More Affordable Smart Home Presence Sensor
11:42
Everything Smart Home
Переглядів 88 тис.
6 INCREDIBLE Smart Home Tablet Dashboards!
20:03
Everything Smart Home
Переглядів 344 тис.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
0:35
Небезпека травня та скорбота у Кремлі
17:13
Яна Пасинкова
Переглядів 243 тис.
МОРСКИЕ РАЧКИ С ВАЙЛДБЕРИЗ ЧАСТЬ 2
0:46
Натали Макколи
Переглядів 5 млн
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
0:35