-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatermeter.yaml
42 lines (36 loc) · 1.01 KB
/
watermeter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
esphome:
name: watermeter
friendly_name: "Water meter"
area: "Laundry"
project:
name: dasfoo.watermeter
version: "1.0"
packages:
device_base: !include templates/esp8266.yaml
sensor: !include templates/esp8266-vcc.yaml
sensor:
- platform: pulse_meter
# Our meter (USLC/20) is rated Qmax=5.0 (m3/h).
# The official one is rated 5.0.
#
# 3600 / 5000 = 0.72 seconds per liter. That's the shortest
# pulse length at a maximum flow rate for the meter.
internal_filter: 720ms
# Assuming Qmin=50 (l/h), a flow with >72 seconds between pulses
# is beyond the measuring capabilities. However, one of the
# irrigation valves only consumes 0.73 L/min, so we push it a bit.
timeout: 90s
pin:
number: D2
inverted: true
mode:
input: true
pullup: true
name: "Incoming water flow"
unit_of_measurement: "L/min"
state_class: "measurement"
total:
name: "Incoming water total"
unit_of_measurement: "L"
device_class: "water"
state_class: "total_increasing"