Looking for suggestions on how to measure water level in a reservoir

@DeeBeeKay found a really nice concept on the float switch, probably just a reed switch inside but an elegant solution.

1 Like

Thanks @DrJeff, that looks like a very neat solution that will be easy to install - doesn’t even need anything attached to the reservoir wall, which is a bonus because the reservoir has a rubber lining that I don’t want to pierce.

I found a local supplier of the product you linked to. Great find. Thanks so much.

1 Like

Hi,
Just finished installing 4 pressure sensors (3 water reservoirs and 1 Diesel tank) with Shelly Uni as described here (it has English captions). managed to display the default data in HA but still confused and couldn’t convert the data into cubic meters as described in my call for help here.
I totally recommend the equipment and method, but still need to implement in HA.

I am using float switches, they work great and cost next to nothing

this is my esp code for an esp32

binary_sensor:

  • platform: gpio
    pin:
    number: GPIO 17
    mode: INPUT_PULLUP
    name: “water sensor”
    device_class: moisture
    filters:
    • invert

and this is the kind of float switch I use

the only problem is that some of them fail after some time, they are not all created equal, so if you need extra assurance, buy something more expensive

or you can always use 2 sensors in parallel or in series (depending on your application) as a fail safe

1 Like

What is your tank /resevoir?

Diesel tank is metal, the other 3 are concrete. metrics attached

So you know the level, and the cross sectional area. The volume is simply the product of the level and the area.

The math was never the problem. It is how to get the below card

(the one to the right)

What is the question then?

How to apply the math in HA? and how to make the card display the correct icon? I am a beginner user into HA and got confused how to use variables, helpers, scripts, etc…

Aha ok. The math should be done in a template.

Gui programming is not so much my thing. However you can set icons from templates too.

Working on that, slowly though. thanks