Integrating a smart meter from Luxembourg into Home Assistant using ESPHome can be an excellent way to gain real-time insights into your household’s energy consumption. Given the growing interest in smart home automation, this integration offers a seamless method to monitor and manage your electricity usage more effectively.

Luxembourgish smart meters often use DSMR (Dutch Smart Meter Requirements) with encrypted data streams, making it crucial to handle encryption keys appropriately within your setup. With ESPHome, a popular firmware platform for Home Assistant, you can configure an ESP32 device to read data from your smart meter, decrypt it if necessary, and then feed this data into Home Assistant for real-time monitoring and automation.

The integration process typically involves flashing your ESP32 device with ESPHome firmware, configuring the YAML file to handle the meter’s data, and ensuring the decryption keys are correctly managed. This setup not only allows for real-time energy tracking but also supports the creation of detailed consumption reports and automation routines in Home Assistant, helping you optimize your energy use and save on costs.

By following these steps, you can turn your Luxembourg smart meter into a vital component of your smart home ecosystem, unlocking powerful energy management features through Home Assistant.

What do I need to Integrate a Smart Meter from Luxembourg into Home Assistant

To integrate a smart meter from Luxembourg into Home Assistant, you’ll need a few key components and tools to get started. Here’s what you need:

1. Smart Meter with DSMR Protocol

  • Luxembourg smart meters typically use the DSMR (Dutch Smart Meter Requirements) protocol. Smart meters in Luxembourg are also known as “Smarty” meters. It’s important to ensure your meter supports this protocol as it defines the communication method between the meter and external devices. Additionally, Luxembourgish smart meters often come with encrypted data streams, so you’ll need the appropriate decryption keys from your energy provider.

3. Smart Meter Gateway ESPHome Edition

  • To simplify the process, you can use the Smart Meter Gateway ESPHome Edition from Smart Gateways. This device is pre-configured with ESPHome firmware and is designed to work seamlessly with DSMR smart meters. It connects to your meter via the P1 port and sends data over WiFi to Home Assistant. The gateway handles the DSMR decryption internally, making it easier to integrate Luxembourgish meters that require decryption keys.

4. Home Assistant Setup

  • Ensure that you have Home Assistant installed and running. This platform will serve as the central hub for monitoring and controlling your smart meter data. The ESPHome integration within Home Assistant will help you easily add your Smart Meter Gateway ESPHome Edition device to the system, allowing you to view real-time energy consumption, create automation routines, and generate usage reports.

5. Decryption Keys

  • As the data from Luxembourgish smart meters is often encrypted, obtaining and correctly inputting the decryption keys from your energy provider is crucial. These keys allow your setup to interpret the encrypted data sent by your smart meter.

6. WiFi Network

  • A stable WiFi connection is essential as your Smart Meter Gateway will communicate with Home Assistant over your home network. Make sure your WiFi network is reliable and covers the area where your smart meter is installed.

By following these steps and using the Smart Meter Gateway ESPHome Edition from Smart Gateways, you can seamlessly integrate your Luxembourg smart meter, into Home Assistant, unlocking powerful energy monitoring and automation features. This setup not only provides real-time insights into your energy consumption but also allows you to optimize and manage your energy use efficiently.

Connecting the Smart Meter ESPHome Edition to the WiFi Network

It is recommended to configure the Smart Meter ESPHome edition without being connected to the smart meter, that is, connected via a power supply with micro-usb connector (not included). Do the configuration near an access point to make sure the Wi-Fi signal strength is sufficient. If the gateway is connected to WiFi, the gateway can be connected to the P1 port of the smart meter.

  • connect a usb power supply (5V, 1A) to the gateway’s micro usb jack
  • the gateway now starts up, wait at least 60 seconds
  • the gateway now broadcasts the wifi network “Smart Gateways Smart Meter”, connect to this network. The password is “smartgateways” without trailing characters
  • a browser appears with available wifi networks, select your own wifi network from the list and enter the password. Select save
  • if no browser appears, go to http://192.168.4.1 and enter your wifi data and click save
  • the gateway will now connect to your wifi network. The blue LED will flash at 1-second intervals if successful
  • if the gateway cannot connect, try again until it succeeds.
  • if the gateway is connected, it will automatically appear within Home Assistant (if in the same subnet)

Requesting a P1 encryption key from your network operator

