Esphome pulse counter water meter 0 total: name: utility-pulse-counter_gas_meter_total icon: mdi:fire device_class: gas id: gas_total unit_of_measurement: ft³ filters: - multiply: 10. To review, open the file in an editor that reveals hidden Unicode characters. im using an ESP32 which apparently has a good pulse counter circuit or something. I tried the pulse_meter as well, but I never got it to run reliably. So I’ve purchased a pulse flow water meter from Amazon (about 55euro), I’m in Europe and the item reached me from Germany. Having a D1 mini, where do I start from there to get that up and running with what yaml? How do I get yaml onto that? And how do I hook it to homeassistant? Connecting a flow meter to gpio5 seems the most easy part :-). 15m - 1h), the counter gave up on it. be (same sensor and code logic, just for the power meter instead of the gas meter). It worked just fine, there was setting “debounce time” set for 65 ms. Before I start to connect my ESPHome device, I would like to verify the hardware setup to avoid any possible damages caused. Is it physically feasible? That much water is so little time in that tube? Are the two sensors Sep 4, 2021 · Hi petsie, I’m trying to achieve something similar: I bought an ELV ES-GAS-2 module for my ELSTER gas meter. My ESPHome Code: sensor: - platform: pulse_counter pin: GPIO12 unit_of_measurement: 'kW' name: Stromzaehler filters: - multiply: 0. I came across this meter. For $10 an easp32 and a QMC5883L Magnetometer can sufficiently read magnetic changes inside the meters! I’m just struggling to convert the sine wave Dec 2, 2023 · Hello, i have a ESP32-S2 mini with 5 pulse-counter sensor for water flow, 4 sensor works, 1 is always “unknow” in esphome, no data from this sensor in the logs. 0 disabled_by_default: false force_update Feb 3, 2021 · The output is what it says, a pulse. After some discussions in Jul 20, 2019 · BTW, in ESPHome the pulse counter sensor defaults to measuring its values using a unit of measurement of “pulses/min”. It measures and displays the Pulses per minute. Which version of ESPHome has the issue? 2023. 000 liters in one minute. Dec 20, 2023 · With ESPHome I have created a pulse counter to get the used water in m3, so I can read this and connect it also with the energy dashboard. - platform: pulse_counter pin: 12 unit_of_measurement: 'mm/min' name: 'Rain Rate per minute' filters: - multiply: 0. However I would like to display the total amount of liters per day. 6667 pulses, which are approximately 63. Oct 18, 2023 · From the data provided: 1 liter of water flows in 36 seconds. You need to add a pulling resistor on the GPIO34 (there is no internal pullup on this GPIO). 18V. May 27, 2021 · I recently discovered pulse_meter and have been using pulse_counter. In this project, I will be using a Wemos D1 Mini, but you’re welcome to substitute any ESPHome compatible chip that has analog capability. set_total_pulses service to set the total value to match my gas meter. Watch the build on YouTube. Homeassistant is displaying the L/min water flow no problem, I added a second sensor to the ESPhome config to divide by 60 giving the actual flow in L/sec Feb 2, 2023 · Guys, I’m struggling with two things to understand the pulse meter sensor: 1: Does the optional total counter sensor only sum up all pulses for as long as the ESP is not being rebooted? On other words: Is the total counter being set back to zero when the ESP gets rebooted? 2: The following example from the desciption website linked above does confuse me: on_: then: - pulse_meter. When used on a power meter, this can be used to measure the total transmitted Nov 8, 2022 · So I’ve set up the pulse_meter sensor to read out my gas meter and I’m trying to figure out how I can persist the total number of pulses between reboots / updates, since the total value returned by the sensor resets to 0 when I update the esp. yml This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. sensor. Jun 10, 2022 · I don’t know were to find the versionnumber of Esphome. See configuration options, examples, and how to convert units and reset the total count. However this is a very unprecise way of measurement ESP8266 based pulse counter for home utility meter compatible with ESPHome, Tasmota, etc Feb 20, 2023 · I’m trying to connect a water meter to HA using a ESP32 board, but HA is showing continuous pulses from the water meter that are obviously wrong. Learn how to use the pulse meter sensor to count pulses on any pin, such as a water meter or a power meter. 1 May 4, 2022 · I wanted a reliable water meter. I tried to use esphome pulse_counter with a filter -initial value but the problem i have with this is that everytime it Nov 16, 2020 · Hi there, I’m trying to integrate my home water and gas usage into HA. More than 80 000 and 160 000 pulses per min. I’ve calculated the pulses as 17 per min per litre of water (it’s 1pulse per gallon of water through the meter). I’ve chosen the 88pulses/L. May 11, 2024 · Using esphome’s recommended pulse_meter I have the following working setup: See full list on pieterbrinkman. g. Your counter should not generate electricity more than 0. Code below. Jan 19, 2022 · Luckily, the analog output is more varied. Setup: Water meter - EKM SPWM-100-NSF. Oct 8, 2022 · Has anyone been able to make this work on a Badger Model 25 water meter? I have an ESP32 with a LJ18A3-8Z/BX but I’m not able to figure out where to mount it to get a reading. The Reed Sensor tracks the turning wheel below it and Aug 17, 2023 · The problem Greetings. I was trying to measure running-time of an HVAC system. (87 as by supplier quality control) But you can find also 1pulse or 2 pulses per Aug 23, 2021 · I started off with a cheap and easy to buy YF-S201 Hall Effect Water Meter flow sensor. 1); unit_of_measurement: "Gallons/minute gpm" - platform: integration name: "Livestock Total Water Usage" unit_of_measurement: "Gallons" sensor Jan 15, 2024 · If you have a water meter (Sensu R-315 for my part), it may have an indicator allowing you to know the current consumption fairly accurately. I have created a pulse counter with ESPHome and a utility meter inside Home Assistant that tracks the total daily usage based on the pulse counter. I notice that ESPhome has a Pulse Counter, which is basically how a flow meter works: there’s an inline rotor with a magnet in it, and a hall sensor that notices when the magnet comes round again. It does not make any difference to Feb 22, 2022 · I have several pulse_meter sensors configured using the same pin. it) As far as I can measure the wheel spins exactly 1x per liter and I can successfully register the metal part of the wheel passing my sensor. 7. I have created the following code in ESPHome: sensor: - platform: pulse_counter pin: GPIO14 The problem I had a TCRT5000 running as PULSE_METER for a few months now with very! accurate readings of my Ferraris energy meter. But after trying some syntax changes, i noticed that i couldn’t select ‘water’ or ‘volume’ as a device class for this entity. 5 liter bottle by opening the tap with a slow and fast flow. So every rotation I receive a short pulse (red area) and a long one (time between the red marking). The power meter examples are near identical — which is also my use case. 5 liters. Everything is exactly like the configuration on head of this article. Did i do sth. It appears to work when fed pulses on my bench, but I’d like to initialise the kWh total to the same value as on my electricity meter. 0 forks Report repository The wind speed sensor is connected to general input 34 and the ESPHome pulse_meter platform is now used to perform the measurement. 4km/h). e. Readme Activity. I’m keen to understand the two platforms a bit better (out of curiosity). The solution to read it was by using either a reflective sensor or a proximity sensor. 20. I’ve just tested to use pulse_counter & pulse_meter on the same IO pin - which seems not to work … but in my opinion, this limitation does not seem correct to me… Specifications. Jan 19, 2023 · I’m pretty new with esphome, I want to make a small weather station with the weather kit from sparkfun ad both the rain gauge and the anemometer send pulses to keep track of precipitation and wind speed (ex. How do I stop thesee lines of output with 0 decimals of accuracy [07:28:11][D][pulse_counter:174]: ‘Pulse CounterA’: Retrieved I'm trying to bring in my water meter usage into HA preferably with esphome. When water is running, is get correct values for. 0 and have added designed it like this: # Reed switch between GPIO and GND sensor: - platform: pulse_counter pin: number: 12 inverted: true mode: input: true May 2, 2020 · @pmiles156 Everything looks great! Your pump pushes a maximum of 8L/min, which is 480L/hr. pdf (maddalena. It is possible to read it over the air so it could be actually the perfect way to integrate water consumption monitoring into HA. (Build a cheap water usage sensor using ESPhome and a proximity sensor - PieterBrinkman. The total_daily_energy sensor is a helper sensor that can use the power value of other sensors like the HLW8012, CSE7766, ATM90E32, etc and integrate it over time. Now I get no reading of any flow in homeassistant. Since the ‘pulse’ tended to run for many minutes (e. This can for example be useful to integrate the values of a water flow sensor (in m^3/s) over time (result is in m^3). It is working, but the values are not quit correct. Jun 29, 2022 · In Belgie (Antwerpen) webhebben we have digitale watermeters from Kamstrup, the Multical 21. In the Pieter Brinkman example, there are two pulse_meter sensors and a pulse_counter sensor. com) What have been done is just the reading of the water meter. I have little skills for the electronics here. Why did I have to build my own pulse counter? Because the built-in version only supports digital inputs, not analog Sep 12, 2019 · sensor: - platform: pulse_counter id: water_pulse pin: D3 name: " Pulse Counter " update_interval: 1s - platform: template name: " Water Flow Rate " id: water_flow_rate accuracy_decimals: 1 unit_of_measurement: " L/min " icon: " mdi:water " lambda: return (id(water_pulse). The problem is the pulse meter sensor in ESPHome appears to be inaccurate, in that it tells you how many times it’s flashed in a given period, and thus is confined to give whole numbers. Aug 9, 2021 · Below are pictures of the finished case and the utility meters: The ESPHome code uses the pulse_meter sensor, sensor. 2) the PULSE_METER went crazy. Water flow is measured by flow sensor, and I used Pulse Counter Sensor: - platform: pulse_counter pin: D7 name: "Flow" update_interval: 5s filters: - lambda: return (x / 27. Dec 25, 2023 · Hello everyone, I have a water pulse meter that sends 1 pulse for every liter. My problem however is that i cannot find a way to add a counter that allows me to set the current reading on the watermeter. Sep 16, 2021 · - platform: pulse_meter pin: number: 33 mode: INPUT_PULLUP inverted: false unit_of_measurement: ft³/min name: utility-pulse-counter_gas_meter icon: mdi:fire device_class: gas filters: - multiply: 10. I change the GPIO39 who work for a sensor to this “unknown”. 10 # pulses x 0. 11 release of Home Assistant added the option to track water usage in the Home Assistant Energy dashboard. no voltage) reed switch with 2 wires. Water meter device: Axioma F1/IP65 Max load current: 20 mA Max voltage: 50V Pulse length: 125 ms Pulses per litre: 1 Planned setup +Pulse → D2 (GPIO04 Here is some of the code used in ESPHome: sensor: - platform: pulse_counter pin: 21 id: livestock_water_usage name: "Livestock Flow Rate (GPM)" update_interval: 5s filters: - lambda: return (x * 0. i have created my own sensor for my utility water. The pulse sensor connects to a Tehama TW-160B-P module and has ~2. The unit of measurement is set to m³, so i thought that was enough. 6667 liters/minute. Add a time sensor to do an on_time: reset of the sensor at the end of the day. (96rounds per kwh) I have a tcrt5000 sensor attached to a wemos d1 mini. Jan 12, 2020 · Hi, i have a gas meter i want to track in Home Assistant. like this: im using a NodeMcu V3 1. Oct 3, 2022 · I’ve made an energy meter using the ESP home pulse counter. liters per hour, during the last hour, so if you want to have the liters ever since you’ve opened the faucet you have to integrate the sensor, unfortunately the integration sensor is buggy on 1. I can fill 1L in about 15 to 20 Oct 5, 2020 · What I did to get most “false counts” away is in ESPHome at the sensor I’ve added “internal_filter”: sensor: - platform: pulse_counter pin: D2 name: "Water Meter" update_interval : 60s accuracy_decimals: 0 internal_filter: 200ms So in this case: all the counts that are less as 200ms long are not counted. Measurement of water consumption directly from your water meter with a TCRT5000 like sensor and ESPHome. 9. I am using a Wemos D1 R2, and a YF-DN40 water flow sensor (the big one). I have the integration reset at midnight with the following built-in call: on_time: - hours: 0 minutes: 0 seconds: 0 then: - sensor. For number 1 the pulse counter is almost unusable. huitema for the guidance 🙂 This solution reads my existing water meter and integrates the usage into Home Assistant, including the Energy dashboard. Nov 1, 2023 · Working on adding a water meter to Home Assistant, using an ESP32. Apr 25, 2023 · Some of you may be looking for a solution to monitor your home’s water usage both reliably, and above all else, at a low cost. Can you tell me if something is Nov 7, 2022 · It should be like this. I built a DIN rail mountable pulse water meter reader for Home Assistant using an ESP32 board and ESPHome. If you are in the US, how is your connection setup so i can try the same? I have the project built and tested on the bench, but can’t get it inline with the actual water flow. I’m still struggling to understand the ESP code. I test it with a 1L jar where I also have 60 seconds to test it. however when I examine the espHome output I get a number of lines which duplicate the information and confuse my spreadsheet. The specs limit this sensor to 50 L/min and the sensors are getting water from a river. Having not doing any research beforehand - the basic idea was the meter would produce pulse outputs - applying similar pulse_counter feature from ESPHome as implemented on the Power Meter skids would give me my water flow rate readings per min/seconds and summing it up would give total water volume consumed. Basically, the gas meter reading in m³ is converted to kWh via a factor which can be requested by the gas supplier or is part of the gas bill. 1mm for default 60s total: unit_of_measurement: 'mm' name: 'Total Rain' filters: - multiply: 0. ESPHome is an excellent platform to base this type of project upon due to it’s versitality and cheap chips. Actually it should be 60 liters / h … The meter measures with 1 pulse per liter. This allowed me to use a an esp32 to monitor the pulses from my water meter which directly related to 1l of water usage Jun 5, 2023 · It seems very weird, recently two of my five yf-B10 flow rate sensors started giving me crazy values. 1 to 8. 367 Everything runs fine, and I get the values in HA, but I would like to have them also as a daily value: As Dec 30, 2022 · Here’s my code on the sensor via ESPHome: sensor: - platform: pulse_counter name: "Pulses" id: pulse_irrigation pin: 19 update_interval : 5s - platform: pulse_counter name: "Flow rate" id: water_pulse_irrigation pin: 19 update_interval : 5s accuracy_decimals: 2 unit_of_measurement: "Liters/hour" filters: - lambda: return x / 330 * 60; #330 is Nov 18, 2024 · Hey! I need some help. Jun 21, 2021 · Hi all, I am pretty new to ESPHome - a friend got me hooked up and I am familiar with the basics, but have very little experience. 01A, 24AC/DC, or the reed switch may be Jun 3, 2022 · Hello, I would like to track the current state of my water meter, and i have been able to get esphome to give me a pulse everytime one liter is used. Now I found the pulse_counter with the “Total” attribute which should give me the total pulses, so I built a Nov 17, 2020 · I’m looking for a high quality water flow sensor to monitor the water used by my irrigation system. I bought a cheap water flow meter with built in hall sensor from ali, but it wasn’t accurate at low flow rates. Jul 10, 2024 · thanks . 01 m^3). set_total Nov 8, 2022 · So, we will connect the LJ18A3-8Z/BX proximity sensor to our board with the ESP, be it ESP8266 or ESP32, and then we will glue the sensor to said water meter spinner. I have spend multiple days to find a solution esphome: name: home-water-pulse-meter esp8266: board: esp01_1m logger: api: captive_portal: ota: password: "4ddc5ac48879ecc7d06a3c031e497e8d" wifi: networks: - ssid Oct 11, 2022 · I built something for the same power meter type, using the approach documented in Tracking gas usage with ESPHome, Home Assistant, and TCRT5000 | Savjee. Mar 6, 2021 · I have been running the Pulse_counter on a nodemcu for 3 weeks, it worked quite well, my water meter has 1 pulse per liter. If using Home assistant energy dashboard, add your water total and you don't need to worry about resettable as it will give you stats over the viewed period Jun 8, 2020 · I was thinking about the pulse counter myself, as Im also using it on an s0 meter and a water meter. The home’s water utility meter is very accurate. The problem is the pu… Sep 11, 2019 · This is part of the ESPHome config: sensor: - platform: pulse_counter pin: number: GPIO12 inverted: True mode: INPUT_PULLUP unit_of_measurement: 'mm' name: 'Rainfall' filters: - multiply: 0. 66 pulses/kWh, or 3200 pulses/kWh. Matching it against an existing meter is useful in that it allows visual confirmation for some devices that blink an LED for each pulse. com) but I want to run it on batteries since my water counter is isolated and there is no way to fit a charger or connect to mains. esphome_water_pulse_meter; sensor. The following schematic and YAML are for building and configuring a pulse water meter reader using an ESP32 board and ESPHome. As every pulse is exactly one liter, it currently displays the Liters per minute in Lovelace. 6 pulses per l/min for YF-B6)… I am not interested in the flow rate - more the water consumption Feb 11, 2023 · The water meter does not yet integrate nicely with the Energy Dashboard in HomeAssistant. Dec 14, 2021 · I think I also have this issue on 2 of my 3 ESPHome delivered pulse_meter readings, the water and gasmeter. Nothing really more. There are 2 things we want to measure here: 1- The active power in Watts, or the current waterflow in l/min 2- The usage over time. 6. (when done, a cookbook entry for water flow meters would also be nice). I have attached a reed switch to the gas meter and every time the second decimal place completes one turn the switch gets triggered. Why would I use the one over the other? The pulse counter has a bit more flexibility with the mode that can be configured, but except for that, does the one pose any other Jan 15, 2023 · Hi I am wondering if it somehow is possible to utilize ESPhome in building a simplified water usage meter ? I am thinking about using an YF-S201 or YF-B6 water flow sensor - but the challenge is, that these outputs a signal based on the water flow (HZ = 7. > - platform: pulse_counter > pin: GPIO18 > id: vodomer_esp > unit_of_measurement: 'l' > name: Průtok vody > icon: mdi:water > internal_filter: 13us > > total: > unit_of_measurement: 'l' > name: 'Stav vodoměru' Both flow and total values are sent May 23, 2023 · Hi, I try to build a battery driven Water Meter. 5 pulses per l/minute for YF-S201 and 6. I have filled a 0. May 9, 2021 · Water pressure sensor - do not get correct values I’m trying to use esphome to measure the water pressure using sensors. I’m attempting to integrate it into Home Assistant with a simple goal - to store the total consumed liters. I’ve tried setting the target sensor up as a platform: homeassistant sensor and reading it back from there but I always get back a value of MAX Apr 22, 2019 · change unit_of_measurement: to L/Hr may be. 0; unit_of_measurement: "L/hr" Or at least, my original did. I am using homeassistant 2022. It seems to be working well. ” change the pin schema as below and it works (allow_other_uses: true) sensor: - platform: pulse_counter pin: number: GPIO27 allow_other_uses: true update_interval : 6s name: "water pulse" id: water_pulse - platform: pulse_meter pin: number: GPIO27 allow_other_uses: true name: "Water Pulse Meter" unit_of_measurement: "liter Apr 6, 2021 · In my set-up I am using the pulse_counter and the integration sensor. In case of a problem with reading data from the sensor, disable filters/multiply and internal_filter in the program and check the log. For May 19, 2020 · Hi @ashscott, my flow meter YAML looks like this: sensor: - platform: pulse_counter name: "Flow rate" pin: GPIO5 update_interval: 60s filters: - lambda: return (x / 27. I am migrating from Domoticz where I had my water meter sensor (Cyble sensor 2 wire K1) connected to Sonoff Basic R1 on GPIO14 running ESPEasy 1. Good but Aug 14, 2022 · sensor: - platform: pulse_counter pin: number: 4 #Change according to the pin where you connected your flow sensor on ESP32 board mode: input: true pullup: true unit_of_measurement: 'L/min' accuracy_decimals: 2 id: water_usage name: "Débit d'eau instantané" #Choose name according to your display language update_interval: 5s filters: - lambda Oct 19, 2023 · Hey guys, i wanna use a wemos d1 mini esp32 to build a water meter. now, in stead of DIY solutions, I’ve found the MC21 Pulse Adapter 🙂 It sends “pulses” through the attached wire… Well, I don’t know a lot about electrity… but is there a way to “convert” those pulse into something else that Home assistant can work with? Wild guess: like connecting to Jun 14, 2021 · Hi all, i´m trying to figure out how to read the energy consumption from my old ferraris counter. - platform: pulse_meter pin: 16 name: "Water this hour meter" id: water_this_hour_meter internal_filter: 100ms timeout: 30s tot… Jan 7, 2023 · Everything is working fine expect the pulse_counter. I started a new project, counting my power-pulses with an energy-meter and S0 interface. Is this something i can connect to my ESP? Or would i have to get a separate sensor and mount it to the meter? Oct 28, 2019 · At the moment i’am running ESPHome on a WeMos D1 , with a connected NPN inductive sensor . I am using a Wemos D1 flashed with Esphome and with currently 1 hall switch connected to get pulses from a magnet on the last dial of the gas meter. The 3 wires are then connected to D1mini and am using a pulse_counter sensor of ESPHome. In kwh or m3. Nov 5, 2022 · Hello, i was trying to setup the water consumption in the energy dashboard, but was not able to select my entity ‘water totaalteller’ that i get from the ESPHome pulse counter. state /17)* 1; update_interval: 3s # meter is 1 pulse per gallon so water-meter. 6 # (60s/100 May 31, 2019 · Greetings fellow humans, I wish to build a thingy that tracks the flow of water from our borehole pump to the tanks. ESP. I assume this is caused by bouncing effect of the digital output of the sensor. Its operation is quite simple, a disc (see photo) visible in the dial of the meter rotates at a speed proportional to the flow of circulating water. I went through several examples and ended up with the code below, which has an issue: after restarting, my consumption shows a value of 1,073,741,824 liters. 07V should be enough to build my own pulse counter. The setup uses the existing flow meter (turbine) of water softner. Sep 26, 2023 · Build a cheap water usage sensor using ESPhome and a proximity sensor - This article will provide you with a walkthrough on how you can build a water usage meter sensor that integrates with your Home Assistant for under 10 $/EURO without the need for any soldering or coding skills. The output voltage is around 0. utility_pulse_counter_water_meter_total cycle Feb 26, 2024 · I uave a question on this. You can find the schematic and YAML configuration Mar 1, 2020 · Hi, I have build a Water Meter based on a Wemos D1 mini and have integrated it in Home Assistant via the ESPHome Add-on and integration. Which might be correct after all, knowing the effects. This means the flow rate is 1 liter / 36 seconds = 1. The first one would barely register a pulse on the bench with a magnet but the second (installed much jankier in the meter!) seems to be working well! The Pulse_meter function in combination with TCRT5000 sensor on a Ferraris energy counter is counting a pulse by getting high and also by getting low. 4. I don’t have proper results with pulse_counter either and stumbled across your post. After a bit of research I found a pulse meter that attaches to this meter to provide an output I could use. This can be useful if you would like the total sensor to match what you see on your meter you are trying to match. At the moment i only get Feb 7, 2023 · I’m using an EKM water meter that has the same pulse per 0. Rain Gauge: 1 pulse = 0. For this I use the S0 interface as described here The meter delivers 100 pulses per kwh Pulse Counter: sensor: - platform: pulse_counter pin: GPIO5 name: 'Power' id: power unit_of_measurement: 'kW' state_class: measurement device_class: power filters: - multiply: 0. Total water consumption resets to zero when rebooting the board - this leads to hilarious water consumption rates, for example 800. Do I need to resort to handle flow sensor signal edges myself or is there any other ESPHome component suited to solve this? Oct 19, 2022 · The problem I am using the pulse counter sensor for my gas meter. Thanks in advance! Sep 18, 2023 · Hi All Has somebody ever managed to calibrate this sensor the right way ? With the following recomended function on another thread, I get crazy values (500 L when the tap is opened for 2 seconds). Same behavior. 25V when the mirror is not facing the sensor, and when it is, the voltage drops to 0. You will need software inside whatever is receiving the pulses on a digital input pin to count the pulses and convert them to a number - either an accumulated count (if it’s the pulse output from an energy meter, that count will represent the total energy) or a rate, which in that case would indicate power. 0. I am currently updating at 20s intervals, only because I also use this data to detect air in the pipe (ie borehole empty). This Jul 15, 2022 · Just use a pulse counter - typically the buckets tip once per 0. I really dont know what is Feb 16, 2023 · The problem My water meter that uses the pulse_meter platform has stopped working after updating to 2023. Apr 11, 2019 · Yes, the pulse counter covers this use case, see energy meter cookbook for and example filter. The brand is systeme-sh. Mar 16, 2023 · Learn how to use ESPHome to read a water meter with an impulse sensor and integrate it into Home Assistant. In operation, it looks like you’re actually getting around 305L/hr, so you can see that the manufacturer was a little bit optimistic - either that, or it is having to push water uphill, which always affects performance to some degree. 0 Wh Feb 6, 2021 · Hi, I’ve got a light sensor on the flashing led of my electric meter, and using the pulse counter in ESPHome, I’ve got it working fairly well, and it gives a ballpark figure in KW every 60 seconds. Sep 21, 2020 · Bought the yf-b10 water flow sensor. Tapped into the 3 wires (VCC, GND, DATA) of the magnetic flow meter. My esp config yaml … May 7, 2021 · I’d like to measure flow and amount of water which is used by watering system in one cycle. I’d also like to be able to edit this value from within HA in case I loose counts for some reason. This sensor read’s the pulse on the Elster water meter . No pulses are ever reported in home assistant or in the logs of the device. 6667 liters of water flow per minute, the sensor should generate 38 ×1. But I always get negative values (even if the voltage at the analog port is positive) and can’t find out what I’m doing wrong or can it be that filters: calibrate_linear The ATM90E26 internally works based on pulses and this value converts a pulse into Wh, which are emitted as forward_active_energy etc. This water meter has been adapted for installation of different types of overlays, including radio overlay for Wireless M-Bus, pulse and M-Bus communication. The Esphome is connecting to HA with the native api. yaml. The schematic is using the ESP32-WROOM DevKitC board since it contains an external antenna connection. 1mm of rain. 1 # 10 pulses Mar 4, 2023 · The 2022. I’m completely lost and have no idea what I Oct 30, 2021 · Pulser counter ESP32 with YF-B10 I have assembled a YF-B10 flowmeter and doing tests to perform the calibration I have realized that it measures differently depending on the flow that I tap. 13 but you can use the template filter as is there on the first post in order to Jul 29, 2020 · Hi, read the entire thread. I followed instructions from pieterbrinkman’s blog. My Jan 15, 2024 · If you have a water meter (Sensu R-315 for my part), it may have an indicator allowing you to know the current consumption fairly accurately. Water Meter Analog water meters (Read your water meter | South East Water - Type 1) in my area contain a port that can be used to measure usage through a reed switch. Dec 5, 2023 · deep_sleep: id: deep_sleep_control sleep_duration: 120s run_duration: default: 10s gpio_wakeup_reason: 10s wakeup_pin: number: GPIO27 inverted: True mode: INPUT_PULLUP sensor: - platform: pulse_counter pin: number: GPIO27 inverted: True mode: INPUT_PULLUP unit_of_measurement: 'mm' update_interval: 2s accuracy_decimals: 3 name: 'station_meteo_compteur_pluviometre' id: rain_meter filters ESPHome Water Meter using Pulse Counter running in ULP processor Resources. I cannot find any fittings that go from the threads of the sensor to the US standard threads. 0) * 60. 1 liter! so I use this code for esphome node: sensor: - platform: pulse_meter pin: 12 name: "water flow rate" icon: "mdi:water-sync" id: water_flow_rate accuracy_decimals: 1 unit_of_measurement: "l/min" timeout: 15s filters: - multiply: 0. Jan 7, 2023 · Hi there I’m planning to build a water meter based on Peter Brinkman’s design (Build a cheap water usage sensor using ESPhome and a proximity sensor - PieterBrinkman. Now, given the sensor’s formula F = 38 x Q (where Q is the flow rate in liters per minute), when 1. 001 m^3 pointer (one complete turn are 10L or 0. It is waaay over my head but I found that some people are tinkering similar thing (not HA) in Github. Oct 7, 2023 · What pulse counter sensor do you think would be best? You should be able to use the ESPHome Pulse Counter Sensor, and there are many examples of water meters setup like this to be found. I've set up pulse counter sensors for my electricity usage. Water meter uses pulse_counter sensor to count pulses per minute and total count. 0104167 If To convert the gas meter reading in m³ to energy (kWh) and cost (€), please see packages/gas-meter. And powering D1 with usb or 5v is the other easy part :-). If anyone has had experience with Jan 25, 2023 · So I’ve just set up a proximity sensor for monitoring water consumption. The new approach works good, for 2 Dec 3, 2022 · The problem I configured the Puls Meter Sensor for a TCR5000 infrared device to count the revolutions of a water meter with a reflective area (nearly a half circle) on the 0. I’m using the sketch below: sensor: - platform: pulse_counter pin: number: D6 allow_other_uses: true name: "water pulse" id: water_pulse - platform: pulse_meter pin: number: D6 allow_other_uses: true name: "Water Pulse Apr 16, 2024 · The municipality installed today a new water meter with pulse output. This was the Cyble Sensor 2w K1. Sep 6, 2023 · I have an meter for a heat pump and would like to show the consumption in the energy dashboard the consumption. (Integrating your water usage - Home Assistant)The ESPhome configuration has been updated to support this feature. Here’s my (very basic) code: sensor: - platform: pulse_counter pin: number: 13 mode: input: true pulldown: true name: "Pulse Counter I live in Belgium and the water meter I have is a Sensus 520 which has a small spinning wheel with a metal plate. The water meter is a NMT Versamag NSF-61-G and sends 1 pulse for every 10 gallons used. I think al few others ( Dutch guys) running the same config , coud you help me sharing you’re sensor’s / config ? I would be nice to read out this : current L used , L(iters) used today, and probably L/hour (flow). The pulses are counted as pulses per minute by ESPhome. Once it arrived I went to hook that up and realized the meter is a digital encoder type unit and doesn't seem to have a spinning magnet that is typically used in this application. The below now causes the counter to go crazy and increment at a high rate endlessly. 0; unit_of_measurement: "l/h" total: unit_of_measurement: "l" id: amount name: "Amount of water" Generally it works Dec 9, 2022 · The pulse_counter and pulse_meter components seem not suited, because the multiplication must happen per water flow impulse under the temperature difference at this point. See pictures. Solution with proximity doesn’t work with grid water meter that has plastic wheels. integration. It uses two wires and the pulse output is a “dry contact reed switch” The pulse output of DAE meters is a dry contact (i. 0, the pulse_meter function seems to have broken/changed. reset: water_total Sep 24, 2022 · FWIW, I ran into a similar issue trying to use the pulse-counter. The Electricity sensor uses an S0 port, those meter values are very accurate although are very spikey -high- when pumps or other inductive loads start in the house. I connected it to the ESP between IO14 and GND. Aug 2, 2024 · I want to get a flow meter project going, live in the US, got the flow meters shown above. Before Feb 2, 2022 · I managed to get a pulse for every 0. My energy-meter is this model: ORNO OR-WE-520 with 800 imp/kWh I am using an AZDelivery D1 Mini NodeMcu ESP8266 I collected some infomation by checking some community-platforms, web-sites, youtube-videos and so on. Total Daily Energy Sensor¶. . Currently i am facing the problem that it’s counting pulses without any attached sensor. Jun 3, 2020 · Hi, I’ve got a light sensor on the flashing led of my electric meter, and using the pulse counter in ESPHome, I’ve got it working fairly well, and it gives a ballpark figure in KW every 60 seconds. I want to give it a go but need some startup push. But my problem is that the workings of \n Tips: \n. Current state : i get the pulses from the dial in pulses/min on the esp8266. Every day I check the water meter and the measured value in Home Assistant. esphome_water_meter_total; But nothing from the 3 others sensors. If I install an ESPHome update the total value will be resetted. Board is an ESP32-WROOM32 and the sensors are from DFRobot SEN0257 Analog Water Pressure Sensor. 2 watching Forks. See code examples, tips and suggestions from other users. Watermeter: 175_schedatecnica-mvm-en-v6_1622556944. I want to track my water usage on the ZENNER ETKDI-N with preinstalled reed contact which counts ≥1L/Impuls. and i really have some issues. So here is my problem: I am trying to measure water flow rate and consumption using this meter, which comes with a Reed Sensor specifically made for this purpose by the manufacturer: German Website: → Click. I've run them for a few weeks now parallel to the official counters, and I have a lot of differences I just can't get a grip on. I am quite surprised to see such big numbers (around 430 L/min). I water with Hunter Hydrawise with a schedule, yesterday morning I had to water the lawn, and I have a totally unrealistic water consumption of about 5000 L in a few minutes. 354” (9mm) high, with leading zero blanking. The code you shared just as one pulse_counter sensor. 10. 5v DC going through the actual sensor via 2 wires labeled COM and PULSE. The pulse resetting fragment example given at Pulse Counter Sensor — ESPHome is a bit unclear Sep 9, 2019 · I’ve added a water flow meter using a Wemos D1 mini and ESPhome. the pulse sensor will always give you the counts in a period of time, e. sensor: - platform: pulse_meter name: 'Water Heater - Power Consumption' id: sensor_energy_pulse_meter unit_of_measurement: 'kWh' state_class: measurement device_class: power icon: mdi:flash-outline accuracy_decimals: 3 pin: 35 internal_filter: 100ms filters: - multiply: 0. So DeeBeeKay, are you sure your calculations are now off by 60? Let me know if and what I did wrong and if you are getting good results from your setup. If I hold the sensor up to the metal (brass?) bottom section, the sensor lights up and stays lit no matter where on the Integration Sensor¶. Counting total generated energy¶ When the total sensor is configured, pulse_meter also reports the total number of pulses measured. sensor: - platform: pulse_meter pin: GPIO18 name . Reply reply Sep 6, 2024 · In this article we will focus on the integration of the Apator JS Smart C+ water meter, which is a single-jet water meter of Polish manufacture. wrong in my config? Internal filter mode i tried with “edge” and “pulse”. Mar 5, 2023 · Sharing for those searching for a similar solution, and thanks to @chris. ( GitHub - weetmuts/wmbusmeters: Read the wireless mbus protocol to acquire Use the pulse_meter instead of counter, it updates the sensor when there is a pulse, not on a timer. But the equipment does not repeat the number of pulses that it counts for every 0. 1 total: name: "Water Total" icon: "mdi:water" unit_of_measurement: "liter" accuracy_decimals: 1 filters: - multiply: 0. I’ve setup one esp8266 with his code but, connected to a 20000mAh battery, barely keeps Aug 23, 2019 · Hello, i am trying to get my water and gas meter readings in home assistant. This is an example of how I did it with my water meter (using an external proximity sensor as pulse sensor): # ESPHome Pulse counter water meter esphome: #. I’ve tried holding the sensor over all parts of the meter, with water running, without any luck. The reed contact will be attached to G and D1. I’ve added a debounce filter to avoid pulse outliers which can occur in some circumstances. The sensor is working (hardware) however i’m not able to get the pulses into Home Assistant. Stars. Dec 4, 2023 · Hello! I am new here in the community and als a newbie acc. I have a meter with 1 pulse per gal and its counts the gallons correctly, but the gallons per minute do just show 1 x 12 gal/min and then nothing again while water is running. I assume that it somehow because of the flow pulse formula. 0748 gallons calibration. Here is my config… esphome: name: wasserzaehler friendly_name: Wasserzaehler Nov 2, 2024 · I am counting pulses from two power meters and a heat meter and getting counts which I can match pretty closly to the meter screen outputs. There are other Feb 19, 2023 · Hello everyone. 254mm Anemometer: 1 pulse per second = 2. i know the “porche” sensor is working because i plug it on the connector of the “cuisine” sensor on GPIO37, it work. For it a have ordered me some ESP32_Bat_Pro devices from EzSBC. same result. 2. Common values are 1000 pulses/kWh, 1666. - hugokernel/esphome-water-meter Jan 8, 2024 · After a lot of research i bought for my old water meter a optical pulse counter. All reactions Apr 20, 2023 · My gas meter was recently upgraded by the council (more of a downgrade), I had made a custom hall effect sensor to measure the flow of gas, as my old one had ‘support’ for it (here’s what my old one looked like for reference) it has been replaced with this behemoth, it does not appear to give of any magnetic signals, nor easily support attaching one. The reed closes, when a Liter water passed the counter and opens again, when a new liter starts to pass the counter. I ordered a capacitive pulse sensor having seen that done before. Now I´m unsure if my setup is correct so far and if you have any further advices. My config for the according sensor looks like this: # Water meter # 1 pulse = 1 circle = 1 liter sensor: - platform: pulse_meter pin: GPIO33 name: "livewaterconsumption" unit_of_measurement: "L/min" accuracy_decimals: 3 filters Nov 4, 2022 · Kamstrup Multical is an extremely popular product used by millions of people in Europe. Feb 12, 2021 · Hello everyone, I intend to read my water meter as well, but the pulse generator gives me 360L / H on the nodemcu. 33 pulses. sensor: - platform: pulse_counter pin: GPIO12 update_interval : 6s name: "water pulse" id: water_pulse Nov 11, 2021 · Hi, I have installed a inductive proximity sensor on my ‘dumb’ watermeter and the sensor itself seems to be working just fine. It was reporting one pulse = 1 liter. however pulse_counter gives me a more accurate value which steadily de and increases. Mar 26, 2021 · Hi all, I am running water meter on ESP32 with ESPHome installed. Ive created a water flow meter based off the home assistant glow project and it works from the way I need it to, but for some reason I cant seem to get the total flow id: sensor_flow_meter_total_litres_3 to reset and update the value in home assistant on the button push. I used the pulse_counter. It does reset until Sep 13, 2020 · The water meter that my utility prefers here in Adelaide Australia is an Actaris TD8. 1 star Watchers. Mar 17, 2023 · # Example configuration entry sensor: - platform: pulse_counter pin: 12 control_pin: 7 name: "First Pulse Counter on Pin 12" - platform: pulse_counter pin: 12 control_pin: 8 name: "Second Pulse Counter on Pin 12" control_pin will be set to LOW to read the meters of this line (RJ45 cable). 0) * 12. using pulse_meter in the config resulted in values jumping from 0 to several MW of power draw. Sep 18, 2023 · Im new to esphome so at the moment Im cutting and pasting stuff and then just playing around with it. in days it can really work well, but then just like that it senst wrong values to my home assistant. This is how I define the sensor in esphome: sensor: platform: template id: lifetime_counter; platform: pulse_counter id: water_pulse pin: D2 name: “Pulse Counter” update_interval: 1s filters: Dec 21, 2023 · I had the same issue with my water meter: “multiple use of a pin. Upgrading from 2023. But after updating to 2022. The integration sensor is a helper sensor that can integrate values from other sensors over time. There is sample code available, but I can’t get it to work, as my GPIO Pin (13) always ends up “high” after boot, but I need it to be low, as my water sensor provides a high signal. That drop of 0. 075 - debounce: 3000ms - platform: total_daily_energy name: "Total Water Oct 26, 2023 · I’ve had some success with the glass reed switches from Jaycar. com When used on a power meter, this can be used to measure the total consumed energy in kWh. André If a technician shows up and he looks confused about what the heck you have done to your power meter, tell them about ESPHome 😉. For the Use a Utility Meter helper in Home Assistant and point it at the ESPHome entity, it'll keep tracking the increase on whatever reset period you use and the actual pulse counter value doesn't matter. Using this action, you are able to reset/set the total pulse count. - lambda: return x * (6 * x - 8); I found another function based on the manufacturer characteristics ( F = (6 x Q - 8)) but same here, the reading is not accurate. Thanks a lot for this - I am currently trying to advance past 'this is my sensor and that is how I want to name it' on esphome, and this is a very valuable hands on example. Probably needs a specific data format / unit to be added. Battery: Non-replaceable Lithium battery, expected life of 10 years at 20°C Display: 8 digit black LCD, Digit size 0. 0 (coming from 2022. ijha oqq rgk mcbs ipoyqa ksh tjeqt mvhr gukgbz aknf