Water Meter sensor - Australia, Victoria

For anyone else in the same situation, this yaml got met there.

sensor:
  - platform: template
    sensors:
      total_litres:
        friendly_name: "Water Meter Litres Used"
        unit_of_measurement: "L"
        value_template: >
          {% set pulse_count = states('counter.water_pulse_counter')|float %}
          {% set pulse_weight = 5 %}
          {{ (pulse_count * pulse_weight) | round(2) }}

In my situation each pulse is 5L

Sorry for the delay - I need to sign on here more often,
But that’s exactly what I’ve got, more or less.

Dang. Well, the ā€˜smart meter’ has been running for a week now and I can see info on their website but the interface uses scripting that appears to break access via the likes of parsehub. So try as I might, I can’t find a way to capture the data automatically. No doubt this is intentional to prevent scrapers that are being used for evil, but I just want to access my data in a way that makes sense to me. Sigh.

@zagnuts The website also says data transmissions happen once a day, so I don’t think it will be useful for instantaneous usage. Have you had any luck with the EN13757 interface via the optical slots on the face of the meter, based on this thread? https://www.reddit.com/r/homeassistant/comments/1gup36y/ultrasonic_water_meter_reading/

I’m looking to get data off the device as well, just had mine installed through SEWater as well! AI on the Edge via ESPCAM might also be an option, but I don’t think the screen stays on all the time. Happy to help test if you come up with something!

Interesting. I haven’t tried that yet, but might give it a go.

Apropos of nothing but to show how useful this sort of monitoring can be, I noticed that my water usage has been steadily increasing over the past year. When I looked at the data coming from the water meter (which has been in place only for the last few months) I can see that it was always increasing, even during the nights.
I called in a plumber and he found a leaking toilet (I hadn’t noticed - I suppose I was facing the other way at the time!!!) and repaired that.
I was able to watch the data from the water meter coming in in real time and it immediately stopped increasing and was steady (until we flushed the toilet as a test).
Last night was the first night for some months that shows 0L water usage.
Lesson: it pays to monitor what is going on in your home - while the plumber cost me money, it will be paid for in the coming months by lower water bills.
Susan

2 Likes

So, have had a closer look and the challenge will be doing it without potentially compromising the protection from water ingress into the meter. Most of the external readers I can find stick in front of the lights, and would prevent the lid from closing. As the meter is outside, this would risk moisture resting on the top of the meter and over time getting in causing it to fail. Potentially could put a larger lid over it - such as some sort of bucket - but it would need to be RF transparent to enable the signal to get out as well as UV resistant.

I’m looking to see if there is an alternative - maybe some thin optic fibres that could channel the light from the transmitters, under the closed lid, to the reader mounted externally. Or, just get a plumber to put my own meter in after the mains. That might be easier.

Is anyone else having issues where pulse water does 0 pulses/min but the other sensors work fine?

sensor:
  - platform: pulse_counter
    pin:
      allow_other_uses: true
      number: D5
      inverted: true
      mode:
        input: true
        pullup: true
    update_interval : 10s
    name: "pulse water"
    id: pulse_water

  - platform: pulse_meter
    pin:
      allow_other_uses: true
      number: D5
      inverted: true
      mode:
        input: true
        pullup: true
    name: "Water Pulse Meter"
    id: water_pulse_meter
    unit_of_measurement: 'l/min'
    icon: "mdi:water"
    internal_filter: 100ms
    timeout: 30s
    filters:
      - throttle: 10s
    total:
      name: "Water Usage Total"
      id: water_meter_total
      unit_of_measurement: "m³"
      accuracy_decimals: 3
      device_class: water
      state_class: total_increasing
      filters:
        - multiply: 0.001  

Im using a d1 mini pro

It looks like SEWater are using the Landis+Gyr W350 meter. I see what you mean with the cover not giving you much room.
Maybe a side looker light to voltage device like this TSL12S would fit. It would only need 2.56mm space between the emitter and the lid. It can use 5V or 3V3 supply and is very sensitive to red light.

If you’re looking at going down the fiber optic path I’ve just finished interfacing to my power meter using fiber optics. I used a SMFLP30.0 from Mouser Electronics.

1 Like

Hi Everyone, here’s how I modified a modern reedless door sensor for my Melbourne, Australia water meter.

As a new user I can’t post all the images, see link for article view with inline pictures:
projects/Home Automation/Home Assistant Water Meter/README.md at main Ā· schmttc/projects

  • Generic Zigbee door/window sensor:
  • Internal PCB. The hall sensor is H1 circled in red.
  • Desolder the hall sensor, and wire in your extension wires VCC/GND/Signal
  • Solder the hall sensor to the other end of your extension wires. Try to ensure you get a solid connection, my first try came unstuck when I was trying to find the right probe location. It may be a good idea to first put a blob of hot glue around the sensor to mechanically reinforce the connection.
  • Create a probe 4.5mm in diameter and around 30mm long (the meter’s probe hole is about 40mm deep) using heat shrink or tape. You want the probe to fit in the meter, but not be too easily knocked out of position. To provide structure, first I used a nail, which transmitted the magnetic pulse with low positioning accuracy required, but I was concerned about long term magnetisation of the nail causing the sensor to become faulty over time.
    Instead I used a piece of bamboo skewer, but the positioning of the hall sensor needs to be quite precise (within a few mm)
  • Testing on new batteries I reliably received a signal on a 5m cable (my in place implementation is around 3.5m)
  • As mentioned above, placement of the hall sensor needs to be quite precise. Turn a tap on so your meter is running, and hunt around for the correct position by watching for the red light on your sensor.
  • On my meter the hall sensor is located approx 5mm inside the probe hole.

