Connect a Smart Electricity Meter from Sweden to Home Assistant
Sweden is adopting Smart Electricity meters for a while. When you have such a smart meter, you can monitor the energy usage of your home with Home Assistant. Every Swedish smart meter is following the DSMR standard which uses a P1 port. This P1 port can be used to connect a smart meter gateway to make the data available for your own usage. One way to get some insights is Home Assistant. Home Assistant has a beautiful dashboard with all the information you need. The Swedish smart electricity meters also output the output of solarpanels if installed.
Gas usage also visible
Some gas meters are smart too. When they are, most of the times they transfer the gas usase to the smart electricity meter. They use a radio link for this. This makes it possible to also publish this data to Home Assistant
In this post I will tell you how to connect your smart meter from Sweden to Home Assistant.
What do you need to connect a Swedish smart meter to Home Assistant?
- Get a Swedish version of the Smart Meter WiFi gateway from SmartGateways
Step 1: Install the Smart Meter Gateway
Install and connect the Smart Meter WiFi Gateway following the supplied installation manual. You can find it on the support page.
Step 2: Connecting the Smart Meter WiFi gateway to Home Assistant
Install the DSMR integration in Home Assistant by going to Settings -> Click Add Integration and search for DSMR Slimme Meter.
Select Network from the drop down list.
Enter the ip address from the gateway in the Host field. Fill in 23 as the Port and select DSMR version 5S (S for Sweden).
Click Save and you’re done. Sometimes it is nessecary to restart Home Assistant to make all the measurements available.
Step 3: Configure the Energy Dashboard sensors
When the Smart Meter Integration is installed you have to select the energy consumption and energy production sensors to get the data into the Home Assistant Energy Dashboard.
- Go to Settings -> Energy -> Electricitygrid
- Grid Consumpton -> select Electricity Delivered
- Return to grid -> select Electricity Returned
Configuration is done.
Please note that the power details in the dashboard take a day to be displayed. Be patient, it will look like the picture above the next day.
Now available: the Watermeter Gateway from SmartGateways
Thanks for good prodduct and guides on installation and configuration.
There is a tiny typo in step 2, S for Sweden is missing att the end of line below
Enter the ip address from the gateway in the Host field. Fill in 23 as the Port and select DSMR version 5.
Hi Erik,
Thanks for notifying me! I changed it to 5S.
Did you also see the advanced dashboard? https://haprofs.com/home-assistant-slimme-meter-energy-dashboard-met-uitgebreide-grafieken/
Installed the meter yesterday. Led slowly pulsing blue, wifi signal -76.
Telegrams received 4644
Telegrams with errors 4644
On the landing page the Energy Consumption shows zero.
I’ve not yet received my Homey, do I need to connect through Homey to see any values or should I be able to see Energy Consumption by connecting directly to the meter?
Hi Uffe,
When the telegrams received and telegram errors is the same you are using the wrong firmware. You can change this very easy in the web menu of the gateway. See this article which firmware you need for your meter: https://smartgateways.nl/en/smart-meter-overview/
Regards,
Roel
Installed the meter yesterday. Led slowly pulsing blue, wifi signal -76.
Telegrams received 22
Telegrams with errors 22
I have a aidon 6534 meter
2.2 RJ12 HAN interface HW structure
The Aidon RF2 System Modules have a physical HAN interface that is an implementation of the
H1 port described in [REF6]. The System Modules hold a female RJ12 connector, where the
external HAN device with male RJ12 plug can be connected. The RJ12 connector is available on
the front cover of the energy service device. Table 1 shows the pin order of the HAN connector.
Pin Signal Description
1 5V +5V power feed to HAN device (250 mA max.)
2 Data Request Data request input
3 GND –
4 NC Not connected
5 Data HAN data output (open collector)
6 GND –
Table 1: HAN interface pinout
i have
SWEDEN – VERSION A
Mac address B8_D6_1A_44_A3_08
Ip address 192.168.100.88
Startup time 2023-03-29T12:52:03Z
Firmware running 2023032201
Firmware available 2023032201
License activated YES
Number of reboots 19
WiFi SSID Folkparken
WiFi channel 4
WiFi signal strength -66
WiFi reconnects 0
WiFi last connection error
Internet connection OK
MQTT server
MQTT status Not configured
MQTT (re)connects 0
MQTT (re)connect time
Telegrams received 22
Telegrams with errors 22
Hi TorBjorn,
You can read here what to do when this happens: https://smartgateways.nl/en/smart-meter-overview/
Just install the other firmware via the menu of the gateway and it will be solved.
Hi,
Thank’s for a great product!
But, there are some values from the P1 that are disabled in the HA integration.
I like to display the phase currents to see how well balanced my home is.
Why are these values disabled?
Hi Jorgen,
The developer of the DSMR-Integration decided to disable most of these values. I think because not all people want to see this and not all meters send all these values. You can decide which values to enable. Only enable values that your meter sends (are not 0 in mqtt explorer). Enabling the values is explained here: https://haprofs.com/belangrijke-informatie-over-home-assistant-update-2022-10/ (translate from Netherlands into Swedish if you don’t understand).