Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

Statistics water usage for the day, since 00:00:00 in the morning to midnight

$
0
0

@Jack_Kitley wrote:

Hello all

Im battling to record how much water i use in a day. my current state is the current volume of water as an int value.

The water meter works on a pulse and is defined in tasmota as a counter. My state in home assistant is the counter value…

Does anyone know how i can display what ive used for the current day.

Thanks


- platform: mqtt
state_topic: "tele/water_meter/SENSOR"
name: water_total
value_template: "{{ value_json.COUNTER.C1 }}"
- platform: template
sensors:
water_meter_litre:
friendly_name: "Water Meter in Lt"
unit_of_measurement: 'lt'
value_template: "{{ (states('sensor.water_total')|int * 5) | round(2) }}"
water_meter_kilolitre:
friendly_name: "Water Meter in kL"
unit_of_measurement: 'kL'
value_template: "{{ ((states('sensor.water_total')|int * 5) / 1000) | round(3) }}"

Screenshot 2020-02-20 at 16.21.04

hf7tkz48x1i41 8z3pbjy7x1i41

From the above i would like to get a daily usage.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles