Тёмный

How to make PH Sensor that works with Home Assistant? 

KPeyanski
Подписаться 28 тыс.
Просмотров 17 тыс.
50% 1

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!

Хобби

Опубликовано:

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 105   
@taxy71
@taxy71 5 месяцев назад
Thank you! yours videos are perfect! keep it up this way.
@KPeyanski
@KPeyanski 5 месяцев назад
Thanks, will do!
@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.
@bobbymsq
@bobbymsq Год назад
Great work thanks for sharing, can you help with this cuiosity, what's the use for the 5k potentiometer?
@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 5 месяцев назад
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
@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 ?
@scottfinley8955
@scottfinley8955 Месяц назад
Worked for me!
@KPeyanski
@KPeyanski Месяц назад
Well done! Congratulations and welcome to the club!
@antoniomazabandes5419
@antoniomazabandes5419 Год назад
Hello Kiril: How would we do it if we had two sensors for the display on the i2c screen?
@Robert-JanKempink
@Robert-JanKempink Год назад
Nice! i would like also to see a video about ORP :) i think that would be a little bit harder but possible
@user-oi2xo8ve8q
@user-oi2xo8ve8q 11 месяцев назад
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?
@osr75
@osr75 10 месяцев назад
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!
@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 ;)
@511Burak
@511Burak 4 месяца назад
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?
@kirkk2643
@kirkk2643 2 месяца назад
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.
@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!
@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
@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 11 месяцев назад
can you do this and add the temperature sensor as well?
@kirkk2643
@kirkk2643 2 месяца назад
Did anyone find the solution for temperature compensation?
@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 ?
@xsiimonox
@xsiimonox 2 месяца назад
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?
@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
@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.
@Mimbultonia
@Mimbultonia 6 месяцев назад
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?
@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!
@TheAlexdj1971
@TheAlexdj1971 Год назад
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 10 месяцев назад
did you try this?
@Fluless
@Fluless Год назад
Has someone tried using this setup with a tds meter?
@onyiercan
@onyiercan Месяц назад
what is the role of potentiometer 5k Ohm?
@Mimbultonia
@Mimbultonia 7 месяцев назад
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.
@nyx574
@nyx574 Год назад
I was able to it built, but I can't get a stable reading. It bounces all over the place.
@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?
@vvkarhu1477
@vvkarhu1477 5 месяцев назад
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 5 месяцев назад
yes, you can do that
@vvkarhu1477
@vvkarhu1477 5 месяцев назад
@@KPeyanski thanks!
@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
@Edu2pc
@Edu2pc 11 месяцев назад
Can the sensor be left permanently submerged in water without seriously risking the life of the sensor or its calibration?
@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!
@robertzioo6508
@robertzioo6508 Год назад
Will it work without the screen? I want watch pH in Home Assistant only. Your videos are very useful. Thanks
@aaryanpour
@aaryanpour 5 месяцев назад
Yep, if you monitor the Esp32 log of the device, effectively will do the same i.e. reading the voltage (Ph)
@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;)
@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!
@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!
@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?
@blake632
@blake632 Месяц назад
Hello, when I adjust the potentiometer, the pH value changes, but when I turn the screws on the circuit, it changes very low and I put it in water, it measures the same, I put it in lemon juice, it measures the same, can you please help?
@blake632
@blake632 Месяц назад
I have ESP8266 NodemCu V3
@woshitomtom
@woshitomtom Год назад
Hi, do you think it’s possible to use zigbee instead of wifi?
@KPeyanski
@KPeyanski Год назад
not sure about that
@ElvisM1979
@ElvisM1979 Месяц назад
how did you install the sensor in the pool? It is fixed or no?
@KPeyanski
@KPeyanski Месяц назад
fixed, but because my pool is seasonal (I mean I put it in one big box during the winter) the sensor is also seasonal :)
@511Burak
@511Burak 4 месяца назад
#phowned. Thank you
@KPeyanski
@KPeyanski 4 месяца назад
Congratulations and welcome to the club! Enjoy!
@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!
@peteturcan825
@peteturcan825 Год назад
#phowned 😁 Thank you !
@KPeyanski
@KPeyanski Год назад
Great work! Enjoy!
@peteturcan825
@peteturcan825 Год назад
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?
@przemysawkruzoek2130
@przemysawkruzoek2130 Месяц назад
#phowned Thanks for sharing this
@KPeyanski
@KPeyanski Месяц назад
Enjoy and congratulations
@user-fw6lb7jd6h
@user-fw6lb7jd6h 9 месяцев назад
#phowned dzięki:)
@KPeyanski
@KPeyanski 9 месяцев назад
Congratulations and welcome to the club. Check my other DIY Smart Sensor tutorials
@aaryanpour
@aaryanpour 5 месяцев назад
#phowned
@KPeyanski
@KPeyanski 5 месяцев назад
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.
@bencoleman42
@bencoleman42 19 дней назад
#phowned. Thank you
@KPeyanski
@KPeyanski 19 дней назад
Welcome to the club, and check my other DIY video tutorials that I have
@nigelholland24
@nigelholland24 Год назад
#phowned
@KPeyanski
@KPeyanski Год назад
That is better. Well done ✅
@farkasroman
@farkasroman Год назад
#phowned
@KPeyanski
@KPeyanski Год назад
Wow, you are fast :) Good job Roman. Enjoy!
@Hautakoskifi-
@Hautakoskifi- Год назад
#phowned
@KPeyanski
@KPeyanski Год назад
Great job! Congrats on the effort and enjoy!
Далее
The BEST Dashboard I’ve EVER Seen! Smart Home Tour
13:06
DIY pH automation for hydroponic reservoirs
11:38
Просмотров 212 тыс.
I Made My Smart Home Presence Sensor Even Better!
11:09
The Seven FREE Wonders that make the Modern Smart Home
15:21
ВЕЛОСИПЕД ЗАГОВОРИЛ
0:15
Просмотров 13 млн