Introduction:
In this post I am going to guide you through the process of integrating your analogue gas meter into Home Assistant. After going through this guide you are able to track gas consumption with the Home Assistant Energy Dashboard. Also, you have the most complete GasmeterDashboard for Home Assistant you can dream of.
You can use the default Home Assistant Energy Dashboard and you can use the Advanced Gas Meter dashboard from Smart Gateways shown below:
Click here for a LIVE DEMO. Username: demo – password: smartgateways
Making your old gas meter smart
You can wirelessly read your analog gas meter using WiFi, making it a smart device. Transforming your analogue gas meter into a smart gas meter allows you to remotely access and track your gas consumption through a user-friendly gas consumption overview. By doing so, you can conserve gas, which contributes to environmental sustainability. The recommended solution for achieving this is the Smart Gateways Gas Meter Gateway. By attaching a sensor to the gas meter, it records gas usage and transmits the data to Home Assistant.
If you are not sure if your gas meter is compatible with the gateway, just send a message to Smart Gateways and they will check if your meter works with the Gas Meter Gateway. You can use the contact form on their website for this.
Connecting your Gas Meter to Home Assistant
In this post, I will guide you on creating a comprehensive dashboard that displays all the values from the Smart Gateways Gas Meter Gateway. The dashboard not only presents consumption and costs per day, week, month, and year but also empowers you to make your gas meter intelligent by utilizing the Smart Gateways Gas Meter Dashboard for Home Assistant. Actually Smart Gateways was the first company providing an off the shelf solution that could make your analogue gas meter smart.
The Smart Gateways Gasmeter 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 Gas 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 Gas Meter Gateway using the Installation Manual found on the Smart Gateways Support page
- Enter the MQTT settings on the internal webpage of the Gas 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 Gasmeter Dashboard for Home Assistant will show some diagnostical data from the Gasmeter 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_gasmeter.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 gasmeter_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 Gas Meter Dashboard.
Gas Costs
It is possible to enter the costs for gas 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 gas consumption in the Netherlands. You can ask your energy company for the prices.
- Gas – Belasting: Tax on gas (per m3)
- Gas – Prijs per liter: Price per m3
- Gas – Vastrecht: Fixed price you have to pay per year to the energy company
Prices have to be filled in in m3.
Adding the Gas 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 Gas Consumption
- Click ADD GAS SOURCE
- Add connectix_gasmeter_totaal
- Click SAVE

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



Click on the 3 dots again
Welcome!
I would like to ask for help!
When the: “gasmeter_dashboard.txt” I’ll copy the “Raw configuration editor”
I get this message:
“Unable to parse YAML:YAMLException: end of the stream or a document
separator is expected (3:1) 1 | strategy: 2 | type: original-states 3 | – theme:
Backend-selected —–^ 4 | title: Gasmeter 5 | path: gasmeter”
What do I do wrong?
Please help!
Gy.Hoffmann
If you get that message, it means you don’t have any tabs in the horizontal bar yet. First, create a temporary tab. Save it, then add the contents of the text file. Save again, and then delete the temporary tab. This will resolve the message.
Hi Roel,
ik ben er bijna uit mbt het Gas Dashboard…
Ik heb je gebruiksaanwijzing gevolgd, bij herstarten van Home Automation krijg ik de volgende foutmelding…..
The system cannot restart because the configuration is not valid: Error loading /config/configuration.yaml: expected ”, but found ” in “/config/configuration.yaml”, line 3, column 1
Configuratie file
/homeassistant/configuration.yaml
mqtt
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
thuisassistent:
pakketten: !include_dir_named pakketten
Kun jij mij verder helpen?
grt Aat
Ik denk dat je automatisch vertalen in de browser aan hebt staan.
thuisassistent:
pakketten: !include_dir_named pakketten
Staat namelijk niet in de instructie.
Thanks Roel for having provided the modified files for HA > 2025.12 (2026.6). Swapping in the files is a non event compared to the time it would gave raken to adjust the syntax myself.
Greetings to the NL
Franz
Good that it worked out for you. My pleasure
Thanks for the amazing job. Will be great an English version!