DSMR Smart Meter stops working

Hello,

I’m running HA in a docker environment with DSMR smart meter integration succesfully for more then one year. But the last couple of weeks, DSMR stops receiving data from the P1 meter. Disabling & Enabling the DSMR service solves the issue, but after a couple of days no data is received again. Upgrading from 2024.11.1 to 2024.11.3 did not solve the issue.

I activated debug logging. Around 08:18h DSMR stopped receiving P1 data. The logging shows no errors, just no dsmr lines after the time the issue occured.

2024-12-01 08:18:52.501 DEBUG (MainThread) [dsmr_parser.clients.protocol] got telegram: /Ene5\T211 ESMR 5.0

1-3:0.2.8(50)
0-0:1.0.0(241201081938W)
0-0:96.1.1(4530303632303030303031353133353231)
1-0:1.8.1(005488.495kWh)
1-0:1.8.2(003131.645
kWh)
1-0:2.8.1(002514.653kWh)
1-0:2.8.2(005930.684
kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.552kW)
1-0:2.7.0(00.000
kW)
0-0:96.7.21(00015)
0-0:96.7.9(00006)
1-0:99.97.0(1)(0-0:96.7.19)(231207082657W)(0000000569s)
1-0:32.32.0(00003)
1-0:52.32.0(00003)
1-0:72.32.0(00003)
1-0:32.36.0(00000)
1-0:52.36.0(00000)
1-0:72.36.0(00000)
0-0:96.13.0()
1-0:32.7.0(225.0
V)
1-0:52.7.0(226.0V)
1-0:72.7.0(224.0
V)
1-0:31.7.0(001A)
1-0:51.7.0(000
A)
1-0:71.7.0(000A)
1-0:21.7.0(00.400
kW)
1-0:41.7.0(00.000kW)
1-0:61.7.0(00.152
kW)
1-0:22.7.0(00.000kW)
1-0:42.7.0(00.000
kW)
1-0:62.7.0(00.000kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303539303033383631393537343139)
0-1:24.2.1(241201081500W)(13899.638
m3)
!ABEA

2024-12-01 08:18:53.455 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: /Ene5\T211 ESMR 5.0

1-3:0.2.8(50)
0-0:1.0.0(241201081939W)
0-0:96.1.1(4530303632303030303031353133353231)
1-0:1.8.1(005488.495kWh)
1-0:1.8.2(003131.645
kWh)
1-0:2.8.1(002514.653kWh)
1-0:2.8.2(005930.684
kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.551kW)
1-0:2.7.0(00.000
kW)
0-0:96.7.21(00015)
0-0:96.7.9(00006)
1-0:99.97.0(1)(0-0:96.7.19)(231207082657W)(0000000569s)
1-0:32.32.0(00003)
1-0:52.32.0(00003)
1-0:72.32.0(00003)
1-0:32.36.0(00000)
1-0:52.36.0(00000)
1-0:72.36.0(0000
2024-12-01 08:18:53.503 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0)
0-0:96.13.0()
1-0:32.7.0(225.0
V)
1-0:52.7.0(226.0V)
1-0:72.7.0(224.0
V)
1-0:31.7.0(001A)
1-0:51.7.0(000
A)
1-0:71.7.0(000A)
1-0:21.7.0(00.399
kW)
1-0:41.7.0(00.000kW)
1-0:61.7.0(00.151
kW)
1-0:22.7.0(00.000kW)
1-0:42.7.0(00.000
kW)
1-0:62.7.0(00.000kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303539303033383631393537343139)
0-1:24.2.1(241201081500W)(13899.638
m3)
!3AED

2024-12-01 08:18:53.503 DEBUG (MainThread) [dsmr_parser.clients.protocol] got telegram: /Ene5\T211 ESMR 5.0

1-3:0.2.8(50)
0-0:1.0.0(241201081939W)
0-0:96.1.1(4530303632303030303031353133353231)
1-0:1.8.1(005488.495kWh)
1-0:1.8.2(003131.645
kWh)
1-0:2.8.1(002514.653kWh)
1-0:2.8.2(005930.684
kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.551kW)
1-0:2.7.0(00.000
kW)
0-0:96.7.21(00015)
0-0:96.7.9(00006)
1-0:99.97.0(1)(0-0:96.7.19)(231207082657W)(0000000569s)
1-0:32.32.0(00003)
1-0:52.32.0(00003)
1-0:72.32.0(00003)
1-0:32.36.0(00000)
1-0:52.36.0(00000)
1-0:72.36.0(00000)
0-0:96.13.0()
1-0:32.7.0(225.0
V)
1-0:52.7.0(226.0V)
1-0:72.7.0(224.0
V)
1-0:31.7.0(001A)
1-0:51.7.0(000
A)
1-0:71.7.0(000A)
1-0:21.7.0(00.399
kW)
1-0:41.7.0(00.000kW)
1-0:61.7.0(00.151
kW)
1-0:22.7.0(00.000kW)
1-0:42.7.0(00.000
kW)
1-0:62.7.0(00.000kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303539303033383631393537343139)
0-1:24.2.1(241201081500W)(13899.638
m3)
!3AED

2024-12-01 08:18:54.415 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: /Ene5\T211 ESMR 5.0

Can anyone help me to fix this?

Thank you in advance!!

No information can be found in dsmr debug logging. I found out P1 meter data collection is always stopped in the morning, see below. Is there any way to debug all HA actions?

2024-12-01 08:18:54
2024-12-03 07:34:45
2024-12-04 07:34:10
2024-12-06 07:49:30
2024-12-08 08:29:32

Thank you in advance!

Yesterdayevening shut down all containers and power down Raspberry PI4. Disconnect P1 meter. Boot Raspberry PI4 and all containers. Shut down all containers and power down Raspberry PI4 again. Reconnect P1 meter on same USB port. Boot Raspberry PI4 and all containers. No result, still P1 meter stops collecting, everytime around 08:00h.

2024-12-01 08:18:54
2024-12-03 07:34:45
2024-12-04 07:34:10
2024-12-06 07:49:30
2024-12-08 08:29:32
2024-12-12 07:49:41
2024-12-13 07:44:37

Can anybody help me out? I’m running out of options…

The P1 is just dumping out a very simple message, you can see the message for yourself using putty and the P1 to USB. Depending on your DSMR version you will to set:
4&5 - 115200 baud 8N1
3 - 9600 baud 7E1

This way you can first test if the P1 is spitting out a correct message all the time and if the P1 to USB cable is good. If it already goes wrong here; 99% its the cable, as the P1 signal is stupid simple and just spits the message out.

Thank you for your reply. I will test it, to check the dataintegrity stays correct.