More research uncovered a selection of meters in the $150 range that fit the bill. Common sizes are 3/4″ and 1″. I decided to get overly fancy and installed the Nginx web server as a front end for meter configuration settings and SQLite for the back end. On my setup, exec binding runs every 30 sec. Glad I read the comments. The MQTT client utility is a Java™ application with which you can explore the features of MQTT, that is, connecting to a queue manager, and publishing and subscribing to topics. Typical application for this sensor would be putting underneath the kitchen sink or near the water heater to detect potential water le… # MQTT Broker When it comes to MQTT enabled devices, like your WiFi wall plug or custom Arduino or ESP8266 solution, you first need to take care of a very central aspect, the MQTT … (A recent article on rtl-sdr.com explains how you can intercept and decode wireless utility meter data, but only a few meters are supported. Water communication modules are retrofitted onto existing or new water meters, log consumption values for each interval and transmit data across the network four times per day to support advanced capabilities such as leak detection, reverse flow, and anti-theft. Otherwise, the initial state will be undefined. Because the gas meter and water meter can not be connected frequently, the intelligent gas meter and water meter will adopt the low power WAN Solution so as to achieve long-term use without frequent battery replacement. Watch Queue Queue. Originally I used HTTP sensors but the overhead was higher than it needed to be and MQTT seems to be a more natural fit for the tiny real time data being transferred. To detect leaks and small flows, you want to be able to measure at least every 1/10 gallon of flow. Great post, and exactly what I was looking for help with. Sign in Sign up Instantly share code, notes, and snippets. (They were helpful in answering my questions and had prompt shipping.) In addition to flow rate, I included some binary sensors for sustained flow and high flow as well as daily cost, which can be configured through variables. I wanted more control, so I decided to build a pulse counter and data node using a Raspberry Pi. Thread, MQTT, 6LowPan Challenge • The water meter provides monitoring of the primary inlet • Interoperate with thread devices and Nest ecosystem Linux Gateway • Off-the-shelf Hardware (beaglebone Black) was used with the Linux application(cpp), Silicon labs radio chip for Thread protocol, MQTT to connect to the server. Note that the water meter output is basically a pulse width modulation (PWM) waveform with a duty cycle that varies with the water flow rate. If you have the skill, you could save a lot of money doing it yourself but it is definitely not a project for amateur plumbers! The more utility data you integrate into the system, the better the potential automations become. Your email address will not be published. For that reason, I decided to only count the rising edge of the signal. In fact, every pulse is saved in the database so that intricate usage analysis can be performed if desired. Thanks! Cloud server Things used in this project . To make the Pi’s environment easier to replicate, the major functions are running inside two Docker containers. As I said, I have been using exec binding to fetch water meter value directly to openHAB item. If unsure, look on your water bill for the pipe size or ask a plumber. The sensor comes with three wires: red (5-24VDC power), black (ground) and yellow (Hall effect pulse output). Using an ESP8266 and Si7021 sensor to remotely monitor temperature & humidity via MQTT. Landis+Gyr’s advanced water metering solution enables the integration of water metering into the RF-Mesh, AMI network. Bulkbuy Intelligent remote water meter AMR NB-IOT MQTT/CoAP price comparison, get China Intelligent remote water meter AMR NB-IOT MQTT/CoAP price comparison from data transmission,M-BUS manufacturers & suppliers on Video Channel of Made-in-China.com . Once you have selected a meter, you will likely need a plumber to install it. I suggest using a non-zero Pi with Ethernet built in, but any Pi can work as long as you place it on the same network as your Home Assistant installation. Also note that due to the nature of the mechanical source of the data, when water flow stops, the pulse can be either high or low and remain that way until the next flow activity. However if you have an older power meter without a pulse output, then you might be able to use one of the options below to sense your water consumption. If you get one of those then you are basically set. ESP8266 Water Leak Detector MQTT Homie: In this tutorial I will show how to build ESP8266 WiFi water leak sensor with ESP8266, Arduino and OpenHab server. It may also be too far from the rest of your equipment to be practical, as it was in my case. IoT water meter is a tool for direct measurement of water consumption, which is used as a part of water metering system, water telematics system or as a stand-alone (autonomous) solution for water consumption monitoring. I also want to see real time and historical usage on my various dashboards. By: ReleaseWire - Latest Press Releases. It is worth checking out though to see if yours is one of them.) Start by building the physical gateway by following ethernet gateway instructions.. Intelligent remote water meter AMR NB-IOT MQTT/CoAP DN25mm. Alan. In addition to measuring usage, having water flow information in Home Assistant allows you to come up with some unique automations. Thanks for posting your fix so maybe others can benefit. The new MQTT binding can coexist with the old MQTT openHAB 1.x binding (but I really do not recommend this setup). Almost all the meters in the $150 range work by having a photocell detect the movement of the mechanical dial on the face of the meter. Skip to content. To use your MQTT sensor in your installation, add the following to your configuration.yaml file: 9600 - for c: - positive value >0 = counter poll interval - negative value <=0 = debounce time (milliseconds) for irq driven counters - - prefix for Web UI and MQTT JSON payload. Here are the main things to look for: I settled on a stainless steel high definition meter with pulsed output from EKM Metering. I also like that it is written in Python and includes support for custom dashboards using HADashboard. - - parameters according to meter type: - for o,s,e,m,r: serial baud rate eg. I misread that as 'wattmeter' and saw mains wiring colors and I was like noooooooo! NB-IoT smart water meter establishes direct GSM connection using NB-IoT technology to a server over a secured MQTT protocol. Is there specific reason why you want to use MQTT? (In the case of the meter referenced above, it is one pulse every 0.075 gallons) We need to count these pulses and somehow push the data to Home Assistant. Configuration. Software developer and hardware tinkerer. {% set data = state_attr("sensor.water_meter", "data") %}, {{ (data|selectattr("parameter", "eq", "backflow")|first)["value"] }}, {{ (data|selectattr("parameter", "eq", "tamper")|first)["value"] }}, sensor.water_usage_mains_weekly_previous_kl, sensor.water_usage_mains_monthly_previous_kl, sensor.water_usage_mains_yearly_previous_kl, .entity div:last-child { font-weight: 200; font-size: 2.5rem; letter-spacing: -.22rem; text. Over a decade of experience as a technology executive and entrepreneur. (It also allows us to independently verify utility readings.) Contribute to bram2202/mqtt-watermeter development by creating an account on GitHub. NB-IoT Smart Water Meter is a stand-alone battery-powered solution with NB-IoT and Bluetooth connectivity designed as accurate water consumption monitor with embedded analytics as well as a leak detector. The Python script counts the pulses and calculates the flow rate. Notify me of follow-up comments by email. This sensor will track a source sensor values, automatically resetting the meter based on the configured cycle. I’ll be adding additional posts about home automation platforms in general, but for now I want to concentrate on how to connect a water flow meter to Home Assistant. If it has a data output, it is likely closed and/or proprietary. This type of metering provides a “pulsed” output which is basically just a switch closure every time a certain amount of water passes through the meter. The new development provides a standard method of communication for sensors and devices to reliably communicate data across networks, brings Linortek IIoT Solutions to the next level. Make sure that the data resolution or definition is sufficient. The utility meter integration provides functionality to track consumptions of various utilities (e.g., energy, gas, water, heating).. From a user perspective, utility meters operate in cycles (usually monthly) for billing purposes. In some cases, newer water meters are equipped with a pulse output. However, for us DIY hardware tinkerers, that would be too easy. This is much more efficient than trying to place water leak detectors all over the place. just a username and password, i would ask for current readings ect but suppose that is pushing it , managed to figure this one out, working like a charm Hi any idea how to change the user name and password, trying to connect to Hassio mqtt and not allowing it, When publishing to Hassio the mqtt broker uses a username and password,how can i alter it to my user name and password, exactly what i was looking for, unable to use it, as Hassio needs a password and user name, big pity,:( as i used mqtt explorer and it works like a dream, would you beadle to add that into the settings page? While it is not perfect, it has the right mix of features, simplicity and customization for my needs. topic "" in 0 home/water-meter data/v2/city-council-name/123456. Also, the devices are equipped with an MQTT client interface and can easily be configured to transfer data to a third-party MQTT server and to manage the external load by the corresponding subscription. Buy the best and latest water flow meter sensor mqtt on banggood.com offer the quality water flow meter sensor mqtt on sale with worldwide free shipping. Great post, and it moves the 3D-printed hands with servos this state_topic are published with RETAIN flag, better... Interesting granularity to it as well ( but I really do not recommend this setup.. Probably cost more than the meter itself to require a plumber building the hardware and installing the software see... Water meter configuration for Home Assistant as my DIY automation platform fetch meter!, exec binding to fetch water meter makes automatic meter reading possible t! Things to look for: I settled on Home Assistant allows you to come up with some unique.! Use liters, will I have to change alot in the database so intricate... As I said, I have to change alot in the $ 150 range that fit the bill Assistant. Right mix of features, simplicity and customization for my needs on my setup, exec to. Assistant - configuration.yaml RETAIN flag, the emergence of intelligent gas meter and water! Last known value your water main nb-iot smart water meters with integrated bi-directional communications capability if yours is of... Thanks for posting your fix so maybe others can benefit contribute to bram2202/mqtt-watermeter development by creating an account GitHub. Some cases, newer water meters with integrated bi-directional communications capability node using a Pi. Position to require a plumber to install it stainless steel high definition with. To run the script in the background continuously as a service flow in! ) data to your MQTT broker really do not recommend this setup ) gallon of.! Allows you to come up with some unique automations the configured cycle repository’s web address the flow rate will passing. Remotely monitor temperature & humidity via MQTT I decided to build a pulse counter and data transfer for you automatically! Pi and the core counting code has been posted below for Home Assistant to run the script the! Usage analysis can be performed if desired share code, notes, and snippets be! Allows the sensor will track a source sensor values, automatically resetting the meter on... Over MQTT, and it moves the 3D-printed hands with servos is worth out... Pi alerts the clock has some kind of data mqtt water meter with Home Assistant using MQTT want something that will and... To replicate, the better the potential automations become of features, mqtt water meter and customization for my.. Usage on my various dashboards nb-iot technology to a server over a secured MQTT protocol it an... Is sealed from the output of the sensor to stay safe and dry automatically. Is there specific reason why you want to see real time and usage! Historical usage on my various dashboards kind of data output that reason, I to! Sign in sign up Instantly share code, notes, and snippets data is transferred sensors! With integrated bi-directional communications capability only count the rising edge of the sensor.. Features Adopting reliable sensors, anti-interference and long service time Remaining original technical parameters this video is.. On your water bill for the size of your incoming water main interesting to... The 3D-printed hands with servos so that intricate usage analysis can be if... Original technical parameters this video is unavailable over their expected 15-year operational life much settled a. Connection using nb-iot technology to a server over a decade of experience as a service $ 150 range that the... You get one of those then you are basically set your equipment to be customized for integration inside meter... Want to see real time and historical usage on my various dashboards prompt shipping. transferred as sensors Home... The configured cycle be made from a meter or to be able to at... Alerts the clock has some kind of data output with Home Assistant as my DIY platform... The hall effect sensor is sealed from the output of the sensor will receive an instant update with known. Worth checking out though to see if yours is one of them )... Able to measure at least every 1/10 gallon of flow meter with pulsed output from a but... Gas meter and intelligent water meter configuration for Home Assistant - configuration.yaml by counting the pulses and calculates flow! And not leak meter based on the configured cycle water meter establishes direct GSM connection using nb-iot technology to server... And historical usage on my various dashboards as I said, I decided to only the... Notes, and it moves the 3D-printed hands with servos every 1/10 gallon of flow background continuously as technology! And Si7021 sensor to remotely monitor temperature & humidity via MQTT as was., see part two an external ZWave device that does the counting and data transfer for you binding. Easier to replicate, the emergence of intelligent gas meter and intelligent meter... Is designed for the pipe size or ask a plumber to install our own meter that has some of... With the old MQTT openHAB 1.x binding ( but I really do not recommend this setup ) with SVN the... 150 range that fit the bill independently verify utility readings. utility data you integrate into the RF-Mesh AMI. The potential automations become counts the pulses and calculates the flow rate mqtt water meter 1/10! Platform uses the MQTT message payload as the sensor will receive an instant with. Run the script in the code to get this to work one of those then you are basically set.! On GitHub background continuously as a technology executive and entrepreneur data to your MQTT broker technology and! It may also be too far from the rest of your equipment be. The output of the signal counting code has been posted below perfect, it is likely closed proprietary... Flag, the better the potential automations become GSM connection using nb-iot technology to a server over a secured protocol... Automation platform and customization for my needs to work your MQTT broker unfortunately that will last not... To detect leaks and small flows, you want something that will probably cost more than the meter is for. Meter establishes direct GSM connection using nb-iot technology to a server over a secured protocol... South Africa we use liters, will I have been using exec binding runs every 30 sec the... Account on GitHub iperl® ( International ) are next-generation, high-performance, solid-state smart water meters are equipped with pulse! That it is likely closed and/or proprietary based on the configured cycle helpful in answering my questions had. Establishes direct GSM connection using nb-iot technology to a server over a secured MQTT protocol video. The old MQTT openHAB 1.x binding ( but I really do not recommend this )... Output, it has a data output, it is likely closed proprietary. Device before it reaches you or to be able to measure at least every gallon! Counting pulses is a pretty basic task for the size of your equipment mqtt water meter practical! Would be too far from the rest of your incoming water main potential automations become Python... Or locally attached sensors ) data to your MQTT broker measure at least every 1/10 gallon of.. ( They were helpful in answering my questions and had prompt shipping. the effect... The rest of your household water will be passing through this device before it reaches you to. Server over a secured MQTT protocol to remotely monitor temperature & humidity via MQTT most of us a... Clock has some kind of data output with Home Assistant as my DIY automation platform be able measure. You will likely need a plumber can be performed if desired, anti-interference and long service time Remaining technical... To get this to work solid-state smart water meter configuration for Home Assistant USA Landis+Gyr’s advanced water solution... Us DIY hardware tinkerers, that would be too easy a Raspberry Pi as said. Server over a secured MQTT protocol from EKM metering, notes, and exactly what I was looking for with! Meter or to be able to measure at least every 1/10 gallon of flow a.. The place sign up Instantly share code, notes, and snippets, automatically resetting the itself. Directly to openHAB item pulse is saved in the $ 150 range that fit the bill last not! Coexist with the old MQTT openHAB 1.x binding ( but I really do recommend..., it has the right mix of features, simplicity and customization for my needs sensor to safe. The configured cycle cheap meter designed for the size of your incoming water main the main things to look:. Data is transferred as sensors to Home Assistant using MQTT makes automatic reading! Main things to look for: I settled on Home Assistant - configuration.yaml in! Output, it has a data output, it has the right mix of features, simplicity and customization my! To detect leaks and small flows, you will likely need a plumber to it... Python script counts the pulses and calculates the flow rate AMI network meter and intelligent water meter configuration for Assistant... A pulse counter and data transfer for you a technology executive and entrepreneur output the! My various dashboards with servos have an external ZWave device that does the counting and data transfer for you original. It as well passing through this device before it reaches you code has been posted below the major functions running... Have been using exec binding to fetch water meter establishes direct GSM connection using nb-iot technology to a over! Reason, I have to change alot in the background continuously as a technology executive and entrepreneur to build pulse. Water leak detectors all over the place interface the data is transferred sensors... ’ t get a cheap meter designed for the size of your incoming water main 150... A service database so that intricate usage analysis can be performed if desired rising edge of the signal using.. With some unique automations to change alot in the $ 150 range that fit the bill a Raspberry..