Home Assistant Configuration

  • Add the zigbee sensor to Home Assistant as device name ā€˜WaterMain’

  • Add to your configuration.yaml:

    • This creates a total use counter entity ā€œTotal Water Usageā€ that is updated by the pulses from your sensor, and a daily resetting entity ā€œDaily Water Usageā€ that can be used on your energy dashboard.
    • My meter counts in 5L increments. If your meter has a different pulse rate, change the 2 instances of the number five ā€œ5ā€ to match your meter rate.
# Water Meter
counter:
  water_usage_events:
    initial: 0
    step: 1
template:
  - sensor:
      - name: "Total Water Usage"
        state: >
          {% if is_state('binary_sensor.watermain', 'on') %}
            {{ (states('counter.water_usage_events') | int) * 5 }}
          {% else %}
            {{ (states('counter.water_usage_events') | int) * 5 }}
          {% endif %}
        unit_of_measurement: "L"
        device_class: "water"
        state_class: "total_increasing"
utility_meter:
  daily_water_usage:
    name: Daily Water Usage
    source: sensor.daily_water_usage
    cycle: daily

Create this automation, which adds to the counter on a pulse event:

alias: Count Water Usage Events
triggers:
  - entity_id: binary_sensor.watermain
    from: "on"
    to: "off"
    trigger: state
actions:
  - entity_id: counter.water_usage_events
    action: counter.increment

Add graphs to your dashboards, and enjoy visibility of your water consumption!

Nice work!

I’m curious about battery life though, it’s obviously sending far more frequent reports than your average door! Does this sensor report battery level?

Please keep us posted,
Dave

Yes there’s a battery level report, still at 100% on the first week of fresh batteries. I’ll keep you updated.

The ZigBee sensor is advertised as a battery life of 100,000 triggers. It uses two triggers (on/off) per 5L in my case, so it all depends on your usage.

If we derate the marketing 20% there’s 40,000X5 = 200,000L, so 500L a day is 400 days, 1kL a day is 200 days etc.

1 Like

I’m in the same situation as everyone here that has gotten their old school water meter swapped with a smart one, I’m also a SEW customer.

I have tried using this project, however haven’t got it working yet:

Got a back and forward troubleshooting going on with the developer, but still no avail.

I am interested in the local LED emitting option…looks like nobody has been able to get it working yet, will be following this closely.

Hi all,
Ive been watching this tread for a while and was looking to setting sonething up.

But last month yarra valley water started a trial of their new generation meters in certain areas of their network.

Has another one else seen one of these new green meters and looked into it more.

Ill email them today to see what i can find out.
Sounds like they maybe rolled out to the wider network over the coming years

Great product and solution
Could I please ask what zigbee sensor you used and how you modified it?
Many thanks

I got these ones (the Zigbee variant), but pretty sure any of the similar style ones would work just as well.
In terms of modifications, it was just a case of opening it up, finding the 3-pin SOT reed switch and desoldering it, then soldering on a connector to wire up my own reed switch.
Mine ended up being a bit bodgy, but something like this:


Centre-top you can see the pads where the old 3-pin switch sat, and I’ve soldered a header pin on instead, which I then took off to some plugs to connect my switch input (with the other end going to GND, from memory - probably verify the pin continuity of what the original was doing with a multimeter to check though).
I don’t actually recall why I added that resistor, but I suspect it’s a pullup on the MCU’s input pin, otherwise removing the chip would leave it floating.

2 Likes

This looks super nice. How have the sensors been performing over the last year? I’m looking to do this but want to minimise any DIY because my soldering and wiring skills are zero.

Was there a reason you go to the effort of solar when say a zigbee door sensor would last 1+ years? e.g. combining schmttc’s door/window sensor with the sensors you bought in my simple head would be a pretty neat solution? Then just solder accordingly?

It’s been great, no major issues. Only minor ones have come from hitting the water meter when whippersnippering, which has occasionally caused either the reed switch or one of the connectors to shift enough that it stops reading, which is unfortunate. Usually just a case of jiggling it all afterwards and it’ll come good again, though.
I imagine you’d get pretty reasonable life out of keeping the zigbee sensor on battery, depending on your water usage. I just had the solar light hanging around already and I prefer not to have to monitor battery levels if I can avoid it — but there’s certainly no need to go to those lengths.

Hi @chossenger,

FYI - https://www.aliexpress.com/item/1005006008263956.html

I modified that sensor and put my own reed switch on it. In 24 hours the brand new AAA batteries went from 100% to 40%. I don’t know if it is just the quality of the device or not, but it will not be possible to make this as battery powered only.

I should add that it is not making a good network connection due to how far from the house it is, so I am not sure if it is working its arse off to connect and that is adding to the power drain. I purchased a zigbee smart power plug that can go 5 meters from it, so we will find out soon. I have one of those sensors on my garage door and it has not skipped a beat in 12 months.

I ended up buying a $13 solar light from Bunnings ( https://www.bunnings.com.au/solar-magic-bollard-sensor-light_p0269733 ). I have housed the sensor inside the tube. Next step will be to hook up the small solar panel and the batteries. Hopefully it will generate enough to keep them charged.

P.S - That solar light you have hooked up was recalled by Aldi. Just a heads up. It will probably be fine, but thought I’d let you know in case you didn’t.

Hi All,
I have this working locally great with a D1 Mini and ESP32. What I am wanting to do now is monitor another water meter across the internet from a site that is behind CGNAT and not connected to me via any VPN. Is there a way to get the unit to report to my Home Assistant instance securely via Nabu Casa etc? Thanks.