In this guide, I’ll explain how you can connect your smart meter with Home Assistant. Home Assistant offers several options for adding a smart meter and monitoring energy consumption in real-time and by hour, day, week, month, and year. Recently, Home Assistant introduced the Energy Dashboard, which displays the energy consumption of the Smart Meter, Gas consumption, and water consumption in beautiful overviews. The beauty of smart meters in the Netherlands and Belgium is that they also provide gas consumption data. So, you can immediately display both gas and electricity consumption in Home Assistant using a single smart reader or P1 meter.

smart meter energy dashboard home assistant
Home Assistant Energy Dashboard

Table of Contents

  1. What is a DSMR P1 Smart Meter?
  2. What is the difference between the “DSMR Smart Meter,” ‘DSMR Reader,” and ESPHome integration?
  3. Which DSMR integration should I use in Home Assistant?
  4. Adding a P1 Smart Meter to Home Assistant in three steps:
    • 1. Connect the Slimme Meter Gateway to your smart meter
    • 2. Follow the guide for the Advanced Energy Dashboard.
    • 3. Add the sensors to the Home Assistant Energy Dashboard.

What is a DSMR P1 Smart Meter?

In Europe, almost all smart meters have a P1 port that operates according to the DSMR standard. DSMR stands for Dutch Smart Meter Requirements. This standard is also referred to as SMR or ESMR. Through this P1 port, which looks like an old-fashioned telephone connection, the energy consumption data is transmitted. A USB cable or a Smart Meter Gateway can be connected to this port.

P1 Meter DSMR Smart Meter
Smart Meter Gateways

The advantage of the Smart Meter Gateway is that it operates via WiFi, eliminating the need to place Home Assistant next to the meter. Another benefit is that this P1 meter not only works with Home Assistant but also with other home automation products by using MQTT and a REST API. If you decide later to switch to, for example, Homey, you can still read your smart meter with Homey via this Smart Meter Gateway. You can also connect your smart meter with Domoticz, for instance.

On the Smart Gateways website, you’ll find a comprehensive list of all smart meters, and we haven’t found a meter yet that doesn’t work with this smart reader. There’s also an ESPHome edition available. This budget version doesn’t integrate with the Advanced Energy Dashboard and is only intended for enthusiasts who want to create their own firmware for reading their smart meter.

Home Assistant has two ways to add a smart meter: via the “DSMR Slimme Meter integration” and the “DSMR Reader” integration. The Smart Meter Gateway from Smart Gateways supports both methods.

What is the difference between the “DSMR Slimme Meter,” ‘DSMR Reader,” and “ESPHome” integration?

DSMR Slimme Meter integration

The DSMR Slimme Meter integration is the simple way of reading a smart meter. In this method, Home Assistant handles the processing itself. This means that Home Assistant puts a heavier load on the system’s processor. It also happens that a smart meter sends data that doesn’t fully comply with the standard. For example, gas meters may not always be found by Home Assistant. Additionally, water meters from Fluvius in Belgium do not work because water meters are not included in the DSMR standard. Also, the DSMR Slimme Meter integration is only compatible with a few countries, like The Netherlands, Belgium, Sweden and Luxembourg. Therefore, I always advise using the DSMR Reader integration which always works. More about this now.

DSMR Reader integration

The DSMR Reader integration works via MQTT. The advantage of MQTT is that your Home Assistant system is less burdened because the processing of the smart meter data is not done by Home Assistant, but by the Smart Meter Gateway. Since this smart reader passes on the gas consumption and water consumption (only in Belgium) from the smart meter, you can be sure that this information is also read correctly. Even if your gas meter is ever replaced and is no longer read by the DSMR Smart Meter integration, the Smart Meter Gateway corrects this automatically, ensuring that all data is transmitted. The DSMR Reader integration is compatible with all smart meters in Europe which support the DSMR, ESMR and SMR standard.

ESPHome Smart Meter integration

The ESPHome Smart Meter integration is Home Assistant’s open-source integration for reading a smart meter. This is Home Assistant’s own firmware that you can edit yourself. In most cases, this works well, but if a smart meter deviates from the standard, you’ll need to modify the code yourself. If you have sufficient programming knowledge, this can be a fun method to connect a smart meter to Home Assistant. You usually only find out about any deviations after you’ve purchased an ESPHome slimmelezer+ or P1MeterKit and it turns out not to work. Modifying the ESPHome Smart Meter firmware can be frustrating and time-consuming. Smart Gateways also offers an ESPHome edition of their Smart Meter Gateway, based on the same hardware, but allowing you to modify the code yourself. If this doesn’t work out, you can purchase an upgrade for a small additional cost, allowing you to upgrade the ESPHome edition to the full firmware of their Smart Meter Gateway.

