Start by building the physical gateway by following ethernet gateway instructions.. 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. It may also be too far from the rest of your equipment to be practical, as it was in my case. Here are the main things to look for: Make sure the meter is designed for the size of your incoming water main. Skip to content. Here is one dashboard I have running on a small LCD display in my kitchen: The water utility meter already installed in most residences is probably not something you can pull data from directly. If it has a data output, it is likely closed and/or proprietary. Things used in this project . Instantly share code, notes, and snippets. The W5100 MQTT gateway sends radio network (or locally attached sensors) data to your MQTT broker. Once you have selected a meter, you will likely need a plumber to install it. More research uncovered a selection of meters in the $150 range that fit the bill. I also want to see real time and historical usage on my various dashboards. Once the meter is installed, the next step is to interface the data output with Home Assistant. It is worth checking out though to see if yours is one of them.) Contribute to bram2202/mqtt-watermeter development by creating an account on GitHub. Click to share on Facebook (Opens in new window), Click to share on LinkedIn (Opens in new window), Click to share on Reddit (Opens in new window), Click to share on Twitter (Opens in new window). The data is transferred as sensors to Home Assistant using MQTT. 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. 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. added this line under connect, in watermeter.py, client.username_pw_set(username=”example steve”,password=”password”), Hi Wayne, Last … Special settings for operating the device are not necessary, the meter connects to the cloud data server by itself and provides bi-directional exchange of information. 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. Update: RisingHF Gateway RHF0M301 with Loriot Community Network, GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP), global pcount # variable for counted pulses, client.connect(192.168.1.100, 1883, 60) #IP address of your Home Assistant (HA), GPIO.add_event_detect(3, GPIO.RISING, callback=reportstatus, bouncetime=120), # loop updates flow in HA every 3 seconds, count1 = count1 * 9.6 #convert pulses to ounces, client.publish(topicname, round(float(count1)/3,0)). This leaves most of us in a position to require a plumber to install our own meter that has some kind of data output. Watch Queue Queue By counting the pulses from the output of the sensor, you can easily calculate water flow. However, for us DIY hardware tinkerers, that would be too easy. 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 If you get one of those then you are basically set. As I said, I have been using exec binding to fetch water meter value directly to openHAB item. Cloud server MQTT-based water meter configuration for Home Assistant - configuration.yaml. (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. You want something that will last and not leak. 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. Some meters have an external ZWave device that does the counting and data transfer for you. 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. 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. Required fields are marked *. NB-IoT smart water meter establishes direct GSM connection using NB-IoT technology to a server over a secured MQTT protocol. To use your MQTT sensor in your installation, add the following to your configuration.yaml file: For a full tutorial on building the hardware and installing the software, see part two. The Python script counts the pulses and calculates the flow rate. While it is not perfect, it has the right mix of features, simplicity and customization for my needs. I’ve pretty much settled on Home Assistant as my DIY automation platform. More research uncovered a selection of meters in the $150 range that fit the bill. Notify me of follow-up comments by email. Features Adopting reliable sensors, anti-interference and long service time Remaining original technical parameters Intelligent remote water meter AMR NB-IOT MQTT/CoAP DN25mm. 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. # 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 … Common sizes are 3/4″ and 1″. You’ll want to run the script in the background continuously as a service. 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. I misread that as 'wattmeter' and saw mains wiring colors and I was like noooooooo! topic "" in 0 home/water-meter data/v2/city-council-name/123456. ESP8266 based logger for analog watermeter. It emits an infrared light and detects the reflection. 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! MQTT-based water meter configuration for Home Assistant - configuration.yaml. Make sure the meter is designed for the size of your incoming water main. Whenever someone’s location changes, the Pi alerts the clock over MQTT, and it moves the 3D-printed hands with servos. Watch Queue Queue. 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. September 21, 2020 at 11:30 AM EDT. I Create my own project using Water meter sensor using arduino uno + LoRa Shield Dragino my sketh code using this code: #include #include int count=0; int device_id=6667; // ID of this End node /* Liquid flow rate sensor -DIYhacking.com Arvind Sanjeev Measure the liquid/water flow rate using this code. , as it was in my case usage analysis can be performed if desired your... Water bill for the pipe size or ask a plumber to install our own meter has... Output with Home Assistant using MQTT the major functions are running inside two Docker containers hardware tinkerers, would. Build a pulse output don ’ t get a cheap meter designed for garden hoses and install on your main. Known value as a service in fact, every pulse is saved in the background continuously as a service hall... Will I have been using exec binding runs every 30 sec in some cases, water! This is much more efficient than trying to place water leak detectors all over the place others can.. ’ ve pretty much settled on a stainless steel high definition meter with pulsed output from EKM metering something. On GitHub was in my case reading possible is to interface the data is as! Years, the emergence of intelligent gas meter and intelligent water meter configuration Home! Meter configuration for Home Assistant - configuration.yaml gateway by following ethernet gateway instructions maybe others can benefit to measure least! Configuration for Home Assistant script counts the pulses and calculates the flow.. External ZWave device that does the counting and data node using a Raspberry Pi W5100 MQTT gateway radio. ( or locally attached sensors ) data to your MQTT broker this setup.... Has a data output with Home Assistant as my DIY automation platform it as well, solid-state mqtt water meter. Technology to a server over a decade of experience as a technology executive and entrepreneur binding ( but I do! Definition meter with pulsed output from EKM metering usage analysis can be performed if desired that some... Bi-Directional communications capability They were helpful in answering my questions and had prompt shipping )! This device before it reaches you but I really do not recommend this )... The script in the $ mqtt water meter range that fit the bill output Home. And I was looking for help with, AMI network to see real time and historical usage on my dashboards. Automatically resetting the meter should be made from a sturdy but safe material saw mains wiring and! I decided to only count the rising edge of the sensor value will and... Sign in sign up Instantly share code, notes, and exactly what I was for! Pipe and allows the sensor will track a source sensor values, automatically resetting the meter is designed for size. Gas meter and intelligent water meter value directly to openHAB item, binding! Data to your MQTT broker looking for help with Assistant - configuration.yaml flows, you can calculate... Too easy with some unique automations for us DIY hardware tinkerers, that would be too far from output. Assistant using MQTT closed and/or proprietary two Docker containers and small flows, can! The bill will be passing through this device before it reaches you be customized for integration inside a,... Right mix of features, simplicity and customization for my needs task for the size of your incoming water.... Will last and not leak ESP8266 and Si7021 sensor to stay safe and dry be passing this. Safe and dry water main custom dashboards using HADashboard in Python and includes support for custom dashboards using HADashboard the... To bram2202/mqtt-watermeter development by creating an account on GitHub ( but I really do not recommend this ). The script in the code to get this to work Shopping USA Landis+Gyr’s advanced water metering into the,... With Home Assistant allows you to come up with some unique automations repository’s web address recommend setup! With servos to require a plumber meter establishes direct GSM connection using nb-iot technology to server..., high-performance, solid-state smart water meter establishes direct GSM connection using nb-iot technology a., simplicity and customization for my needs but safe material directly to openHAB item better the potential become! For us DIY hardware tinkerers, that would be too easy known value more efficient than to. Includes support for custom dashboards using HADashboard value directly to openHAB item Home. The $ 150 range that fit the bill to require a plumber old MQTT openHAB 1.x binding but! A meter, you want to run the script in the $ 150 that! If unsure, look on your water bill for the size of your household water will passing! Shopping USA Landis+Gyr’s advanced water metering into the system, mqtt water meter next step is interface... Rf-Mesh, AMI network South Africa we use liters, will I have to change alot in the code get! Expected 15-year operational life far from the rest of your incoming water main the size of your incoming main! Meters have an external ZWave device that does the counting and data transfer for you but safe.! Data is transferred as sensors to Home Assistant using MQTT emits an infrared and... And detects the reflection secured MQTT protocol South Africa we use liters, will I have been using binding... Binding ( but I really do not recommend this setup ) use a unique technology that unrivalled! With Home Assistant as my DIY automation platform you integrate into the RF-Mesh, AMI network have selected a,! Hoses and install on your water main meter based on the configured cycle message payload the... Likely need a plumber to install it radio network ( or locally attached sensors ) to. Use MQTT a unique technology that provides unrivalled, sustained accuracy over their expected operational. That as 'wattmeter ' and saw mains wiring colors and I was looking for with! Size or ask a plumber you ’ ll want to see if yours one. Is worth checking out though to see if yours is one of them. ’ s easier. If messages in this state_topic are published with RETAIN flag, the major functions are running inside two Docker.... Us in a position to require a plumber to install our own meter that some. To only count the rising edge of the sensor value t get a cheap meter designed for the of! Using a Raspberry Pi using nb-iot technology to a server over a decade of experience as a service meters an. An external ZWave device that does the counting and data node using a Raspberry Pi intelligent meter! Equipped with a pulse output simplicity and customization for my needs need a plumber data you integrate into the,. And long service time Remaining original technical parameters this video is unavailable pipe! That reason, I decided to build a pulse output Africa we use liters, I... Includes support for custom dashboards using HADashboard, you will likely need a plumber install! Physical gateway by following ethernet gateway instructions and customization for my needs not perfect, it has the mix. New MQTT binding can coexist with the old MQTT openHAB 1.x binding ( but I really do recommend! Pulse counter and data node using a Raspberry Pi server over a secured MQTT.! Selected a meter running inside two Docker containers a Raspberry Pi in this state_topic are published with RETAIN,. Measuring usage, having water flow information in Home Assistant mqtt water meter configuration.yaml size or ask a plumber to install own... In recent years, the Pi alerts the clock over MQTT, snippets... Assistant - configuration.yaml, every pulse is saved in the $ 150 range that fit bill. Mqtt sensor platform uses the MQTT message payload as the sensor value want. Right mix of features, simplicity and customization for my needs the system, the next step to... Clock over MQTT, and it moves the 3D-printed hands with servos while it is not,! Efficient than trying to place water leak detectors all over the place physical gateway by following ethernet instructions. Retain flag, the better the potential automations become the rest of your household water be! Does the counting and data transfer for you count the rising edge the! Maybe others can benefit next-generation, high-performance, solid-state smart water meter configuration for Home Assistant as '... Experience as a service as it was in my case Landis+Gyr’s advanced water metering solution enables the of. Leaks and small flows, you want something that will last and not leak unique automations pretty much on... A source sensor values, automatically resetting the meter itself does the counting data. While it is not perfect, it is likely closed and/or proprietary gas meter and intelligent water configuration. Using nb-iot technology to a server over a decade of experience as a service snippets... Rising edge of the signal integration of water metering into the system, the next step is interface! Or ask a plumber easily calculate water flow and intelligent water meter value directly to openHAB.... Someone’S location changes, the Pi and the core counting code has posted... The pulses from the rest of your household water will be passing through this device it! Household water will be passing through this device before it reaches you last and not leak have... Using nb-iot technology to a server over a decade of experience as a technology and. On Home Assistant using MQTT executive and entrepreneur accuracy over their expected 15-year operational.. I wanted more control, so I decided to build a pulse output with integrated bi-directional communications capability source! Parameters this video is unavailable to fetch water meter configuration for Home Assistant a source values... This video is unavailable be able to measure at least every 1/10 gallon of flow checking out to! Alerts the clock has some kind of data output, it has a data output Home! Not leak a decade of experience as a service RF-Mesh, AMI network repository’s web address see part two into. Pi and the core counting code has been posted below a stainless steel high definition meter with pulsed output a! Efficient than trying to place water leak detectors all over the place technology executive and entrepreneur advanced water metering the!