feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Add support to SAGEMCOM XT211 smart meter installed by Groupe-E in Switzerland

Open binksjj opened this issue 6 months ago • 17 comments

Describe the problem you have/What new integration you would like

The DSMR version installed in the smart meter is version 5. But the following data are not provided: Energy Consumed Tariff 1: Unknown Energy Consumed Tariff 2: Unknown Energy Produced Tariff 1: Unknown Energy Produced Tariff 2: Unknown Power Consumed: Unknown

Please add the following data: 1.8.0 Energy Consumed Total (1.8.1 + 1.8.2) 1.8.1 Energy Consumed Tariff 1 1.8.2 Energy Consumed Tariff 2 2.8.0 Energy Produced Total (2.8.1 + 2.8.2) 2.8.1 Energy Produced Tariff 1 2.8.2 Energy Produced Tariff 2 16.7.0 Power instantaneous Consumed Please describe your use case for this integration and alternatives you've tried:

The DSMR Component is not compatible withe the DSMR version installed in the SAGEMCOM XT211 smart meter installed by Groupe-E in Switzerland. Additional context

binksjj avatar Jan 20 '24 20:01 binksjj

+1

razowski avatar Jan 25 '24 08:01 razowski

Hello @binksjj,

I think the P1 Port isn't activated by Group-e by default. I've bought another solution (gplug) and same result even if the XT211 is reported as "compatible". I've sent an email to Group-e to ask to activate the P1 Port. I hope they will do it...

Regards, Razowski

razowski avatar Jan 27 '24 22:01 razowski

Hello @binksjj,

I think the P1 Port isn't activated by Group-e by default. I've bought another solution (gplug) and same result even if the XT211 is reported as "compatible". I've sent an email to Group-e to ask to activate the P1 Port. I hope they will do it...

Regards, Razowski

Hello @razowski ,

Yes, the P1 Port isn’t activate by default. You should ask Groupe-E. In a few months, you will be able to activate it online, through your Groupe-E account.

My P1 Port is activated since January 8th. Obviously, the DSMR version installed by Groupe-E is not totally compatible with v.5. The port is powered but some data are not available.

I use SlimmeLezer+. But I don’t know how to manually add the missing OBIS code.

Best regards.

binksjj avatar Jan 28 '24 14:01 binksjj

Thanks for the information about Group-e... Waiting on them. I will try another P1 module and let you know the result (in a few days)

razowski avatar Jan 30 '24 18:01 razowski

I've give it a try with another P1 module but same result since the DSMR is special as usual with our favorite provider of electricity... So +1 for the request...

razowski avatar Mar 05 '24 19:03 razowski

Hello @binksjj, I think the P1 Port isn't activated by Group-e by default. I've bought another solution (gplug) and same result even if the XT211 is reported as "compatible". I've sent an email to Group-e to ask to activate the P1 Port. I hope they will do it... Regards, Razowski

Hello @razowski ,

Yes, the P1 Port isn’t activate by default. You should ask Groupe-E. In a few months, you will be able to activate it online, through your Groupe-E account.

My P1 Port is activated since January 8th. Obviously, the DSMR version installed by Groupe-E is not totally compatible with v.5. The port is powered but some data are not available.

I use SlimmeLezer+. But I don’t know how to manually add the missing OBIS code.

Best regards.

Hello @binksjj,

Who have you contacted to activate the P1 interface of the new Groupe-E smart meter ? I’ve tried over their hotline with no luck …

thanks

thayoz avatar Mar 18 '24 20:03 thayoz

Hi all, I'm doing the same research. Since few days, I'm having an XT211 from Groupe E, and I'm trying to get datas on my Raspberry. For this purpose I have ordered a P1 monitoring cable (rj11 to USB), which is supposed to be compatible with the Sagemcom smart reader. But I have not been able to get values from the smart reader.

$ udevadm info --a --name /dev/ttyUSB3 Unknown device "/dev/ttyUSB3": No such file or directory

or

$ cu -l /dev/ttyUSB3 -s 115200 --parity=none -E -q cu: open (/dev/ttyUSB3): No such file or directory

Have any one succeed with the P1 port activation?

Leefex avatar Mar 27 '24 10:03 Leefex

Hello @binksjj, I think the P1 Port isn't activated by Group-e by default. I've bought another solution (gplug) and same result even if the XT211 is reported as "compatible". I've sent an email to Group-e to ask to activate the P1 Port. I hope they will do it... Regards, Razowski

