DSMR sensors re-add

Try:

port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A52SJSS1-if00-port0

Will work for almost sure…

Thanks for the reply. It’s not back in the GUI, however after going through the log files the log entries that stated all this is back, like:

2020-12-11 21:01:13 WARNING (MainThread) [dsmr_parser.clients.protocol] Invalid telegram. The CRC checksum '45204' does not match the expected '29681'

I guess that has something to do with it. I searched some for this, but haven’t found a solution yet.

Try to set the dsmr version to match yours. 4 it is?

The version is on your meter.

Do you have entities?

No, no entities. The new meter is 5 ( Landis & Gyr E360 SMR 5.0)

I find this in the log files too:

dsmr_parser.exceptions.ParseError: Failed to perform CRC validation because the telegram is incomplete. The checksum and/or content values are missing.

You are sure this setup, this cable, this usb port, etc. worked with this new meter? There are several types of cables and some older cables do not work well. So at this point it is hard to tell… but if your meter is dsmr 5, and that cable is ok, it “should” work… :thinking:

I cannot see that menu, Im running a docker image

Yeah, take a look;

Like I said, the meter (DSMR4) was changed and we just plugged the cable back in the new meter. So I ASSUME that something with the discovery of the meter is off. Before hass still had the config from the old meter and that still worked, but after deletion and with the new meter this discovery now fails. Just a theory.

Hmmm… then I’m out of options. I’m not sure what you mean, there’s nothing to “discover”. You configure dsmr via https://www.home-assistant.io/integrations/dsmr/ it creates entities and parses the output to it if configured correctly…

Just a theory. If it can’t detect the sensor after boot it won’t configure anything.

Thanks for all the support, really appreciate it.

In my case I had the version 5 but I deleted it by mistake, because I wanted to change the port from remote to local usb. After this I never saw the integration again. If I go to info menu I can see the integration in there (documentation / issues links)

Here is more log for those interested. Can I flag this on github anywhere? Of are any persons here devs?

2020-12-11 21:01:18 ERROR (MainThread) [dsmr_parser.clients.protocol] failed to parse telegram
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
    parsed_telegram = self.telegram_parser.parse(telegram)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 47, in parse
    self.validate_checksum(telegram_data)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 77, in validate_checksum
    raise ParseError(
dsmr_parser.exceptions.ParseError: Failed to perform CRC validation because the telegram is incomplete. The checksum and/or content values are missing.

@matthijsberg did you manage to re-add it to home assistant? I still have the same problem I think the port is correct but I still don’t see it on home assistant

I manage to find part of the issue, the usb drivers were not installed and the port was wrong… now I see more details on the log, but I also get “failed to parse telegram”… Im also using version 5.

  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py", line 108, in handle_telegram
    parsed_telegram = self.telegram_parser.parse(telegram)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 59, in parse
    telegram[signature] = parser.parse(match.group(0))
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 249, in parse
    return ProfileGenericObject(self._parse(line))
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 148, in _parse
    raise ParseError("Invalid '%s' line for '%s'", line, self)
dsmr_parser.exceptions.ParseError: ("Invalid '%s' line for '%s'", '99.97.0()\r\n', <dsmr_parser.parsers.ProfileGenericParser object at 0x7f05faeb3a30>)

No, I did not succeed. I did enable debugging, and that looks pretty like this a couple of time untill…:

2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] got telegram: /XMX5LGF0010455222015

