Notification when value watermeter (sensor) increased by 3000 liters

Hi

Is it possible to create an automation which sends a notification every time I consumed 3000 liters of water?

I already have a sensor (via mqtt) “sensor.connectix_watermeter_totaal” which shows the total liters consumed water (this is the actual value of our watermeter)
The sensor “sensor.connectix_watermeter_totaal” increases when water is consumed but I would like to get notified every time we consumed 3000 liters.

This is the sensor I have now:

  sensor:
    - name: "connectix_watermeter_totaal"
      unique_id: watermeter_smart_gateways_current_value
      state_topic: "watermeter/reading/current_value"
      unit_of_measurement: "L"
      icon: mdi:water
      force_update: true
      state_class: total_increasing
      device_class: water

Thanks for the help.

One way would be to create a utility meter helper with no reset cycle. Then automate resetting it every 3000L and also notifying you.

Utility Meter:

utility_meter:
  water_3000_litre:
    source: sensor.connectix_watermeter_totaal

Automation:

trigger:
  - platform: numeric_state
    entity_id: sensor.water_3000_litre
    above: 3000
action:
  - service: utility_meter.calibrate # reset meter
    target:
      entity_id: sensor.water_3000_litre
    data:
      value: 0
  - service: notify.notify  # replace with your notification service
    data:
      message: "3000L of water has been used."
1 Like

Thank you, this was what I was looking for :pray:
Just tested the automation with 3 litres and I got a notification every 3 litres.
Works perfect, thanks!

1 Like