ESPHome water level sensor

Beware the TL-136 depth probe, water leaks in they fail after a month or two.

I have the ALS-MPM-2F which I have seen sold under the DFRobot brand. Seems fairly robust. Whatā€™s your tanks water PH like?

Hello I was reading that they have updated and provide a warning for these sensors. The top of the wiring has the pressure tube; it needs to be protected from water and damp ingress. This will eventually make its way to the circuit board. Needs a bit of thought in installing.

Uk rainwater tends to be acidic around PH5.6. I am not sure whether PH is further changed on collection off a roof. I will test, but my plants are happy!

Yes, seen a post or two. i have concrete tanks and they tend to have alkaline water, especially when new. alkaline water I understand is less dangerous but can still corrode metal particularity when itā€™s oxygenated. I should mention I have a slightly different sensor model. iā€™ll smear a little silicone on the joins.

Hi Rodney,

I didnā€™t realise you could get all that info off those sensors. Any chance you could post your yaml code, so I could work out how to do that upon my setup (when sensors arrives in a few weeks) ?

Thanks. Justin

Rodney, BTW your lambda needs to be like this:

  - platform: template
    name: "Water Tank - Litres"
    id: water_tank_litres
    icon: 'mdi:water-well'
    unit_of_measurement: 'l'
    lambda: |-
        return id(water_tank_level).state / 100 * 3.14159265359 * 1.19 * 1.19 * 1000.0;
    # height (meters) times pi times radius (meters) squared times 1000 gives litres. 
    # This works if your water tank is a cylinder shape. Otherwise you have to use different calculations.
    # 10,000L with diamter of 2.38m = 224.7792431210859cm height
    update_interval: 1s #the delta filter will ensure it only sends values when something changes. 
    filters:
      - delta : 0.001 #only send the result if the difference with the last sent result is higher than this

Your dividing the watertank.cm.state by the height (165cm) instead of dividing it by 100.

Using (below), and manually calculating using 165.7 for the state, works out to be 2,371.81 litres, thats closer to your 2,200L that 145,845L. Probably just need to tweak/confirm your height/radius to get it to 2,200L.

return id(watertank_cm).state / 100 * 3.14159265 * 0.675 * 0.675 * 1000.0;

So Iā€™m using the Shelly UNO and a pressure sensor that returns 0-5v.
Is there any similar to the lambda Liner calibration but in Home assistant?
Iā€™m getting so different readings depending on the height of the water and itā€™s not representative in the voltage change.

Shelly UNO is so goodā€¦ I can drive it with 24v and can read up til 12vā€¦

Right on. Glad it helped. I just went with inches for our measurement as that was what we were using to manually track our water tank level previously with a yard stick.

Has anyone figured out the best way to do this with a 0-10v level sensor? other than using a Uni instead

Firstly, a big thank you to everybody. finally installed my TL231 Liquid Level Sensor. I ordered it over a year ago, finally weatherproofed the entire solution and installed it this morning. itā€™s sending results to HA. However I am unsure of a few things.

The TL231 is connected via a Gravity Current to Voltage Converter and then to an ESP32Thing. I have had very consistent readings at ā€˜emptyā€™ and submersed in a ā€˜fullā€™ tank (4m). However I have noticed it seems to hit it limit at 2m of depth, not 4m as it was supposed to be able to do.

1.05v is what it shows at 2m or deeper. lifting it higher and i get changes.

does this output look correct you anyone with a TL231?

Bonjour quel est le type de capteur le JSN SR04T ?
Je nā€™arrive pas Ć  coder ce capteur Avec esphome

Bonjour quel est le capteur utilisƩ ? JSN SR04T ou A02YYUW ?

This is great - a coversation most of the world cannot follow!

I can, and I donā€™t speak French. Google translate plug-in.

Antonio,
Google translate? what is that. Sorry I donā€™t want to sound flippant but the forum rules are there for everyone and they clearly say that it is an english language one.
I have no doubt that there are many non english speakers that have valuable input to assist others but all international users should not have to translate conversations from one language to another just because the poster is fluent in one only.
I know that may sound biased because I am only fluent in one language - i wish it were otherwise but I guess i was lucky to fall on the side of the most commonly used and accepted one.
Pat

Why donā€™t you try ignoring the posts like you ignored probably one of the most important technologies in the last couple of decades.

1 Like

sheesh - I guess my sarcasm just slid right off the page

1 Like

Hi there,

Iā€™ve got a heavy water feature in my garden, below is a 80x40cm bucket contains water and a pump. Iā€™ve got a ultra sonic sensor ( JSN-SR20 ) but measurements are akward.

It often ā€˜hangsā€™ on around 15 cm. Sometimes it goes out of nothing to a high level. And after a while (couple of hours) it sometimes just drops back.

Iā€™ve got a filter with ā€˜minā€™ because thatā€™s always the least level possible. (i just added the lamda with min_value/max_value, but iā€™m sure that would solve my issue).

filters:
      - min:
          window_size: 300
          send_every: 300
          send_first_at: 300
      - lambda: |-
          float MIN_VALUE = 0.04;
          float MAX_VALUE = 0.28;
          if (MIN_VALUE <= (x)*100 && (x)*100 <= MAX_VALUE) return x*100;
          else return {};     
      - filter_out: nan
      - lambda: return (x)*100;

When itā€™s raining (and the water has small waves becasue of water drips), the values are even going up/down all the time.

image

The most akward question is; why is my level most of the time Ā± 15cm, while it should be around 8cm (e.g.).

Is this normal behaviour of a ultra sonic sensor and water? Is there anything i can do without removing the 100KG+ water tool? Thanks!

So for those using the TL-136 drop in style sensor in a drilled well, how do you have the wire exit the well cap?

Iā€™m concerned about not kinking the atmospheric pressure tube as well as preventing water from entering the tube. Oh and securing the whole thing so it doesnā€™t fall inside.

Thx!

not the exact same situationā€¦i have concrete tanks, I use a rock covering the breather holes as a temporary fix (to stop toads entering). Shortly i will drill a hole in the plastic shroud and pass the cables through. Note: I connect all my sensors with JCY plugs for easy swap outs. the cable ends are secured into weatherproof enclosure with cable glands. The combined weight prevents the cables falling backwards.

1 Like