Dsmr and Sagemcom T210-D [Solved]

Hello, I tried without success, for several days to get the information from my new smart meter in HA. A lot has already been written about it but I was not able to solve it after reading of all the other DSMR and P1 items

  • Meter: Sagemcom T210-D
  • Rpi 3B+ with 3A power supply
  • I tested the P1 cable in windows with putty and I see readable date scrolling over the screen.(settings: com3, 115200, N81)
  • The cable is ttyUSB1 (cli, ha hardware without cable no ttyUSB1. After a reboot with cable cli ha hardware shows ttyUSB1)

I created dsmr.yaml with

sensor:
  - platform: dsmr
    port: /dev/ttyUSB1
    dsmr_version: 5
  
group:
  meter_readings:
    name: Meter readings
    entities:
      - sensor.energy_consumption_tarif_1
      - sensor.energy_consumption_tarif_2
      - sensor.energy_production_tarif_1
      - sensor.energy_production_tarif_2
      - sensor.gas_consumption

In configuration.yaml I have the line:
dsmr: !include dsmr.yaml

When I check the Integration after a shutdown/reboot I do not have DSMR integration. I

I have no errors or warnings in the log file referring to the connection or sensor.

I do not have DSMR integration after a shutdown/reboot.

I’ve also tested the setup where sensor and group lines are in the configuration.yaml. During this test I got in the log “duplicate warnings” because “sensor” and “group” already exists as include lines in configuration.yaml.

Who can help me?

Hi,

I’m not sure, but I don’t think the dsmr popups in the configuration UI.
Did you check the entities?

I would try this, but I’m not sure how your configuration.yaml looks like and if you have already defined a sensor section and a groups section.
Since you might already have a sensor section defined in your configuration.yaml; your error seems te be right.
Try to remove the include dsmr.yaml and just add your config under the right sensor annd groups in the configuration.yaml.
For example

 #this goes under your current sensor section in your configuration.yaml: 
  - platform: dsmr
    port: /dev/ttyUSB1
    dsmr_version:

The same thing for your groups.yaml

Thanks for the tip Lesley!!! I moved the first part to sensors.yaml and the second part to my groups.yaml and it worked immediately after reboot.

On other thing now, I got a lot of warning in my log (will turn it of) but I do not know if this is as designed:

2021-04-14 08:14:26 WARNING (MainThread) [dsmr_parser.clients.protocol] Invalid telegram. The CRC checksum ‘899’ does not match the expected ‘51567’

Wouldn’t know actually. Quick Google learns that there are more with the same problem.
You’d might check if the DSMR-version is right. Could also be 5B.

I saw it as well, just like the entity sensor.energy_consumption_total which is empty, but this can easily be solved with with a calculation. Thanks again for your support.