All Smart Meters, commonly referred to as ‘Smarty’ in Luxembourg, are equipped with a P1 port and are compatible with the P1 Meter. The P1 port on Luxembourg ‘Smarty’ meters is encrypted by default.

As the data from Luxembourgish smart meters is often encrypted, obtaining and correctly inputting the decryption keys from your energy provider is crucial. These keys allow your setup to interpret the encrypted data sent by your smart meter.

Since the data on Luxembourg Smarty meters is encrypted, a P1 key is required for the P1 Meter. To obtain your decryption key, contact your network operator (Creos, Electris, Sudstroum, Ville de Diekirch, or Ville d’Ettelbruck) and provide your name (which must be registered for this meter with the operator), address, and the Smarty ‘SAG’ number (located beneath the green round button) of your Smarty. This key is unique to each meter and consists of a string of 32 numbers and letters. You need this key later to add it to the ESPHome configuration.

Enable Gas Measurements for Smarty meters in Luxembourg into Home Assistant

To enable gas measurements in the Energy app (updates every 5 minutes), contact your gas network operator (Creos, Dudelange or Sudenergie) with your name, adres, Smarty ‘SAG…’ number and Gas meter ‘FLO…’ or ‘ELS…’ number (can be found on the meter) for data activation.

ESPHome configuration for Smart Meters in Luxembourg

The below ESPHome configuration is custom made to be compatible with Smart Meters from Luxembourg. You can edit the configuration by clicking on the Edit button:

The ESPHome yaml configuration for Smarty Meters from Luxembourg will be automatically mailed to your email address when you order the device. If not, ask the full esphome yaml code at https://smartgateways.nl/en/contact/

Uncomment the next line “# decryption_key: !secret decryption_key” in the configuration and insert the decryption key you got from your energy company.

# For Luxembourg, uncomment and insert the decryption_key obtained by the powergrid operator (e.g. Creos/Sudstroum).
decryption_key: !secret decryption_key

Install the ESPHome config to the already added Smart Meter Gateway ESPHome Edition device in Home Assistant.

Smart Meter Luxembourg Home Assistant Meausurements

If you installed the above configuration including the decryption key, you will see the Smart Meter measurements below:

Conclusion

Integrating a Luxembourg smart meter into Home Assistant using ESPHome is a powerful way to gain real-time insights into your household’s energy consumption. By configuring your Smart Meter Gateway ESPHome Edition with the correct decryption key and uploading the updated configuration, you can seamlessly connect your smart meter to Home Assistant. This setup allows you to monitor energy usage effectively, create detailed consumption reports, and implement automation routines to optimize your energy management.

By following the outlined steps and ensuring proper configuration, you’ll unlock comprehensive energy monitoring features that can help you manage and reduce your energy costs. The integration not only enhances your smart home ecosystem but also provides valuable data to make informed decisions about your energy consumption.

The Smart Meter Gateway ESPHome Edition is available on SmartGateways.nl

Real-Time Energy in Home Assistant with the Smart Meter ESPHome Edition

The Smart Meter ESPHome Edition is a user-friendly and versatile solution for monitoring energy consumption. This meter connects easily via the P1 port and integrates seamlessly with Home Assistant, thanks to the pre-installed ESPHome firmware. After connecting to your Wi-Fi network, the meter is automatically recognized by Home Assistant and can be quickly added to your system.

This energy meter is compatible with all smart meters in Europe, including those in the Netherlands, Belgium, Luxembourg, Austria, Sweden, Finland, Lithuania, Denmark, Hungary, Ireland, and Switzerland. The system provides real-time data on energy consumption, solar energy production, voltage, current per phase, and, if available, gas and water consumption.

The meter operates without the cloud and keeps all data local, ensuring privacy. With its open-source firmware, you can customize settings to suit your needs. The meter features a powerful Dual-Core Tensilica Xtensa LX6 microprocessor, which delivers excellent performance. Note: support and extensive manuals are not provided for this product; a manual is available on the product page.

Frequently Asked Questions (FAQ) about Integrating Luxembourg Smart Meters with Home Assistant

1. What is a Smart Meter and why use one?

A smart meter is a digital device that measures and records your energy consumption in real time. It provides accurate, up-to-date information on your energy usage, allowing you to monitor and manage your consumption more effectively. Using a smart meter with Home Assistant helps you track energy data, create automation routines, and potentially reduce your energy costs.

2. What is DSMR and how does it relate to Luxembourg smart meters?