1-3:0.2.8(50)
0-0:1.0.0(201212112446W)
0-0:96.1.1(4530303637303035353232323031353230)
1-0:1.8.1(000066.422*kWh)
1-0:1.8.2(000115.797*kWh)
1-0:2.8.0(000046.058*kWh!

2020-12-12 11:24:52 ERROR (MainThread) [dsmr_parser.clients.protocol] failed to parse telegram
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
    parsed_telegram = self.telegram_parser.parse(telegram)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 47, in parse
    self.validate_checksum(telegram_data)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 77, in validate_checksum
    raise ParseError(
dsmr_parser.exceptions.ParseError: Failed to perform CRC validation because the telegram is incomplete. The checksum and/or content values are missing.
2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:2.8.2(000029.
2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 809*kWh)
0-0:96.14.0(0001)

2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:1.7.0(00.000*kW)
1-0:2.3.0(00.319*kW)

2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:96.7.21(00010)

2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:96.7.9(00002)
1-0:99.97.0(1)(0-0:96.7.19)
2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: (000101010000W)(0
2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 000000382*s)
2020-12-12 11:24:52 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 
1-0:32.32.0(00005)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:52.32.0(00007)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:72.32.0(00007)
1-0:32.36.0(00000)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:52.36.0(00000)
1-0
2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: :72.36.0(00000)
0-0:96.13.0()

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:32.7.0(232.4*V)
1-0:52.7.0(235.3*V)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:72.7.0(234.5*V)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:31.7.0(001*A)
1-0:517.0(002*A)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:71.7.0(001*A)
1-0:21.7.0(0
2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0.069*kW)
1-0:41.7.0(00.000*kW)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:61.7.0(00.035*kW)
1-0:22.7.0(00.000*kW)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:42.7.0(00.422*kW)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:62.7.0(00.000*kW)
0-1:24.1.0(003)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-1:96.1.0(4730303333353935313033323536353230)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-1:24.2.1(201212112010W)(00234.802*m3)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: !6095

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: /XMX5LGF0010455222015

1-3:0.2.8(50)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:1.0.0(201212112447W)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:96.1.1(4530303637303035353232323031353230)
1-0:1.8.1(000066.422*kWh)
1-0:
2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1.8.2(000115.797*kWh)
1-0:2.8.1(000046.058*kWh)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:2.8.2(000029.809*kWh)
0-0:96.14.0(0001)
2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 
1-0:1.7.0(00.000*kW)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:2.7.0(00.316*kW)
0-0:96.7.21(00010)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:96.7.9(00002)

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:99.97.0(1)(0-0:96.7.19)
2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: (000101010000W)(0000000382*s)
2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 

2020-12-12 11:24:53 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:32.32.0(00005)
1-0:52.32.0(00007)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:72.32.0(00007)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:32.36.0(00000)
1-0:52.36.0(00000)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:72.36.0(00000)
0-0:96.13.0()

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:32.7.0(232.2*V)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:52.7.0(234.9*)
1-0:72.7.0(235.9*V)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:31.7.0(001*A)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:51.7.0(002*A)
1-0:71.7.0(001*A)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:21.7.0(00.067*kW)
1-0:41.7.0(00.
2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 000*kW)
1-0:61.7.0(00.038*kW)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:22.7.0(00.000*kW)
1-0:42.7.0(00.421*kW)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:62.7.0(00.000*kW)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-1:24.1.0(003)
0-1:96.1.0(4730303331353935393033323536353230)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-1:24.2.1(201212112010W)(00234.802*m3)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: !0100

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] got telegram: /XMX5LGF0010455222015

1-3:0.2.8(50)
0-0:1.0.0(201212112447W)
0-0:96.1.1(4530303637303035353232323031353230)
1-0:1.8.1(000066.422*kWh)
1-0:1.8.2(000115.797*kWh)
1-0:2.8.1(000046.058*kWh)
1-0:2.8.2(000029.809*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.000*kW)
1-0:2.7.0(00.316*kW)
0-0:96.7.21(00010)
0-0:96.7.9(00002)
1-0:99.97.0(1)(0-0:96.7.19)(000101010000W)(0000000382*s)
1-0:32.32.0(00005)
1-0:52.32.0(00007)
1-0:72.32.0(00007)
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(232.2*V)
1-0:52.7.0(234.9*)
1-0:72.7.0(235.9*V)
1-0:31.7.0(001*A)
1-0:51.7.0(002*A)
1-0:71.7.0(001*A)
1-0:21.7.0(00.067*kW)
1-0:41.7.0(00.000*kW)
1-0:61.7.0(00.038*kW)
1-0:22.7.0(00.000*kW)
1-0:42.7.0(00.421*kW)
1-0:62.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303331353935393033323536353230)
0-1:24.2.1(201212112010W)(00234.802*m3)
!0100

