Build Your Own Smart Liquid Sensor with Home Assistant and XKC Y25 - Easy DIY Tutorial!

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 78

  • @DarkRehabOfficial
    @DarkRehabOfficial Год назад +10

    Please don't stop with these ESP tutorials! It's fun to make own sensors :D

    • @KPeyanski
      @KPeyanski  Год назад +2

      Do not worry, I won't! It is fun to me as well :)

  • @marc3793
    @marc3793 Год назад +5

    Using these many different types of cheap sensors from China is so much fun and indeed very useful. Keep up the good work!

    • @KPeyanski
      @KPeyanski  Год назад

      Thanks, will do! Glad you like these videos!

  • @ijeamakaomayeka7533
    @ijeamakaomayeka7533 Год назад +2

    Nice video
    I did combine 2 of these sensors for my water tank. One at the low level to start my water pump and the other to stop the pump when the tank is full.

    • @KPeyanski
      @KPeyanski  Год назад +1

      Nice work! On which PINs you have connected the sensor and what ESP board you are using? Also can you share your ESPHome code?

    • @cm5569
      @cm5569 Год назад

      Could you please share your code?

  • @remedix
    @remedix Год назад +3

    I used the same sensor for measuring the oil (petrol) level for my house central heating. They can work on thicker plastic containers and you can set the sensitivity from their potentiometer

    • @KPeyanski
      @KPeyanski  Год назад

      Yes, that is a great use case :) But are you still use it or you switch to something different?

    • @remedix
      @remedix Год назад +2

      @@KPeyanski i still use it, 2 years later. I have it outside mounted in an electricians box which is attached/glued really close to the outside wall of the tank

    • @KPeyanski
      @KPeyanski  Год назад

      Nice, thanks for sharing :) And you connected it to an ESP board or not?

    • @remedix
      @remedix Год назад

      @@KPeyanski the same setup as you! Wemos (the one with the external antenna) plus esphome

  • @roodynewbie8122
    @roodynewbie8122 Год назад

    Bought the sensor directly after watching this. Exactly what I needed for the project I plan on doing. It's so frustrating how often I must fill the Keurig reservoir. Have the ESP32, have already ordered the pump....the only thing I was missing was a good water level detection method The idea is to have a much larger supply of water underneath the shelf the Keurig sits on. Will just use the pump to refill the Keurig whenever the reservoir gets low. Was considering an ultrasonic sensor and then drilling holes into the lid. But now I won't have to drill anything and it'll look so much better! Thanks so much dude please keep these esp tutorials coming!

    • @KPeyanski
      @KPeyanski  Год назад

      You are welcome! Enjoy and don't forget to share the news here when you finish it. Good luck!

  • @UweBarnstein
    @UweBarnstein Год назад

    I use this sensor for my urine tank of my toilette to avoide an extrem uncomfortable situation when it overflows ☺️

    • @KPeyanski
      @KPeyanski  Год назад +1

      Great, and some ppl are still saying that Smart Home is useless...

  • @theshawfam20
    @theshawfam20 Год назад +1

    Wow, the best smart home youtuber. Thanks for making these videos.

    • @KPeyanski
      @KPeyanski  Год назад +1

      My pleasure! And many thanks for the great compliment :)

  • @xtremeideaz
    @xtremeideaz Год назад +1

    Thanks for these videos. I'm always happy to learn new things from you. Thank you for teaching us how to fully utilize the power of Esphome.

    • @KPeyanski
      @KPeyanski  Год назад +1

      My pleasure! I'm super happy that I can be of any help :)

  • @marikakiefer
    @marikakiefer Год назад +1

    Thank you, this was the first sensor I made and your tutorial was incredibly helpful. I'm using it for hydroponics.

    • @KPeyanski
      @KPeyanski  Год назад

      Sorry for the stupid question, but what is hydroponics? Also congratulations and welcome to the club!

    • @marikakiefer
      @marikakiefer Год назад +1

      ​@@KPeyanski Not a stupid question at all! It's an approach for growing plants (herbs for us) in water instead of soil. The water tank needs to be refilled every few days and we often forget so it's good to have Home Assistant notifications.

    • @KPeyanski
      @KPeyanski  Год назад

      Many thanks for the info! Great application for the liquid sensor and Home Assistant indeed :)

  • @stefan39289
    @stefan39289 3 месяца назад +1

    I have a rain barrel for which I want to be able to see in HA if it's below 50% and 25% water level. Is it possible to add 2 such XKC Y25 sensors to one ESP board? If so, which pins would I need to use on the board to solder the sensor cables and what would I need to modify when flashing the firmware? I'm still "dipping my toe" into this whole ESP32 things and trying to find a start...

  • @dan-in-asia
    @dan-in-asia Год назад

    Awesome!! I was just looking for a water fill sensor for my new bathtub (to stop water flow via electric valve when bathtub is filled to a certain level). Love it!

    • @KPeyanski
      @KPeyanski  Год назад

      Glad I could help and great application. You should post a working demo when it is ready. It will be quite interesting :)

  • @carlossimoescampos1
    @carlossimoescampos1 Год назад +1

    Please, could you help me once again? I bought a XKC-Y25-V sensor. This sensor has the following wires: Brown (Vcc), Black (Mode), Blue (GND) and Yellow (Output). When black wire has a HIGH level the yellow wire has the same value of voltage Vcc (Brown wire). In my project Vcc (Brown wire) is +9 V so the yellow wire will deliver +9 V if the black wire has a HIGH level. DOUBT 1: What exactly means HIGH level at black wire (Mode)? HIGH level means 3,3 V to 5,0 V or It can be 5 V to 24 V? DOUBT 2: Can I connect +9 V at brown wire (Vcc) and black wire (mode) simultaneously? Thank you very much for your attention.

  • @miltonleopoldo
    @miltonleopoldo Год назад

    Hello, I have a water dispenser connected to a 5L jug and with what you shared, I can send a notification when the water is running low. Thank you for sharing knowledge!

    • @KPeyanski
      @KPeyanski  Год назад

      Great application, thanks for sharing and enjoy :)

  • @MarcWagner86
    @MarcWagner86 10 месяцев назад

    You could just use a 12V power supply, a voltage step down converter, a dor sensor (zigbee for example) and this sensor and be done with it :)
    no need to program anything, just solder and do the same scripting as a door sensor in the home assistant :)
    But of course, when you need more complex stuff, you can do it with an esp / shelly uni.
    i will probably use a shelly uni to measure aquarium temperature, water level with this sensor and also control a water pump for auto water top-off. With the shelly uni, as it also works directly with, I believe, 12 to 36 volts, if I a power supply of 12 i don't even need a voltage step down converter.

  • @alphawarriorthegrandmaster
    @alphawarriorthegrandmaster Год назад

    Thank u very much i was already was looking to this sensor for couple years now but i couldn't figure out how to use it in my house, i am not that smart with these things, so had let it go, but now i will try it

  • @jorgemeza8454
    @jorgemeza8454 Год назад

    Excelente trabajo saludos desde Colombia, yo hace como 7 meses lo hice con el mismo sensor y unos sensores sonoff de puertas o ventanas, funciona pero definitivamente mucho más práctico y económico usar esphome, gracias 👍🏼

    • @KPeyanski
      @KPeyanski  Год назад +1

      Can't understand that comment apart from some random words like: Excelente, Colombia & gracias. Hope it is a good comment :)

  • @kristian4805
    @kristian4805 Год назад

    Very useful, this has been on my wishlist of sensors :)

  • @nicnicol6664
    @nicnicol6664 11 месяцев назад +1

    Another excellent tutorial!
    I've tried to add a second sensor on another pin and I got the error message "Only GPIO16 supports pulldown."
    Did a bit of googling and I'm still a bit lost: my understanding is there's an internal resistor that gpio16 can use, but no other pins - does that mean I can only get 1 sensor per D1 mini? Or can I add my own resistor, if so what value would I need?
    Ultimately I'm wanting to fit 6 of these on 1 micro controller, should I be looking at another ESP board? will that be easier?
    many thanks for all your work mate!

  • @IMT-AIJ
    @IMT-AIJ 6 месяцев назад +1

    Thanks so much

    • @KPeyanski
      @KPeyanski  6 месяцев назад

      Any time! Did you manage to build one or if not yet do you have such plans?

  • @kjell-ivarpettersen7805
    @kjell-ivarpettersen7805 5 месяцев назад

    Hey Mister. Great video 🙂
    But do you know if it's possible to disable the light diode on the xkc?
    Now it turns on (on stays on) when it detects liquid...
    Big thanks from Norway 😎

  • @Urmyrx
    @Urmyrx Год назад +1

    Oh, I'm wondering if the glass that did not work has a high amount of lead content in the ceramic material? Excellent video!

    • @KPeyanski
      @KPeyanski  Год назад +1

      Good point, but I really have no idea and thanks for the good words about the video!

  • @mariousai
    @mariousai 5 месяцев назад

    great video!
    that's exactly what I was looking for, for my camper's grey water tank, thanks a lot.
    I'm just wondering how many sensors I can connect to a single ESP32? 3 or 4 would be perfect for me.

    • @KPeyanski
      @KPeyanski  5 месяцев назад +1

      You can have 3 or 4 sensors on one esp32. My initial idea was exactly this - to use 3 sensors on one esp32 for the grey waters on my camper, but I still can't find enough time to make it happen. Hopefully this summer I will make it.

  • @carlossimoescampos1
    @carlossimoescampos1 Год назад

    I liked your video!! I need to monitor the water level in my home's water tank and I have 2 questions. Please, help me. FIRST QUESTION: Which sensor to use, as I noticed that there are several models (XKC-Y25-V, XKC-Y25-NPN, XKC-Y25-PNP and XKC-Y25-RS485). What is the difference between model V and model PNP? SECOND QUESTION: The distance between this sensor and the panel where the circuit will be (Arduino, buzzer, LCD, etc.) is 15 meters. Will I have losses with this distance? Do I need to install a special cable? THANK YOU SO MUCH!

    • @KPeyanski
      @KPeyanski  Год назад

      Just get the PNP sensor if you wish to connect it the same way as me and to use the same ESPHome code. Otherwise you will have to experiment / read and figure it out by yourself

  • @grazianodiraimondo3223
    @grazianodiraimondo3223 Год назад

    how can i connect a ky-016 led to see green and red status?

  • @cm5569
    @cm5569 Год назад +1

    What's the difference between PNP and NPN? Can you use them NPN here instead of PNP?Also how can I add a second sensor ( which pin on the d1)? Great tutorial.

    • @KPeyanski
      @KPeyanski  Год назад

      not sure about what are the differences, just get the same that I'm using so you will know that it will work

    • @cm5569
      @cm5569 Год назад +1

      @@KPeyanski thanks, how can I add another second sensor? Which pin?

  • @dankarization
    @dankarization Год назад +1

    Bro stop making so damn good content XD

    • @KPeyanski
      @KPeyanski  Год назад +1

      Haha, you will stop watching my videos otherwise ;)

  • @RicardoMaranhaoMD
    @RicardoMaranhaoMD Год назад +1

    Hi my friend, can i put these inside the water?

    • @KPeyanski
      @KPeyanski  Год назад

      In theory yes, as the max humidity stated by the vendor is 100% which I understood as inside liquid :) But I guess this have to be tested and there is a small risk to damage the sensor.

  • @botialoach1
    @botialoach1 Год назад

    #LiquidSensorOwned, just a quick question I am using this for my Aquarium to know when to add water , how can I get an SMS instead of notification? Thank you!!!

    • @KPeyanski
      @KPeyanski  Год назад +1

      Great work & Congrats. For SMS-es you have to add such notification integration in HA. I can suggest to check this video of mine - ruclips.net/video/OECAjHMwLro/видео.html If I remember correctly notify.events support SMS-es along with dozen of other messengers

  • @---nw9qu
    @---nw9qu Год назад

    Nice. Might add one to my aquarium. What do you think would be a good solution to affix it to the aquarium outside glass? Would double sided tape work or would that throw off the sensor?

    • @KPeyanski
      @KPeyanski  Год назад

      I'm not sure but I guess it will work, otherwise you can use some not very strong glue and you will be fine

  • @user-ty7fs5rd2c
    @user-ty7fs5rd2c Год назад

    if we want to work with tasmota? what are the parameters?

    • @KPeyanski
      @KPeyanski  Год назад

      I guess you have to check that in the Tasmota page. I didn't do that yet

  • @jovankostovski7976
    @jovankostovski7976 Год назад +1

    0:57 I know it can be hazardous, but since when is Rakia a toxic liquid? :)

    • @KPeyanski
      @KPeyanski  Год назад +2

      That is hilarious :) You made me laugh... Rakia is not toxic it is kind of medicine, cure... :)

    • @jovankostovski7976
      @jovankostovski7976 Год назад

      @@KPeyanski I agree completely with you, ice cold or boiled it always helps :)

  • @Sorrentino_Gianni
    @Sorrentino_Gianni Год назад

    Hi Kiril,
    I’d like to embark on the ESPHome trip sometime soon, but I have a big question I hope you’ll be able to answer to:
    is it possible to connect sensors to an ESP32 and use their output to modify the behaviour of the ESP32, without passing from Home Assistant?
    To be more specific, I’d like to connect a led and a photoresistor to an ESP32, and I’d like to internaly dim the led accordingly to the photoresiststor output, without constantly pulling from Home Assistant the photoresistor output.
    Is this possible?
    Thanks for your time.

    • @KPeyanski
      @KPeyanski  Год назад +1

      I think yes, automation and some logic can be added inside the ESPHome code

    • @Sorrentino_Gianni
      @Sorrentino_Gianni Год назад

      @@KPeyanski may I suggest you a video on this topic? Documentation isn't super clear, I cannot find any resource online.
      I ended up coding it in MQTT and it's working, but I'd prefer to switch to ESPHome.
      Thanks!

  • @Dialbist
    @Dialbist Год назад

    ESP32 has touch pins, we can turn them into sensors with liquid lavel

    • @KPeyanski
      @KPeyanski  Год назад +1

      Can you share more info about that please?

  • @streetwiztech5505
    @streetwiztech5505 Год назад

    Great video as always.. I didn't realise such a sensor existed. Did you get the code for adding a second XKC Y25 sensors to a single wemos d1 mini. that way you could monitor clean,and grey water levels with the same wemos.

    • @KPeyanski
      @KPeyanski  Год назад

      Thanks, the code shouldn't be much different just another section with another output pin should be added.

  • @m14_gamer12
    @m14_gamer12 Год назад

    whenever I think about sensor you upload video for it can you make hydroponic ec sensor and thx

    • @KPeyanski
      @KPeyanski  Год назад

      Very happy to hear that. Can you share what will be the most common use case for the hydroponic ec sensor?

  • @waynenocton
    @waynenocton Год назад +1

    Do you watch the everlanders channel? He’s got some cool stuff you could probably run with.

    • @KPeyanski
      @KPeyanski  Год назад +1

      No, didn’t know about it. I will check it out. Many thanks 🙏

    • @waynenocton
      @waynenocton Год назад

      @@KPeyanski he’s a smart dude, I think you will like his content. Not smart enough to teach in a second language tho I think think, much respect for you man.

  • @aaaafaaaaf
    @aaaafaaaaf Год назад

    The links to Ali Express are not working.

    • @aaaafaaaaf
      @aaaafaaaaf Год назад +1

      disregard.. my network was failing. :)

    • @KPeyanski
      @KPeyanski  Год назад

      Thanks for sharing :)