DSMR stands for Dutch Smart Meter Requirements, a protocol used for communication between smart meters and external devices. Luxembourg smart meters, often known as “Smarty” meters, use DSMR for data transmission. This protocol defines how energy data is communicated and is essential for integrating these meters with home automation systems.

3. How do I obtain the decryption key for my Luxembourg smart meter?

The data from Luxembourgish smart meters is typically encrypted. To obtain the decryption key, contact your energy provider (e.g., Creos, Sudstroum, or other local operators). Provide them with your name, address, and the meter’s “SAG” number. The decryption key is unique to each meter and is necessary for decrypting the data.

4. What is ESPHome and how does it work with smart meters?

ESPHome is an open-source firmware platform that allows you to configure and manage ESP32 devices for home automation. It enables integration of smart meters into Home Assistant by reading and processing the data from the meter. ESPHome handles configurations through YAML files, making it easier to connect your smart meter to Home Assistant.

5. How do I configure the ESPHome firmware for my smart meter?

To configure ESPHome, you need to flash your ESP32 device with the appropriate firmware and edit the YAML configuration file. Uncomment and insert the decryption key obtained from your energy provider into the configuration. Upload this configuration to your ESP32 device via Home Assistant.

6. What should I do if the Smart Meter Gateway doesn’t connect to WiFi?

Ensure the gateway is within range of your WiFi network and that you have entered the correct WiFi credentials. If it still fails to connect, try rebooting the gateway and reattempting the connection process. Check the blue LED indicator to confirm successful connection.

7. Can I monitor gas consumption with my Luxembourg smart meter setup?

Yes, you can monitor gas consumption if your smart meter setup supports it. Contact your gas network operator to enable gas measurements in Home Assistant. Provide your meter details and request activation for gas data.

8. How can I view the smart meter data in Home Assistant?

Once the ESPHome configuration is properly installed, you should be able to view smart meter data in the Home Assistant dashboard. Navigate to the Energy app or relevant dashboard to monitor real-time energy consumption, generate reports, and set up automation routines.

9. What if I need further assistance with my setup?

If you encounter issues or need further assistance, consult the ESPHome and Home Assistant documentation, or seek help from community forums and support groups. Additionally, reaching out to your energy provider for specific questions about your smart meter can also be helpful.

10. What do I need to read a “Smarty” electricity meter (Sagemcom T 210-D) in Luxembourg?

To connect a Smarty electricity meter (Sagemcom T210-D in Luxembourg, you need a Smart Meter Gateway ESPHome Edition from Smart Gateways. Yo can connect it to Home Assistant and monitor energy consumption. Just put in the encryption key you got from your energy company and save energy.

Track Water consumption in Home Assistant with the Watermeter Gateway.

The Water Meter Gateway transforms your analog water meter into a smart one, providing real-time insights into your water consumption. Through a clear dashboard, you can see exactly how much water you use while showering, bathing, washing your hands, or watering your garden. The data is displayed in straightforward overviews, allowing you to track your water usage and identify potential cost-saving opportunities.

The Water Meter Gateway is easy to install and compatible with most analog water meters, including brands like Itron, Actaris, Elster, and Honeywell. It works with popular home automation software such as Home Assistant, Domoticz, and Homey. For further integration, you can use open standards like REST-API and MQTT, which ensure secure data transmission.

Even without home automation software, you can choose the Online Energy Dashboard subscription option. With the included installation guide, you can easily set up the gateway yourself. The sensor is extendable up to 15 meters and works with both version A and B, depending on your water meter.

Click here for more information.

2 thoughts on “Integrating Luxembourg Smart Meter into Home Assistant with ESPHome”
  1. Moien
    I am living in Luxembourg and I did remark this article (https://haprofs.com/integrate-smart-meter-from-luxembourg-into-home-assistant/) back in 2025, and I was very interested about.
    I started Home Assist in Jan 2025, so I could not yet understand everything

    My question is if today with HA 2026.4 this manual still apply or if there are changes to consider?
    What about Creos, can we still ask and obtain password ?
    And last question. My waterconsumption is read by my ‘commune’ passing with a car in the street. But they wont give away the password . Is there still a chance to read the data ?

    guy
    you can answer in EN, FR, DE, LU

    1. Hi Guy,

      Yes this still applies to the latest versions. Please make sure your meter supports the dsmr standard and you can obtain the encryption key from your provider.

Leave a Reply

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