2020-12-12 11:24:54 WARNING (MainThread) [dsmr_parser.clients.protocol] Invalid telegram. The CRC checksum '14791' does not match the expected '256'
2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: /XMX5LGF0010455222015


2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-3:0.2.8(50)
0-0:1.0.0(201212112448W)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:96.1.1(4530303637303035353232323031353230)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:1.8.1(000066.422*kWh)
1-0:1.8.2(000115.797*kWh)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:2.8.1(000046.058*kWh)
1-0:2
2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: .8.2(000029.80)*kWh)
0-0:96.14.0(0001)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:1.7.0(00.000*kW)
1-0:2.7.0(00.318*kW)
2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 
0-0:96.7.21(00010)

2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-0:96.7.9(00002)
1-0:99.97.0(1)(0-0:96.7.19)
2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: (0001010100 0W)(0000000382*s)
2020-12-12 11:24:54 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 
1-0:32.32.0(00005)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:52.32.0(00007)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:72.32.0(00007)
1-0:32.36.0(00000)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:52.36.0(00000)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:72.36.0(00000)
0-0:96.13.0()

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:32.7.0(231.9*V)
1-0:52.7.0(234.6*V
2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: )
1-0:72.7.0(237.0*V)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:31.7.0(001*A)
1-0:51.7.0(002*A)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:71.7.0(001*A)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:21.7.0(00.067*kW)
1-0:41.7.0(00.000*kW)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:61.7.0(00.035*kW)
1-0:22.7.0(00.000*
2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: kW)
1-0:42.7.0(00.420*kW)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 1-0:62.7.0(00.000*kW)
0-1:24.1.0(003)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-1:96.1.0(4730303333353935393033323536353230)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 0-1:24.2.1(201212112010W)(00234.802*m3)

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: !D09B

2020-12-12 11:24:55 DEBUG (MainThread) [dsmr_parser.clients.protocol] got telegram: /XMX5LGF0010455222015

1-3:0.2.8(50)
0-0:1.0.0(201212112448W)
0-0:96.1.1(4530303637303035353232323031353230)
1-0:1.8.1(000066.422*kWh)
1-0:1.8.2(000115.797*kWh)
1-0:2.8.1(000046.058*kWh)
1-0:2.8.2(000029.80)*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.000*kW)
1-0:2.7.0(00.318*kW)
0-0:96.7.21(00010)
0-0:96.7.9(00002)
1-0:99.97.0(1)(0-0:96.7.19)(0001010100 0W)(0000000382*s)
1-0:32.32.0(00005)
1-0:52.32.0(00007)
1-0:72.32.0(00007)
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(231.9*V)
1-0:52.7.0(234.6*V)
1-0:72.7.0(237.0*V)
1-0:31.7.0(001*A)
1-0:51.7.0(002*A)
1-0:71.7.0(001*A)
1-0:21.7.0(00.067*kW)
1-0:41.7.0(00.000*kW)
1-0:61.7.0(00.035*kW)
1-0:22.7.0(00.000*kW)
1-0:42.7.0(00.420*kW)
1-0:62.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303333353935393033323536353230)
0-1:24.2.1(201212112010W)(00234.802*m3)
!D09B

2020-12-12 11:24:55 WARNING (MainThread) [dsmr_parser.clients.protocol] Invalid telegram. The CRC checksum '40286' does not match the expected '53403'
2020-12-12 11:24:55 INFO (MainThread) [dsmr_parser.clients.protocol] disconnected because of close/abort.

After the line 2020-12-12 11:24:55 INFO (MainThread) [dsmr_parser.clients.protocol] disconnected because of close/abort. logging stops for DSRM, approx 40 seconds after restart of hass container.

