Following Brinkman’s water usage sensor setup on a NodeMCU 8266 and ESP home.
I can make all sensors work, but only one at a time.
Given all the working examples of this setup it should work.
Anyone who can tell why this don’t work?
No errors. Just reporting 0
sensor:
- platform: pulse_counter
pin: GPIO12
update_interval : 5s
name: "water pulse"
id: water_pulse
- platform: pulse_meter
pin: GPIO12
name: "Water Pulse Meter"
unit_of_measurement: "liter/min"
icon: "mdi:water"
total:
name: "Water Total"
unit_of_measurement: "liter"
- platform: pulse_meter
pin: GPIO12
name: "Water Pulse Meter"
unit_of_measurement: "liter/min"
icon: "mdi:water"
total:
name: "Water Meter Total"
unit_of_measurement: "m³"
id: water_meter_total
accuracy_decimals: 3
device_class: water
state_class: total_increasing
filters:
- multiply: 0.001
- platform: template
name: "Water Usage Liter"
id: water_flow_rate
accuracy_decimals: 1
unit_of_measurement: "l/min"
icon: "mdi:water"
lambda: return (id(water_pulse).state * 10);
update_interval: 6s
Output from ESPHome:
[16:01:09][D][pulse_counter:174]: 'water pulse': Retrieved counter: 0.00 pulses/min
[16:01:09][D][sensor:093]: 'water pulse': Sending state 0.00000 pulses/min with 2 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Meter Total': Sending state 0.28800 m³ with 3 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Pulse Meter': Sending state 394.10419 liter/min with 2 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Meter Total': Sending state 0.28900 m³ with 3 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Pulse Meter': Sending state 377.81235 liter/min with 2 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Meter Total': Sending state 0.29000 m³ with 3 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Pulse Meter': Sending state 347.88257 liter/min with 2 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Meter Total': Sending state 0.29100 m³ with 3 decimals of accuracy
[16:01:09][D][sensor:093]: 'Water Pulse Meter': Sending state 341.47952 liter/min with 2 decimals of accuracy
[16:01:10][D][sensor:093]: 'Water Meter Total': Sending state 0.29200 m³ with 3 decimals of accuracy