Introduction:
In this post I am going to guide you through the process of integrating your analogue water meter into Home Assistant. After going through this guide you are able to track water consumption with the Home Assistant Energy Dashboard. Also, you have the most complete Watermeter Dashboard for Home Assistant you can dream of.
You can use the default Home Assistant Energy Dashboard and you can use the Advanced Water Meter dashboard from Smart Gateways shown below:
Click here for a LIVE DEMO. Username: demo – password: smartgateways
Making your old water meter smart
You can wirelessly read your analog water meter using WiFi, making it a smart device. Transforming your analogue water meter into a smart water meter allows you to remotely access and track your water consumption through a user-friendly watter consumption overview. By doing so, you can conserve water, which contributes to environmental sustainability. The recommended solution for achieving this is the Smart Gateways Water Meter Gateway. By attaching a sensor to the water meter, it records water usage and transmits the data to Home Assistant.
The Smart Gateways Water Meter Gateway comes in two versions:
- Version A: For water meters with a metal plate or nfc chip on a rotating wheel
- VERSION B: For water meters with a slot for a magnetic reed-sensor (mostly used in Belgium, Great Britain and Australia)

In this post, I will guide you on creating a comprehensive dashboard that displays all the values from the Smart Gateways Water Meter Gateway. The dashboard not only presents consumption and costs per day, week, month, and year but also empowers you to make your water meter intelligent by utilizing the Smart Gateways Water Meter Dashboard for Home Assistant. Actually Smart Gateways was the first company providing an off the shelf solution that could make your analogue water meter smart. A few years later the Smart Watermeter Gateway is used all over the world to get insights into water consumption.
The Smart Gateways Watermeter Dashboard for Home Assistant is the perfect complement to Home Assistant’s existing energy dashboard. Of course you can use both dashboards next to each other. Just pick the dashboard you like the most.
Home Assistant Energy Dashboard with Water usage shown below:

Pre-requirements to setup the dashboard
Setting up the dashboard can be done in a few easy steps. Complete each step one by one and verify if the step is completed before proceeding with the next step.
- First install Mosquitto MQTT Broker on Home Assistant using this manual
- Connect the Water Meter Gateway using the Installation Manual found on the Smart Gateways Support page
- Enter the MQTT settings on the internal webpage of the Water Meter Gateway
- Install HACS (Home Assistant Community Store) using this manual
Install the Apexcharts-card plugin into Home Assistant
When you completed all the above steps it’s time to add the apexcharts-card repository to Home Assistant. You have to do this using HACS.
- Click HACS on the sidebar of Home Assistant
- Click Frontend
- Click EXPLORE & DOWNLOAD REPOSITORIES in the lower right corner
- Type apexcharts-card in the Search for repository box
- Click DOWNLOAD in the lower right corner
- Select the latest version and Click DOWNLOAD
- RELOAD the browser to activate the apexcharts-card plugin
Add additional MQTT Configuration for diagnostical data
The Advanced Water Meter Dashboard for Home Assistant will show some diagnostical data from the Smart Water Meter Gateway. This data is sent by the gateway through MQTT. You can add this to Home Assistant by adding a mqtt file. You first have to install the File editor Add-on.
- Within your Home Assistant frontend/home navigate to the Settings menu
- Click Add-ons
- Click ADD-ON STORE in the lower right corner
- Go to the Search add-ons box
- Type File editor
- Click on File editor from the list
- Click INSTALL and wait for the File editor to be installed
- Enable Start on boot, Show in sidebar and Watchdog
- Click START to start the broker
Add the Packages directory to Home Assistant and place some configuration files
When using the packages directory for all your .yaml configuration files, you are able to sort all configuration in specific files for each integration. You have to edit the configuration.yaml file first for Home Assistant to use the packages directory.
- The file editor is shown in the sidebar. Click on the File editor icon
- Click on the configuration.yaml file
- The contents of the configuration.yaml file are shown
- Insert the following configuration into the file:
homeassistant: packages: !include_dir_named packages
- Click the save button (Floppy Disk Icon) on the upper right corner to save the configuration.yaml
- Click on the Browse File System Icon on the upper bar
- Click on the New Folder icon (second icon)
- name the new folder packages
- Click OK
- Download the following file (disable pop-up blockers)
- Click here to download file
- Unpack the zip file
- Place the file smartgateways_watermeter.yaml in the packages folder by using the Upload File button within the File editor Add-on
- Save the file
- Restart Home Assistant
Add the Advanced Energy Dashboard to Home Assistant
When you completed all the above steps it’s time to add the Advanced Energy Dashboard to Home Assistant.
- Enable Advanced Mode for your user account
- Within your Home Assistant frontend/home navigate your user profile (in the lower left corner)
- Enable Advanced Mode to unlock advanced features
- Open the file watermeter_dashboard.txt from the downloaded zip file and copy the contents of this file to the clipboard
- Click the three dots in the upper right corner of the dashboard in Home Assistant
Click on the 3 dots again
- Click Raw configuration editor
- Scroll till the end and start a new line
- Paste the contents of the Dashboard panels file into the editor
- Click SAVE in the upper right corner
- Close the editor by clicking the cross on the upper left corner
- Restart Home Assistant
- Notice the new Advanced Smart Meter Dashboard.

