Water Pressure Z-wave - wifi: monitor pressure of city water

Hello,

i don’t know if i’m at the right place. if not, sorry and give me some hint :wink:

my question is: do you know a water pressure sensor that i can integrate in HA ?
eg. Water Consumption Sensor incl. Leakage Protection: Aqua-Scope i did find a vendor for this. that’s why i ask here.

thank you in advance.

ELE

I’m also looking to measure the water pressure of my well to know when the pump needs servicing. I haven’t found any off-the-shelf wifi or zwave pressure sensors, so I’ll probably build my own using a ESP32 and an analog fluid pressure sensor.

There are many water pressure sensors available on Amazon, but from the reviews they are mostly junk, often failing after a few months of use.

The DFRobot SEN0257 looks promising. Operates from 0 to 290 psi (0 to 2 Mpa). 5V input, 0.5 to 4.5V output.
Wiki page for using it with an Arduino.
Youtube video

My plan is to use the SEN0257 with an ESP32 and ESPHome for easy integration with HA.

5 Likes

Just did the same with the DFRobot sensor and a Wemos D1 mini - still figuring out the exact values for calibration.
Seems to work okay, at least for now; let’s hope the sensor lasts.

2 Likes

How is this working for water pressure? Calibrated fine and lasting?

The sensor is still working fine for me after more than 15 months.
I’m not 100% sure about the calibration, but it’s enough for me to be a ‘kind of in the right ballpark’ figure - I’m more interested in the changes than the absolute values.

Would you be willing to share your wiring diagram for the sensor and D1 mini? Also would you be willing to share your ESPHome yaml file?

Here’s the ‘wiring diagram’:

And this is the ESPHome yaml config - this is NOT the one for my city water system but the one for the pool - same difference, though:

esphome:
  name: "poolpressure"
  friendly_name: Pool Pressure
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

 # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Pool Pressure Fallback Hotspot"
    password: "SuperSecretPassword"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  platform: esphome

# Water Pressure sensor
binary_sensor:
  platform: status
  name: "Pool Pressure Status"

sensor:
  - platform: adc
    pin: A0
    name: "Pool Pressure"
    update_interval: 10s
    raw: True
    filters:
      - lambda: return ((x * 0.19) - 30.68 );
    device_class: pressure
    unit_of_measurement: "psi"

Some of the entries might be unnecessary/redundant but at the time I installed it, I couldn’t be bothered to investigate :astonished:

For the calibration/lambda calculation, I just used some middle school math knowledge along the lines of y = a*x+b.
At first, I tried to have AI/Copilot to help me solve for the a and b values for 2 sample pairs of x and y, but I had to resort back to manual calculation because I only received utter nonsense results :confused:

1 Like

Thank you so much! I’ve been wrestling with this particular setup but have ran into issue after issue.

Knowing yours works and has for a while tells me I’m on the right track going with this.

I’ll give this a shot and report back on my success, hopefully :slight_smile:

1 Like

Just ordered my pressure sensor, and just realized I failed to check what pipe thread standard it was. Looking at the website I don’t even see that it shows this. Do you know if this is NTP standard? Did you have to use any adaptors to go from BSP to NTP?

I’d ordered one of these but didn’t need it after all:

https://www.amazon.com/dp/B0C1BFFC5P