Hello @razowski , Yes, the P1 Port isn’t activate by default. You should ask Groupe-E. In a few months, you will be able to activate it online, through your Groupe-E account. My P1 Port is activated since January 8th. Obviously, the DSMR version installed by Groupe-E is not totally compatible with v.5. The port is powered but some data are not available. I use SlimmeLezer+. But I don’t know how to manually add the missing OBIS code. Best regards.

Hello @binksjj,

Who have you contacted to activate the P1 interface of the new Groupe-E smart meter ? I’ve tried over their hotline with no luck …

thanks

Hello @razowski,

To activate the P1 port, I sent several emails to customer service, made several calls over several months and I even wrote a registered letter to the management of the groupe-e. Finally, I received the following form to fill out. Groupe E_Demande d'activation Port 1.pdf

binksjj avatar Mar 27 '24 18:03 binksjj

Hi all, I'm doing the same research. Since few days, I'm having an XT211 from Groupe E, and I'm trying to get datas on my Raspberry. For this purpose I have ordered a P1 monitoring cable (rj11 to USB), which is supposed to be compatible with the Sagemcom smart reader. But I have not been able to get values from the smart reader.

$ udevadm info --a --name /dev/ttyUSB3 Unknown device "/dev/ttyUSB3": No such file or directory

or

$ cu -l /dev/ttyUSB3 -s 115200 --parity=none -E -q cu: open (/dev/ttyUSB3): No such file or directory

Have any one succeed with the P1 port activation?

Hello @Leefex, look at my response in the previous message.

binksjj avatar Mar 27 '24 18:03 binksjj

many thanks for your help, the form is filled up and is on the way.

Leefex avatar Mar 27 '24 19:03 Leefex

Groupe E just activated my port and I'm having the same result. It's not working. It was working fine with the test device that was installed during pilot phase (a Sagemcom T211). I've contacted Groupe E and they confirmed there is a bug in current firmware. It should be fixed later this fall. Here is a table I received explaining the problem:

CleanShot 2024-04-24 at 16 30 33

So I'm afraid it will be necessary to find a way to have something between the Sagemcom device and HA to fix the errors. And it seems it's not the only problem. I've noticed that data 0-0:98.1.0(2) is incomplete on mine. I've tried to play with parsers.py to accept wrong entries and ignore that bad data, but it's still unsuccessful. It seems another error prevent the integration to be added.

jacoch avatar Apr 24 '24 14:04 jacoch

Personally, I use the HomeWizard Energy P1 Wi-Fi adapter. From HA, I access the values via an URL, so I can retrieve all the meter values. This adapter costs around 28 euros. The link below gives more details:

https://www.objetsconnectes.be/2021/02/26/jeedom-sagemcom-ores-p1/

Leefex avatar Apr 25 '24 06:04 Leefex

That's an interesting option that seems easy to use. On my side, as I'm already using MQTT for some of my sensors, I wanted to try that alternative : https://github.com/antonijn/mqtt4dsmr.

jacoch avatar Apr 25 '24 07:04 jacoch

The whole DSMR component should be refactored so that any custom OBIS code could be configured.

nagyrobi avatar Apr 25 '24 07:04 nagyrobi

Sure. Would be a better option. But Groupe E here in Switzerland is supposed to use Belgium version. And after comparing data sent by XT211 and expected data, I've noticed that another line is wrong. It's that one:

0-0:0.0.0(123456789012)

It's supposed to start with 0-0:96.1.1. After modifying the parser to read equipment id from that value and ignore the missing data in 0-0:98.1.0, everything works again. It's not perfect as the parser is in a docker that need to be fixed on each restart, but at least, I have a solution until Sagemcom fixes XT211.

jacoch avatar Apr 25 '24 08:04 jacoch

I don't have the skills to understand the problem. But is it not possible to add the missing OBIS codes to the esphome code?

@jacoch , Could you explain the solution you implemented? So what is this parsers.py file?

binksjj avatar Apr 25 '24 21:04 binksjj

Sure. Unfortuntately, I'm not using ESPhome for my P1 meter. I'm connected using USB. So the data is parsed directly by Home Assistant DSMR integration. But in the back, most solutions use a python library name dsmr_parser. In my case, it's in the Synology docker. So I've edited the required files in that library to make Home Assistant work again. If ESPhome uses the same library, I can post the details about the required modifications.

jacoch avatar Apr 26 '24 06:04 jacoch