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

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 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!

  • @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 :)

  • @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

  • @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 :)

  • @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!

  • @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 :)

  • @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...

  • @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.

  • @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...

  • @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

  • @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 😎

  • @kristian4805
    @kristian4805 ปีที่แล้ว

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

  • @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 :)

  • @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!

  • @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

  • @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!

  • @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 :)

  • @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.

  • @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?

  • @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?

  • @grazianodiraimondo3223
    @grazianodiraimondo3223 ปีที่แล้ว

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

  • @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?

  • @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?

  • @---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

  • @dankarization
    @dankarization ปีที่แล้ว +1

    Bro stop making so damn good content XD

    • @KPeyanski
      @KPeyanski  ปีที่แล้ว +1

      Haha, you will stop watching my videos otherwise ;)

  • @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.

  • @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

  • @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 - th-cam.com/video/OECAjHMwLro/w-d-xo.html If I remember correctly notify.events support SMS-es along with dozen of other messengers

  • @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.

  • @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!

  • @aaaafaaaaf
    @aaaafaaaaf ปีที่แล้ว

    The links to Ali Express are not working.

    • @aaaafaaaaf
      @aaaafaaaaf ปีที่แล้ว +1

      disregard.. my network was failing. :)

    • @KPeyanski
      @KPeyanski  ปีที่แล้ว

      Thanks for sharing :)