SOLUTION FOR ME:

It looks like this issue: [SOLVED] DSMR doesn't show up after adding to configuration.yaml but no clue how to reset my smart meter.

If I disconnect the P1 port (leave USB in) on the meter I get the following:

2020-12-12 12:06:37 DEBUG (MainThread) [dsmr_parser.clients.protocol] connected
2020-12-12 12:06:37 DEBUG (MainThread) [dsmr_parser.clients.protocol] received data: 
2020-12-12 12:07:07 INFO (MainThread) [dsmr_parser.clients.protocol] disconnected because of close/abort.

So also an abort after 30 seconds.

If I pull the USB side and reboot I get the next (expected);

2020-12-12 12:24:18 ERROR (MainThread) [homeassistant.components.dsmr.config_flow] Error connecting to DSMR
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/serial/serialposix.py", line 265, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A52SJSS1-if00-port0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/dsmr/config_flow.py", line 78, in validate_connect
    transport, protocol = await asyncio.create_task(reader_factory())
  File "/usr/local/lib/python3.8/asyncio/coroutines.py", line 124, in coro
    res = func(*args, **kw)
  File "/usr/local/lib/python3.8/site-packages/serial_asyncio/__init__.py", line 410, in create_serial_connection
    ser = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/serial/__init__.py", line 88, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.8/site-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A52SJSS1-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A52SJSS1-if00-port0'

Plug back every thing in and reboot gives met the same as before, messages and after approx 30 seconds;

2020-12-12 12:36:28 INFO (MainThread) [dsmr_parser.clients.protocol] disconnected because of close/abort.

I would expect the DSMR to reconnect after 30 seconds (thats the default according the docs). That is not the case.

When I added the reconnect to my config, it reconnects (40K + log lines in less than 10 minutes). My config now looks like:

- platform: dsmr
  port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A52SJSS1-if00-port0
  dsmr_version: 5
  reconnect_interval: 60

AND MY SENSORS ARE BACK!

PS, also back in GUI, don’t forget to disable debug logging.

I changed loggin level to critical to not get all the CRC errors. That works. Only errors that are left now are:

2020-12-12 14:11:47 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.8/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
    self.handle_telegram(telegram)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
    parsed_telegram = self.telegram_parser.parse(telegram)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 47, in parse
    self.validate_checksum(telegram_data)
  File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 83, in validate_checksum
    expected_crc = int(checksum_hex.group(0), base=16)
ValueError: invalid literal for int() with base 16: '140W'

Looks like somthing for github? I made issue here; https://github.com/ndokter/dsmr_parser/issues/65

Hi,
I have a raspberry pi with P1monitor on it ( i can see there my readings from gas and electricity), i have set mqtt open to send the data to the HA. A

But i can’t get any reading from it.
Does somebody know the solution for it?

Did you create the MQTT sensors in the HA config? If you’re manually sending the information over MQTT via a broker to HA, you need to tell HA where to listen to. If you download a MQTT client (like MQTT explorer) on you PC / Mac, do you see the MQTT messages going by?

Hi to all,

Recently (two weeks I think) I get the following errors

Logger: dsmr_parser.clients.protocol
Source: /usr/local/lib/python3.9/site-packages/dsmr_parser/clients/protocol.py:136
First occurred: 16:41:05 (440 occurrences)
Last logged: 18:31:04

Invalid telegram. The CRC checksum ‘18986’ does not match the expected ‘62739’
Invalid telegram. The CRC checksum ‘6089’ does not match the expected ‘1994’
Invalid telegram. The CRC checksum ‘26722’ does not match the expected ‘33371’
Invalid telegram. The CRC checksum ‘42171’ does not match the expected ‘28546’
Invalid telegram. The CRC checksum ‘19447’ does not match the expected ‘22021’

Absolutely no idea when it started, but as you can see 440 occurrences in two hours is a bit much I think.
Who can help me, How can I debug it?

Regards Frank