Monitoring water tank level with Shelly Uni & pressure sensor | House tank sensor v2.0

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ค. 2024
  • I use a commercially made in-tank pressure sensor and a Shelly Uni to upgrade my v1 setup for measuring water tank levels, and make it super stable and reliable.
    Shelly Uni: www.shelly.cloud/en-us/produc...
    In-tank pressure sensor: www.aliexpress.com/item/40004...
    v1.0 setup: • Measuring water tank l...
    Join this channel to get access to perks:
    / @larsklinttech
    Chapters:
    0:00 Why am I upgrading?
    1:10 The new sensor
    3:12 Installation
    4:17 I am an idiot
    5:18 Second attempt using Shelly Uni
    7:07 Installing the Shelly Uni
    8:15 Adopting the Shelly Uni
    11:05 Wiring the Shelly Uni and pressure sensor
    13:28 Shelly Uni integration
    16:13 HA statistics sensor (median)
    21:49 HA template sensor
    24:03 Showing water level in Home Assistant
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 159

  • @andreacoppini
    @andreacoppini หลายเดือนก่อน +1

    Thanks for this. Just a note about the UNI - the two pairs of black wires are “relays” (not really relays, but they act like such) so there is no voltage on them, they just open and close circuits.

    • @LarsKlintTech
      @LarsKlintTech  หลายเดือนก่อน

      Thanks for watching and thanks for the tip. I did realise this after recording as well, I think they are called "dry loops". Cheers ☺

  • @john2512
    @john2512 ปีที่แล้ว +2

    Thanks so much for this, especially the YAML parts. Worked like a charm for my water butt setup.

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

      So glad to hear that and you are most welcome John :)

  • @MasterRouter
    @MasterRouter 2 หลายเดือนก่อน +2

    I like to think that I'm a tech-savvy, but you take the cake!, I'm about to start a hydroponics project, and I'm doing a checklist of what I might need to start it, what you just show here will save me lots of trips and money, I can't thank you enough.
    I wish you and your family the best.

    • @LarsKlintTech
      @LarsKlintTech  2 หลายเดือนก่อน

      Thanks Master 😊 and you are so welcome. Thanks for watching, and good luck with your project. Let me know how you go.

  • @ian9033
    @ian9033 5 หลายเดือนก่อน +2

    Great video Lars, I was struggling to grasp the concept of how to do this but this video, this comments section and your recommend viewing suggestions have helped immensely and now my water anxiety is fueled by data and not guess work :-) Was also nice to discover the Shelly Uni, I've done a lot of home automation stuff with ESP boards but this little thing is powerful, now to think up another project where I can use another one.

    • @LarsKlintTech
      @LarsKlintTech  5 หลายเดือนก่อน +1

      That makes me so happy to hear that mate. That is part of the reason I do the videos: to break down the barriers for implementing these projects, so we can all benefit. The other reason is that explaining it on camera makes me think more about how to do it, and usually I get a better result. So, we all win!!
      Good luck with the projects and feel free to report back when you get it going 🤓

  • @DivinaFarms_James
    @DivinaFarms_James ปีที่แล้ว +2

    Thanks for sharing the knowledge. I used your previous video for my home water tank and getting it set up in Home Assistant. It's been working great for the past almost 2 years now. Sure beats going out and measuring it with a yard stick.

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

      You are most welcome James, and thanks for watching. Yes, home automation that saves us a bunch of time we can spend somewhere else is my favourite. 🥰

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

    Hi Lars. Probably the most anticipated TH-cam video ever on my part haha.... Thanks for the video and opening another can of worms for me... 🙂 I have the Shelly uni's ready to go (in fact it looks like I can use just the one to do two of my tanks). The pressure sensor looks solid so Aliexpress, here I come. Cheers.

    • @LarsKlintTech
      @LarsKlintTech  ปีที่แล้ว +2

      You are most welcome mate. I think 😂
      With the Shelly Uni I have now learnt the outputs are "dry outputs" so they don't provide the power, but can switch up to 36V. In other words, you need to provide the power (the Shelly doesn't), and then you can switch it through the Shelly.
      I have just ordered a second pressure sensor for another problematic water tank here. This seems to be a great solution after testing it for some time. 😊

  • @GordS-yz9lr
    @GordS-yz9lr 10 หลายเดือนก่อน +1

    Thanks so much for this video. I did exactly was you outlined and can now see my tank fullness, and gleen some interesting info on my water usage. I added a 10W solar panel and controller, and 8ah battery to power it all, instead of using the power adaptor as you have. I have one Uni monitor the tank pressure , while the other monitors my battery charge. It's been up and running for just over a week. I live in Canada so long summer days, but short winter days and low sunlight. Going to be interesting on how it all fares over the year!
    Really love having the default history functions in HA to see how it will all trend.

    • @LarsKlintTech
      @LarsKlintTech  10 หลายเดือนก่อน

      You are so welcome mate, and love your setup with the solar. It is the best automation/monitoring I have of all the various things I manage. Water is critical and this kind of project just takes that little bit of stress out of your day 😊

  • @leighjames8879
    @leighjames8879 5 หลายเดือนก่อน

    Thanks Lars, finally got a Shelly Uni and was able to install it all on my setup here in Thailand. I had the slight complication of a pressure sensor that ran on 5v so had to include a buck convertor into the mix rather than run another power supply. As is often the case I had issues with the yaml for the sensors but eventually I always find the missed quote mark, space, colon, hyphen or indent! I'd send you some photos but don't know how!
    Thanks for helping with this video,
    Leigh

    • @LarsKlintTech
      @LarsKlintTech  5 หลายเดือนก่อน

      Oh, I am so happy to hear that Leigh. That is great news. FWIW I always have issues with the YAML and redo it several times for any new project.
      If you look at my channel details, you can see my contact details as well. I'd love to see the photos of it 😊

  • @PCRoss2469
    @PCRoss2469 7 หลายเดือนก่อน +2

    Quick update note for anyone else as dumb as me, just to help out. I blew a power supply in a rain storm a few weeks back. I dried everything out, added a new power supply and redeployed it to the tank. I kept getting the same voltage at whatever depth. In short it had become useless. I assumed that the power spike had killed the sensor so I ordered a new one, which came today. connected it up and got the same result. After a bit of thinking time.............................. I realised that the ADC voltage has to work in conjunction with one of the power supply polarities and that I had (when replacing the original power supply) inadvertently reversed them. Corrected that and we're back in business. We now have a spare sensor (doh !), which I'm going to try and deploy at the dam after I get some wifi and battery power down there

    • @LarsKlintTech
      @LarsKlintTech  7 หลายเดือนก่อน

      Thanks for sharing Peter. We have all been there. I have gone wrong so many times with various projects, but we just keep iterating until we get it right 🤓

  • @ToTo-od9wz
    @ToTo-od9wz 2 หลายเดือนก่อน +1

    VERY USEFULL for me! Thank you.

    • @LarsKlintTech
      @LarsKlintTech  2 หลายเดือนก่อน

      You are most welcome mate. Thanks for watching 😊

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

    Thank you for sharing!

  • @PCRoss2469
    @PCRoss2469 10 หลายเดือนก่อน +1

    Mate thanks for this. Just got the kit set up and mostly working. Using the pool to Calibrate it, before it goes down the tank (after I manage to find the bloody cable blocks I bought and now can't locate). Thanks again.

    • @LarsKlintTech
      @LarsKlintTech  10 หลายเดือนก่อน +1

      Brilliant!! You are most welcome Peter. Clever idea to calibrate it in the pool. That should work a treat.

    • @PCRoss2469
      @PCRoss2469 10 หลายเดือนก่อน +1

      Update, found the cable blocks. Built the enclosure (think I might need to drill a hole to put the Uni Aerial outside the box....) Off to the pool shortly.

    • @LarsKlintTech
      @LarsKlintTech  10 หลายเดือนก่อน

      @@PCRoss2469 I 3D printed some enclosures, and the antenna needs to be outside that too.

    • @PCRoss2469
      @PCRoss2469 10 หลายเดือนก่อน +1

      @@LarsKlintTech I'm seeing 1.6v per metre roughly. Pool isnt deep enough !!

  • @SirJohndill
    @SirJohndill 7 หลายเดือนก่อน +1

    Thanks for a great video! I've created this setup myself, however I used the 0 - 10V range sensor instead which gives a much smoother line to work with & does not require the median value like the 0 - 5V needs.
    I've also used a weather proof enclosor with a DIN rail to mount a DIN 12V PSU to power the sensor & shelly UNI. 🙂

    • @LarsKlintTech
      @LarsKlintTech  7 หลายเดือนก่อน

      Very nice work mate. That is perhaps what I should do when I upgrade the system again 😁
      I definitely want to improve the enclosures I use too.

    • @SirJohndill
      @SirJohndill 7 หลายเดือนก่อน

      @@LarsKlintTech Happy to share my photos if you like. :-)

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

    Very good video. I have the same thing in progress.
    Note: Node Red can do the same thing using smooth and range nodes.
    In home assistant there should be a helper called "Combine the state of several sensors" it has a median option. Then less messing with yaml

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

      Oh, very nice! Let me know how you go with it.
      Oh, very cool with Node Red. I am still learning a lot about that tool, so thanks for the tip. I do like just having the sensor "natively" in Home Assistant in this case though.

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

      Export homeassistant info to Nodered

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

    Nice videos Lars, I agree this sensor is great!

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

      Thanks Simon. Yeah, I got another one after this video and very likely getting a third. They are super stable and accurate.

  • @KeranMcKenzie
    @KeranMcKenzie ปีที่แล้ว +3

    Great video as always mate - I wish there were more off the shelf solutions for this sort of thing. Would also love ideas on how to power if I don’t have power at all of my tanks - hmm 🤔 small solar maybe

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

      There probably is some off the shelf stuff, but then it'll have its own app and no integration. This is reasonably simple, but only if you are familiar with HA of course.
      Small solar could definitely work. I did the water tap on solar video, which is a similar idea.

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

      Thank you, very much! I added a depth sensor and Uni just like this last week. But I was flustered by the fluctuating readings. And other TH-cam explanations for building a template were overly complicated. So much appreciated.

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

      @@timtrafford4718 Awesome! Glad you got it working, and there are many ways of configuring the beast (as you are finding).

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

    Hello I came across your video today, I am also playing with the Shelly Uni and the same 0-10v sensor level, your video has been handy in that I had to bridge the negative supply and the earth ground to get a feed back from the sensor into the Uni to read . Thanks, still yet to play with HA

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

      Yeah, it took me a while to figure it all out too. Thanks for watching Ross, and let me know how you go with HA too 😊

  • @JeremyAkersInAustin
    @JeremyAkersInAustin ปีที่แล้ว +2

    At 12:10 -- The "outputs" are "potential free" like a relay basically. Think of it as basically just two switches: When "on" current can pass through (because the switch is "closed") and, when "off" current cannot flow because the switch is open. No voltage is supplied to these wires by the Shelly Uni itself.

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

      Thanks Jeremy for the explanation. I realised this a bit after recording too, so really appreciate the help :) I have since used the potentially free/dry connection to switch a solenoid on and off (but not power it).

  • @LynnCurrieBuilds
    @LynnCurrieBuilds 8 หลายเดือนก่อน +1

    Thanks for this video, Lars. I just set one of these up for my cistern. I'm noticing that I get no reading in Home Assistant if the depth is under 12" of water. I'm not sure if it's an accuracy issue or a rounding issue in HA. Are you seeing the same thing?

    • @LarsKlintTech
      @LarsKlintTech  8 หลายเดือนก่อน

      You are most welcome Lynn. That sounds odd. It's almost as if you need a certain amount of pressure to get a reading. I've used the three I have outside the tanks and they still transmit values. Perhaps you have a faulty unit? 🤔

  • @dalefromaustralia7783
    @dalefromaustralia7783 7 หลายเดือนก่อน +2

    As a fellow microsoft guy homesteading in Australia who has taken on many similar projects over the years, I really appreciate you!
    Silly question, when the sensor says its range and cable length (e.g. 5m range and 5m cable) does that mean that the supplied cable is actually longer (e.g. 5m of cable to get to bottom of 5m tank over ground and 5m of cable go get back down to ground) or would you need to extend the cable?
    Cheers

    • @LarsKlintTech
      @LarsKlintTech  7 หลายเดือนก่อน +2

      Thanks Dale for the kind words ☺ No silly questions here. That is a good one. It took me a bit to figure it out, but the "range" is how deep a body of water you want to measure. It is the calibration of the sensor, so a 3 meter range will be at near to max voltage (if you chose a voltage sensor) at 3 meters. A 5 meter range is close to max at 5 meters and so on.
      The cable length is the length of the cable at the end of the sensor.

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

    the two sets of black wires are relays 1 and 2. they are not voltage out. they are just open/close switches operated by home assistant or by the brown and orange wires.

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

      Awesome! Thanks a ton for the clarification mate. I guess I didn't technically wire it up wrong then 🤣

  • @vickenk
    @vickenk 8 หลายเดือนก่อน +1

    Great Video! I have a question: Is there a way to display/convert the voltage into something meaningful, such as a percentage or a gauge, without the need to host a home automation platform at home? I am trying to monitor the water tank level without setting up a home automation server.

    • @LarsKlintTech
      @LarsKlintTech  8 หลายเดือนก่อน

      Thanks mate for watching. Good question. I am not sure, but I would imagine so. There is probably a analog gauge you can plug it into directly.

    • @vickenk
      @vickenk 8 หลายเดือนก่อน +1

      @LarsKlintTech thanks for the reply. I'm not looking for something analog, I'm looking for a free online service/website with a decent mobile app that might allow me to do that without needing to install HA software at home.

    • @LarsKlintTech
      @LarsKlintTech  8 หลายเดือนก่อน +1

      @@vickenk So you are after Home Assistant in the cloud? I don't think anything "free" will possibly solve your challenge. I am not sure anyone would host your data and provide an app without some form of compensation?

  • @patraff1280
    @patraff1280 10 หลายเดือนก่อน +1

    Lars - is there a way to set a retain value for the Shelly uni? My project is very similar to yours but powering with a 12v battery pack of 1860's with a solar panel. When the battery goes below power level to keep Shelly running - it goes offline until the sun comes out again next day. I know that when using esphome you can put in the yaml a retain: true line and the values are retained in the gauge card.

    • @LarsKlintTech
      @LarsKlintTech  10 หลายเดือนก่อน

      Very good question. As far as I know there isn't a memory feature on the Shelly Uni when the power is gone. Add more batteries?

  • @CoenCritcho
    @CoenCritcho 7 หลายเดือนก่อน +1

    Thank you this is very helpful. On my farm i dont have electricity at my tank, do you have any solutions for powering the shelly and depth sensor? I wouldnt know power requirements or what size batteries to use if i was to make the solar array myself, not sure if there is an off the shelf product to suit?

    • @LarsKlintTech
      @LarsKlintTech  7 หลายเดือนก่อน

      It is difficult to answer without seeing you setup, and then still difficult 😂 You probably need a solar panel, a solar controller, and then an output from the solar controller to power the sensor and Shelly.

  • @Ibra96m
    @Ibra96m 8 หลายเดือนก่อน +1

    Hello nice work over there
    But I need to change voltage to % like 0.00 volt = 0% and 3.00 volt = 100% for example
    Is that possible?

    • @LarsKlintTech
      @LarsKlintTech  8 หลายเดือนก่อน

      I am not sure what you mean 🤔 If you follow the math in the video at 18:00 you can adapt that to output a percentage instead of litres.

    • @Ibra96m
      @Ibra96m 8 หลายเดือนก่อน +1

      @@LarsKlintTech yes I did work on it simultaneously after I write this comment.
      Thank you for your replay.
      What I did I used template then I saw in my uni the max is 3V & the min is .10V. So I divide the Voltage on 3 then multiply on 100 then add % to have it after the the number but the problem is I have alot of digits.
      I think I have to use statistics After that I’m not sure.
      Thanks

    • @LarsKlintTech
      @LarsKlintTech  8 หลายเดือนก่อน

      @@Ibra96m Use the "round(x)" function in your template to get rid of the digits you don't want. I use it in the template as well.

    • @Ibra96m
      @Ibra96m 8 หลายเดือนก่อน +1

      @@LarsKlintTech okeyy
      I sow it many times in examples but I don’t what it is meant

    • @LarsKlintTech
      @LarsKlintTech  8 หลายเดือนก่อน

      @@Ibra96m All good. We learn 😊

  • @Ltech-ludditetechnologies
    @Ltech-ludditetechnologies 4 หลายเดือนก่อน

    Marvelous Lars, thanks for your efforts sharing with us all :)
    Could I ask, would it be possible to trigger a flashing alarm light when a specific water level is reached do you know?
    Haven't setup HA yet but will finally be getting round to it and first sensor will be a Shelly Uni and one of these tank sensors.
    I too want to monitor a couple of rain water tanks that is our water supply, but also to monitor and alert if our grey water tank level rises too high (indicating a fault with the pump) and council regs specify a flashing light on the tank.
    The one that was there is old and busted and rather than the old way I want to go this newer way and kick off my HA journey!
    Cheers from Northern NSW.
    Matt.

    • @LarsKlintTech
      @LarsKlintTech  4 หลายเดือนก่อน

      Hi Matt. Good question and YES, absolutely! You can get Home Assistant to trigger almost any kind of event. I would use something like a Shelly 1 to get the light wired up, and then you can control that from HA too. Oz Smart Things has all the Shelly units and use discount code LARSKLINT for 5% off too. Support the Aussies 😁

    • @Ltech-ludditetechnologies
      @Ltech-ludditetechnologies 4 หลายเดือนก่อน +1

      @@LarsKlintTech awesome man will use that code thank you :)

    • @Ltech-ludditetechnologies
      @Ltech-ludditetechnologies 4 หลายเดือนก่อน +1

      Oz Smart Things Stripe checkout says "Enter a valid discount code or gift card"
      (Posting here in case it helps others...)

    • @LarsKlintTech
      @LarsKlintTech  4 หลายเดือนก่อน

      @@Ltech-ludditetechnologies It worked though?

    • @Ltech-ludditetechnologies
      @Ltech-ludditetechnologies 4 หลายเดือนก่อน +1

      ​@@LarsKlintTech regrettably the code did not and I am under time pressure with council (overdue (on the extension) for my inspection)
      I would however like to buy you a coffee to even that out by way of thanks.

  • @NotTheRealRyan
    @NotTheRealRyan 4 หลายเดือนก่อน +1

    Hi Lars, Just finished installing some tanks, now looking to get a reliable level, bought a ultrasonic distance sensor a couple of years ago for another project but it seems faulty now I've installed in these tanks(after installing it so neatly too in the top of the tank, always the way), now looking at a pressure sensor as it would seem more reliable long term.
    Does the sensor sit on the bottom of the tank(i.e probably laying down), or does it hang? I'm not find a lot of info on that when I look around.
    Cheers,

    • @LarsKlintTech
      @LarsKlintTech  4 หลายเดือนก่อน

      Good question Ryan. I don't think it matters. The pressure sensor I use in this video is not very long relatively to the height of the tank, so at most you'd get a tiny voltage difference, which you can compensate for in Home Assistant anyway. I just plonk mine in the tank until it hits the bottom and I haven't had any issues with it.
      On a side note I am not a fan of the ultrasonic either, as I have heard other anecdotes of them being unreliable and unstable.

  • @byrnecore
    @byrnecore 11 หลายเดือนก่อน

    This is so good. I'm all over it. But how many of these analog pressure sensors could you add to one shelly uni? If I had 2 tank next to each other, could I run two sensors form them into the one shelly?

    • @LarsKlintTech
      @LarsKlintTech  11 หลายเดือนก่อน

      Thanks for the kind words Shaun. You can only have one sensor per Shelly UNI, as you need the ADC input (white wire) on the Shelly to receive the voltage from the pressure sensor. The signal/voltage is analogue so you need the Shelly to convert it into a digital value HA can use. Also, Shelly UNIs are cheap, so it isn't a huge problem?

  • @sylvaish
    @sylvaish 9 หลายเดือนก่อน +1

    Hi another Great Video.... On the Template you created i see you already have an idea of how many Liters of water are in the tank ...... I my case am using underground Well am not really sure how many liters of water is down there .... How do i get around that in my own template thanks

    • @LarsKlintTech
      @LarsKlintTech  9 หลายเดือนก่อน +1

      That is a tricky question. If you are lowering the sensor into the well, can you tell how far down the bottom is? If you can do that, then you know the height. If you don't know the width of the well, then you might be able to guestimate it by pumping out maybe 1000 litres and see how much the voltage drops. If you assume the voltage is 0V if the well is empty, you should be able to deduct how much water is in it, if you know the voltage drop for 1000 litres.

  • @Maaniic
    @Maaniic ปีที่แล้ว +3

    0(2)-10V DC or 0(4) - 20mA are very common industrial signal levels. It might have said rs485 which is a 2 (or rarely 4) wire serial wire protocol like rs232, and it is quite common that devices speak Modbus RTU over the serial unless it is something proprietary.
    According to Shelly the outputs are potential free so the won't send any power just switch it. The Shelly wiring diagram (on the knowledge base) is kind of vague but you probably need to connect it in series with the power supply but don't take my word for it but that is how you connect a relay. It also states that it can max switch 0.1A.

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

      Awesome, thank you for all those details. I am happy with the 0-5V, although 0-10V might have given me slightly more detailed/granular data.
      Are you saying the Shelly Uni can't power devices?
      Yes, I knew about the 0.1A max, which is fine for most devices. I am about to test one with a solenoid to turn water on and off, so we'll see if 0.1A is enough for that.

    • @Maaniic
      @Maaniic ปีที่แล้ว +2

      @@LarsKlintTech If it is as the manual says "potential free" the outputs are just a "switch". Kind of like the output on the "Shelly 1 Plus" but that is a relay.
      More signal resolution is always a good thing but if you want to use it with something that is 0-5V later on stay with that.
      Read the manual but a solenoid might sometimes require a snubber to last in the long run if the UNI is using a TRIAC for the switching.

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

      @@Maaniic This is all really helpful. Thanks mate 😊

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

      @@LarsKlintTech My understanding about Shelly Uni's outputs is that they should be used more like button press simulators that to switch loads on or off. The "relay" function is done with the help of two small transistors, transistors that can handle a very low load - 0.3Watts or something.

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

      @@valentinene yes, reading up on it, I kinda understand it now. It seems the voltage rated on the wiring diagram means that is how much power can flow through the switch, not how much it provides. So I could wire the sensor through the Shelly Uni output logically, but not power it from it. I think. 🤔

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

    Thanks for this Video! Which type of sensor is the right one for the Shelly Uni:
    4-20mA Output, 0-5V Output, 0-10V Output, RS485 Output?

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

      Thanks for watching Ralf. I use the 0-5V output version, and the 0-10V should work just fine as well. The Shelly UNI doesn't support mA output, so not sure what that is for.

    • @dmiller9786
      @dmiller9786 11 หลายเดือนก่อน +1

      @@LarsKlintTech Thanks for the clarification. You aliexpress link defaulted on the mA unit, which confused me. Perhaps the 0-10V has better resolution/less noise than the 0-5? Although at this price point I doubt that high accuracy is a thing. Really good find on both the sensor and the Shelly uni.

    • @LarsKlintTech
      @LarsKlintTech  11 หลายเดือนก่อน

      ​@@dmiller9786 No worries. Yeah, I couldn't link to the exact version I got of the sensor. They are remarkably accurate, and if you put the output through the statistics sensor as well, you can get a super stable measurement.

  • @brendanpratt7760
    @brendanpratt7760 3 หลายเดือนก่อน +1

    I'm still trying to get my head about the sensor you have. I have a Taylex 31500 litre tank, which is 3450mm wide, and 4100mm high.
    So should I get the 5m or 4m sensor with a 5m cable ?
    BTW, I like your choice in water pumps, I have the same pump here on my house. :)

    • @LarsKlintTech
      @LarsKlintTech  3 หลายเดือนก่อน +1

      Hi Brendan. No worries, it took me a while to figure out the wording and how it all relate. The "range" length is the depth of your tank, or the max depth that your sensor will measure max voltage when the tank is full. So a 5m range will measure 5v in a full 5m deep tank. In your case you'd need the 5m range at least with possibly some extra meters to get the cable to your shelly UNI or whatever device you use. Perhaps a 7m/7m to give you about 3 meters extra coming out of the tank? You could also use the 5m/5m, but then you only have about .9m to play with outside the tank.
      With whatever range and cable length you choose, you'll have to calibrate your calculations, as there are always some fluctuations once installed.

    • @brendanpratt7760
      @brendanpratt7760 3 หลายเดือนก่อน +1

      Saw this one Submersible 0-10V 4-20mA Output Hydrostatic Level Sensor Transmitter DC12-36V Water Tank Liquids Transducer Meter , but is it the same thing? It comes in a 5m range, and 10m of cable, as a better price too.
      Wouldn't a 7m range in a 4.1m deep tank have a lesser resolution of depth ?

    • @LarsKlintTech
      @LarsKlintTech  3 หลายเดือนก่อน +1

      @@brendanpratt7760 It sounds like the same thing. And 5m/10m should give you plenty of cable to play with too. Yes, with 7m you would "lose" some voltage range in the measurement, so you are better at getting it as close to the depth as possible. However, overall, you wouldn't notice a huge difference, as the 0.01 increments are granular enough imo.

  • @aibotua3037
    @aibotua3037 2 หลายเดือนก่อน

    Hi Lars, the negative of the pressure sensor should be connected to Pin 6 (GND ) and not to the negative of your power source.

    • @LarsKlintTech
      @LarsKlintTech  2 หลายเดือนก่อน

      That is not what the documentation for the sensor states.

    • @aibotua3037
      @aibotua3037 2 หลายเดือนก่อน

      @@LarsKlintTech see fig.6 shellysa.co.za/wp-content/uploads/2021/04/Shelly-UNI-User-Guide.pdf

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

    Hi Lars, great video! I ordered a sensor off eBay but it only has a red and black wire. Any idea how to connect these to the uni? I noticed yours is a three wire. Thanks in advance, Nik

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

      Thank Nik. Appreciate the watch :)
      I am guessing you have gone for the 4-20mA sensor which sometimes has only a red and black wire. You need to power it in a loop where the measuring equipment sits between the sensors black wire and the power supply's black wire/negative. However, the Shelly Uni only measures voltage as far as I know, so I don't think you can use the sensor you have with the Shelly Uni. This is of course based on my assumption that you got a 4-20mA sensor and basic understanding of the Shelly :)
      I hope that helps a bit.

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

      @@LarsKlintTech Hi Lars, thanks so much for the quick response! That's correct, the sensor I have is a 4-20mA, but I think you are correct and I may need to swap this out with another one! I read somewhere that I could potentially use a current sensor where "The module outputs a voltage proportional to current passing through the sense pins on the module." Honestly though this is all new to me, so it may not work. One things for sure, I've certainly learnt a lot from your channel and for that I'm very much appreciative! The detailed explanations are fantastic!

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

      @@NikValentine No worries Nik. That current sensor solution sounds complicated imo. The Shelly Uni is a great device, and I would find a sensor that works with it, to keep things simple and stable.
      And thanks for the kind words. That is exactly why I create the videos, to share some of the knowledge I find on the way.

    • @NikValentine
      @NikValentine 11 หลายเดือนก่อน +1

      @@LarsKlintTech Hi Lars, I just wanted to send a quick message to say that after a lot of trial and error, I finally got the 4-20ma sensor to work, however it ended up involving a breadboard and two 1k ohm resistors run in parallel. Suffice to say, using the three wire sensor would have been much easier. In any event, I wouldn't have even thought this was possible without your channel, so thanks again for all your help and keep up the good work!

    • @LarsKlintTech
      @LarsKlintTech  11 หลายเดือนก่อน +1

      @@NikValentine Ah, you persevered! Good job mate, and it kinda make sense in my limited brain capacity that you need resistors to measure the current, rather than volts. Thanks for letting me know (and confirming I did the easier solution 😂). And thanks for your support of the channel too. You are the reason I do the videos.

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

    Hi Lars, Great video, and I just got the components, and the voltage dat is flowing into HA.
    But I just can't get my configuration.yaml to work with the statistics and Template sensor for converting to litre. .
    So I assume it would help me a lot, if I could get a copy of your files as examples.
    På forhånd tak Ole 🇩🇰

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

      I manage to get the statistics part to work, but the conversion to liters is still not solved..

    • @LarsKlintTech
      @LarsKlintTech  ปีที่แล้ว +3

      @@OleSchmitto Hej Ole. Here is my YAML for the specific parts.
      - platform: statistics
      name: "House water tank level median voltage"
      entity_id: sensor.shelly_uni_house_tank_adc
      state_characteristic: median
      max_age:
      hours: 2
      precision: 4
      - platform: template
      sensors:
      house_tank_litres_shelly:
      value_template: >
      {% set voltage = states('sensor.house_water_tank_level_median_voltage') | float %}
      {{ ((voltage / 2.6) * 45804) | round(0) }}

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

      @@LarsKlintTech Perfect... worked and also your code remove the decimal, which makes it nicer to look at. Decimals, remember, that for the incoming voltage from the Shelly device, I need to change the Shelly HA integration setting / voltage to 2 decimals.
      Tusind tak for hjælpen. 👍🇩🇰. Ole

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

      @@OleSchmitto Det var så lidt Ove. Du siger bare til hvis der er noget der ikke virker :)

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

      @@LarsKlintTech In Home Assistant I am receiving data from the sensor every second, which in my opinion is to often, so do you see the same issues and maybe solved it.

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

    There are a min/max helper in HA

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

      For which part would you use it?

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

    Is the pressure transmitter food grade?

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

      Yes, it is made from 304 stainless steel, which is food grade and commonly used for food preparation, dining, and storage.

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

    Odd question…did I see you at Umina maccas last night?

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

    Is there a similar device that would work in skimmer box of pool in order to keep pool level topped up?

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

      Hmmmm, excellent question Daniel. A skimmer box is very shallow usually, so a pressure sensor would be difficult to use there. This guy built a water level float sensor: neon.ninja/2017/11/smarter-swimming-pool-3-water-level/

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

      @Lars Klint Awesome, thanks Lars I’m definitely going to take a look at that. On another topic, what font are you using for your HA? It’s something I’ve been meaning to do with my own dashboards.

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

      I might pick up one of these 1m pressure sensors and give it a try with the Shelly Uni, found another video on YT which seems to look like it will work. Been looking at a way to monitor my pool water level for a while now.

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

      Here is the other video i was talking about th-cam.com/video/T474YCr2574/w-d-xo.html

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

      @@dsellars Ah, cool. Yeah, that could work. I might even do that too 😏

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

    Lars, you are a bloody genius. However, I am not. I have the Shelly Uni outputting varying voltages to my two tank sensors but for the life of me I can't work out how to convert the voltage to litres. I've got the diameter and depth (currently 64000L) but that yaml stuff is beyond me, I'm addled. I've been unable to find a video or tutorial that describes how to do this for simpletons. If you know of one please share. Thanks again 🙂

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

      Haha, I don't know about that, but at least it is in writing now 😛
      If you look at the screen in the video at 22:18 you can see the configuration.yaml file. This is the main config file for Home Assistant where you put everything that isn't "out the box" in HA. You can see a section in the YAML which says "-sensor" at the top. That starts all the various custom sensors I have. A sensor is just a data point that HA can read. Then it says "-platform: template" which means a template sensor. A template is pretty much any kind of calculation you want to do, where you take an input, such as the UNI voltage, and then converts it to another value.
      I have created a number of template sensors, each of which is a water tank litre measurement. For example, for the "house_tank_litres_2" sensor, I have use the voltage from the "sensor.sensor_house_tank_voltage_2" which is my Shelly UNI voltage. The main thing I always get wrong is the correct syntax with what is in quotes and what isn't.
      Does that make any sense?

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

      @@LarsKlintTech Thank-you Lars for your prompt response. I shall have a go using this information, thank-you. My computer skills haven't improved since we filled out dozens of cards with 2B pencils (which were then sent to a nearby school lucky enough to have a computer) to run simple programs. We'd get the results back a week later usually with disappointing results. I digress 🙂 Thanks again.

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

      ​@@lensman893 No worries. It is one of those things where once you get it working, you can copy paste it and get it working much faster the second time.
      If you send me your punch cards filled in with 2B pencil, I will make sure nothing happens with them 😂

    • @patraff1280
      @patraff1280 10 หลายเดือนก่อน +2

      @@lensman893 I had a similar problem with the template part. I realised that putting the code into something like notepad++ is much better as the formatting is crucial in yaml.

    • @lensman893
      @lensman893 10 หลายเดือนก่อน

      @@patraff1280 Thanks for the tip. I had a good crack at it a few days ago and made progress. I hadn't realised that the tiny hard to see - (in red) was important 🙂 Now I just need to work out why it doesn't show as a line graph as opposed to a long bar. Kudo to Lars for publishing his code for us to copy, I'd never be able to understand that yaml...

  • @ubeaut
    @ubeaut 4 หลายเดือนก่อน +1

    Third time lucky in adding a comment....agghh
    I have similar hardware as but I flashed Tasmota onto the shelly UNI over the air. Why? Because I am familiar with it and I could slow down the number of times the data was being sent as the shelly didn't do that. Anyway the Tasmota does the calculation for the litres on the device and I send that via MQTT. Seems to work. I don't need to do any of the calculations on the home automation side and can pick the period of data transmission. Look for a video a ubeaut productions as I cannot add any links to the comments...agghh

    • @LarsKlintTech
      @LarsKlintTech  4 หลายเดือนก่อน

      I haven't done anything with Tasmota, but I can see why you'd go down that route. I'll see if I can find the video.
      And yes, YT really doesn't like links in the comments 🙄

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

    Can give a wiring diagram of level sensor. Thanks

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

      Good question. I don't have one as such, but if you click the link to the sensor, you can see the wiring diagram based on which version you choose, and the wiring diagram for the Shelly UNI is at the link for that device. At 11:05 I show the wiring too. I hope that helps 😊

  • @dwmcever
    @dwmcever 9 หลายเดือนก่อน +1

    Shelly Uni is not for sale in the U.S.

    • @LarsKlintTech
      @LarsKlintTech  9 หลายเดือนก่อน

      I can order them for delivery to the US using their main website: www.shelly.com/en-us/products/shop/shelly-uni

  • @antonioadragna1262
    @antonioadragna1262 2 หลายเดือนก่อน +1

    I baught two of them sensor, now after a month, they are in tilt, no signal. Someone have same problem?

    • @LarsKlintTech
      @LarsKlintTech  2 หลายเดือนก่อน

      Can you provide some more details? Can you measure the voltage from them directly? What device is receiving the signal from the sensor? Did it work and then suddenly not? Can you explain a bit more about your setup?

  • @antonioadragna1262
    @antonioadragna1262 3 หลายเดือนก่อน +1

    I don t know why, After 1 month that tl136 was working well, from today i have not signal from It, 0 voltage. I tried to Change shelly uni ... Always no signal ... Somebody can help me?

    • @LarsKlintTech
      @LarsKlintTech  3 หลายเดือนก่อน

      Step 1 is to confirm the sensor is the faulty part, and not somewhere else in your setup. Can you put a voltage through the sensor manually and see if you get a reading at all?
      Step 2, if the sensor is faulty, is go back to the seller and talk to them about a replacement under warranty.

    • @antonioadragna1262
      @antonioadragna1262 3 หลายเดือนก่อน +1

      @@LarsKlintTech ok, thanks a lot. I Will try your steps.

    • @LarsKlintTech
      @LarsKlintTech  3 หลายเดือนก่อน

      @@antonioadragna1262 Let me know how you go with it.

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

    Why don't you use level transmitter instead of pressure transmitter.

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

      Good question. The level transmitters require more rigging to set up usually, and I didn't want a hole in the top of the tank in this case. Just lowering the sensor and plugging it into a Shelly Uni is very simple, so I chose that approach.