Which DSMR Smart Meter integration should I use in Home Assistant?

I recommend using the DSMR Reader integration. This ensures that your system is not unnecessarily burdened, and any errors are corrected by the Smart Meter Gateway. Additionally, you can use the Advanced Energy Dashboard alongside the standard Home Assistant Energy Dashboard, which displays even more data. This Advanced dashboard shows almost all data from the smart meter in clear graphs, such as:

  • Voltage per phase (only for DSMR5 meters)
  • Current per phase (only for DSMR5 meters)
  • Consumption per phase (only for DSMR4 and DSMR5 meters)
  • Feed-in per phase (only for DSMR4 and DSMR5 meters)
  • Gas consumption
  • Water consumption (only in Belgium)
  • Total readings for peak and off-peak rates
  • Total readings for gas and water
  • Diagnostic information of the gateway such as firmware, IP address, and Wi-Fi signal strength
smart meter advanced energy dashboard home assistant
Smart Meter Advanced Energy Dashboard for Home Assistant

Note that this Advanced Energy Dashboard only works when Home Assistant is connected via the Smart Meter Gateway from Smart Gateways. There is also an ESPHome edition available. This budget version does not work with the Advanced Energy Dashboard and is only intended for enthusiasts who want to create their own firmware for reading their smart meter.

Adding Smart Meter DSMR P1 to Home Assistant in three steps:

  1. Connect the Smart Meter Gateway to your smart meter
  2. Add the Smart Meter sensors to the Home Assistant Energy Dashboard
  3. Follow the guide for the Advanced Energy Dashboard

1. Connect the Smart Meter Gateway to your smart meter

Follow the instructions provided by the Smart Meter Gateway, which can be found on the support page of Smart Gateways. Connect the gateway to the P1 port of the smart meter. Then, connect the gateway to your Wi-Fi network and optionally install the correct firmware via the firmware menu. Instructions on how to install the firmware for your meter can be found here.

2. Add the Smart Meter sensors to the Home Assistant Energy Dashboard

First, follow the guide for installing the Mosquitto MQTT Broker in Home Assistant.

On this page, you’ll find how to add the Smart Meter to the standard Energy Dashboard of Home Assistant via the DSMR Reader MQTT integration.

3. Follow the guide for the Advanced Energy Dashboard

On this page, you’ll find the instructions for the Advanced Energy Dashboard. It also explains how to use the gateway with Home Assistant via the “DSMR Reader” integration. It might seem difficult, but all steps are clearly explained, making it achievable even for inexperienced users.

Don’t forget the preparations. These are often overlooked, which can result in not seeing all the measurement values after following the instructions.

Result

If all steps are completed correctly, you will see the following dashboards:

Smart Meter Advanced Energy Dashboard for Home Assistant
Home Assistant Default Energy Dashboard

Do you not see water consumption or gas consumption in Home Assistant?

Water consumption is only visible if you live in Belgium and have a Smart Water Meter from Fluvius. This is linked to the smart electricity meter via a radio connection. If you have an analog water meter, you can make the water consumption visible via the Water Meter Gateway from Smart Gateways.

Monitor waterverbruik met de Watermeter Gateway

If you have a digital water meter from Water-Link, you can also connect your water meter to Home Assistant. In this article, you can read more about it.

Monitor water usage of Water-Link with the Kamst-IR Gateway

If you have an analog gas meter, you can connect the gas meter to Home Assistant via the Gas Meter Gateway from Smart Gateways.

gasmeter gateway
Monitor gasverbruik met de gasmeter gateway

Conclusion

Reading your smart meter with Home Assistant offers a powerful way to gain control over your energy consumption and optimize your energy management. By utilizing various integration options such as DSMR Reader, DSMR Smart Meter, and ESPHome, you can easily monitor your electricity and gas usage. The Smart Meter Gateway provides a flexible solution that works via WiFi, allowing you to place Home Assistant away from the meter and collaborate with other home automation systems.

Adding the smart meter to Home Assistant enables you to utilize comprehensive dashboards, such as the Home Assistant Energy Dashboard and the Advanced Energy Dashboard. These tools offer detailed insights into your energy consumption per phase and energy source type, contributing to more efficient energy management.

The process of connecting your smart meter to Home Assistant is streamlined and clear, with step-by-step guides that are understandable even for beginners. Through this integration, you can not only view real-time consumption data but also analyze historical data and set up automated actions to optimize your energy usage.

In conclusion, integrating your smart meter with Home Assistant is a smart move to monitor, analyze, and manage your energy consumption, ultimately contributing to a more sustainable future and achieving savings on your energy bill. With the right settings and tools, you can fully leverage the capabilities that smart meters and Home Assistant offer.

Leave a Reply

Your email address will not be published. Required fields are marked *