[Integration] 🔌 DSMR Smart Meter (electricity / gas / water P1 meters)

Hello everyone,

I present to you DSMR Smart Meter, an external integration that reads DSMR meters via their P1 port. These meters are present in the :netherlands: Netherlands, :belgium: Belgium, :luxembourg: Luxembourg, :sweden: Sweden, and :hungary: Hungary.

What it brings:

  • :high_voltage: Real-time drawn and injected power, total and per phase (voltage, current)
  • :chart_increasing: Index by rate (day/night) connected to Gladys energy tracking: consumption and costs according to your contract
  • :fire::droplet: Gas and water meters automatically detected
  • :belgium: Quarterly and monthly peaks for the Belgian capacity rate
  • :locked_with_key: Support for Luxembourgish Smarty meters, whose telegrams are encrypted
  • :clapper_board: Scene triggers: rate change, start or end of solar injection (ideal for running the washing machine on surplus), power outage, new monthly peak
  • :puzzle_piece: Scene actions « Read meter » and « Daily balance », to receive a summary every evening
  • :bar_chart: Two dashboard widgets: an overview, and a view per phase with gauges to the scale of your circuit breaker
  • :house: 100 % local, no cloud or account. Available in French, English, German, and Spanish

Equipment: a P1 network reader. This can be a Wi-Fi dongle that broadcasts telegrams in TCP, a HomeWizard P1 meter (local API), or a simple USB P1 cable shared with ser2net, possibly on the machine running Gladys.

:warning: The French Linky does not use a P1 port but teleinformation: it is not compatible.

Installation: from the Gladys integrations catalog (version 5.1 minimum), then enter the reader’s address and click on « Test connection ».

:package: Source code and documentation: GitHub - gboulvin/Gladys-DSMR-Smart-Meter · GitHub

This is a first version. I haven’t been able to test it on all meters, so your feedback is welcome, especially if you have a Belgian, Luxembourgish, Dutch, Swedish, or Hungarian meter! :folded_hands:

Hello and thank you for the work on this DSMR integration! As part of my evaluation of Gladys to migrate from Home Assistant, I am currently testing the DSMR Smart Meter integration.

My configuration:

  • Data source: P1 port connected via a Smart Meter WiFi Gateway (sends MQTT / TCP).

  • Gladys Assistant: Gladys v5.2.1

  • Integration: DSMR Smart Meter

The connection test between Gladys and the Wi-Fi module / meter is successful.

  1. The meter is correctly detected in the list of discovered devices.

  2. « Add » to validate the creation of the device in Gladys, the registration fails and the interface / API returns an HTTP 422 error.

    HTTP 422 — UNPROCESSABLE_ENTITY — t_device_feature.min cannot be null; t_device_feature.max cannot be null

Welcome and thank you for your very precise feedback! :folded_hands:

The issue was with the « Current Rate » measurement: it was sent to Gladys without a minimum or maximum value, which Gladys refuses when creating the device (hence the 422).

This is fixed in version 1.0.1. Update the integration from Gladys. Then, in the Discovery tab, click again on « Add » for the meter: the creation should now work.

Don’t hesitate to let me know if everything comes back well (index, power, gas…), and what meter model and country you are using!

Hello,

Here is a problem quickly fixed.

All the information comes up perfectly. Even the ones that were not available via the HA DSMR reader (voltage & current per phase). It’s perfect.

Exactly, I forgot to mention:

Country: Belgium (French-speaking part)

Meter 1SAG3100476746 (DSMR 50221, 3 phases) (Siconia T211).

I still have the issue of managing the modes of my ZigbeeMQTT pilot wires and I’m ready to take the big leap.

Thanks

Claude