Water Costs
It is possible to enter the costs for water consumption into the dashboard. There are 3 values to be filled in. You can find those values in the lower right corner. Please note that these costs are based on water consumption in the Netherlands. You can ask your water company for the prices.
- Water – Belasting: Tax on water (per liter)
- Water – Prijs per kuub: Price per liter
- Water – Vastrecht: Fixed price you have to pay per year to the water company
Prices have to be filled in in Liters. Home Assistant works with cubic meters so you have to divide the values by 1000. Amounts are very small because water prices are low in the Netherlands. You can remove the prices from the dashboard if you don’t use them.
Adding the Water Meter Gateway to the Home Assistant Energy Dashboard
- Within your Home Assistant frontend/home navigate to the Settings menu
- Click Dashboards
- Click Energy in the lower right corner
- Go to Water Consumption
- Click ADD WATER SOURCE
- Add connectix_watermeter_totaal
- Click SAVE

If everything went right you will see your water consumtion on the Energy Dashboard:



Click on the 3 dots again
Hello Roel,
Sorry for my english, it’s not my native language.
I’m working with an Smartgateway for my Siconia meter since two years and it’s work perfectly !
I’have now a new Smartgateway for my water and i have made the full config and nothing, I cannot see the different sensors of my water Smartgateway. I have the impression that the smartgateways_watermeter.yaml is not take in consideration. I have an MQTT Explorer on my Home Assistant and I see the message from the SmartGateway.
(I have smartgateways_watermeter.yaml & smartgateways_smartmeter.yaml in my folder \homeassistant\packages.
Any idee ?
Thanks a lot, Nicolas
Hi Nicolas,
Good you are asking. If everything is done as the instructions are telling, a restart is required to read the new configuration. Also some users are using extra spaces / upper chart characters, like Packages instead of packages. These are common mistakes. By checking this it will probably be solved.
Hi Roal,
Is there a gateway that I can measure my water wel (regen water put) level? I see the distance gateway but I am not sure if it is the right tool?
Thanks for your clarification.
Ho Ahmad,
Yes that’s the right tool to measure the level of water. https://haprofs.com/water-level-sensor-for-home-assistant/
OK thank you, will place an order then. :)
Hi Roel,
Switching over from Domoticz to HomeAssitent gives me some problems with integration of the Smartgateway water meter, although your instructions are very clear.
The last step adding the new dashboard gives me problems.
Copy/paste contents of watermeter_dashboard.txt leads an error.
****
Fout bij het parsen van YAML: bad indentation of a mapping entry (regel: 3, kolom: 10)
****
below the first lines:
type: original-states
hide_entities_without_area: false
– theme: Backend-selected
title: Watermeter
path: watermeter
icon: mdi:water
badges: []
cards:
– type: gauge
entity: s
Removing leading spaces in the lines between -themes and Cards resolves the error, but I do not get a dashboard.
btw Homeassistent is probally a more recent version: the three dots in the upper right corner are now a pencil and “raw configuration editor” is called “bewerken in YAML”
I hope you can me a correct hint.
Best regards Rens de Jongh
Hi problem solved by creating a new dashboard and take ownership.
Rens de Jongh
It works quite nice and easy when you creat a new dashboard what you can add on the left side in the column of Homeassistant and put the code according the tutorial in the new dahsboard. I like it :)