ndokter / dsmr_parser

Library to parse Dutch Smart Meter Requirements (DSMR) telegrams.
MIT License
112 stars 64 forks source link

ISKRA MT382 with optical probe #81

Closed Bascht74 closed 3 years ago

Bascht74 commented 3 years ago

Hello, I have a MT382 smart meter with 8 tariffs and it uses DSMR (plain text).

Here is an example of the output via HTERM on Windows: /ISK5\2MT382-1008<\r> 0-0:96.1.1(314xxxxxxxxxxxxxxxxxxxxx37)<\r><\n> 0-0:128.20.0(016)<\r><\n> 1-0:0.9.2(210528)<\r><\n> 1-0:0.9.1(215658)<\r><\n> 1-0:1.7.0(001.322kW)<\r><\n> 1-0:2.7.0(000.000kW)<\r><\n> 1-0:1.8.0(010192.57kWh)<\r><\n> 1-0:1.8.1(006094.31kWh)<\r><\n> 1-0:1.8.2(001410.19kWh)<\r><\n> 1-0:1.8.3(000981.30kWh)<\r><\n> 1-0:1.8.4(001706.76kWh)<\r><\n> 1-0:1.8.5(000000.00kWh)<\r><\n> 1-0:1.8.6(000000.00kWh)<\r><\n> 1-0:1.8.7(000000.00kWh)<\r><\n> 1-0:1.8.8(000000.00kWh)<\r><\n> 1-0:1.2.0(106.732kW)<\r><\n> 1-0:1.6.0(007.072kW)<\r><\n> 1-0:2.8.0(006715.38kWh)<\r><\n> 1-0:3.8.0(000122.04kvarh)<\r><\n> 1-0:4.8.0(006255.99kvarh)<\r><\n> 1-0:0.2.2(Smart001)<\r><\n> 1-0:0.3.0(00500)<\r><\n> 1-0:0.3.1(00500)<\r><\n> 1-0:0.3.3(250)<\r><\n> 0-0:97.97.0(00000000)<\r>

My problem is, that in my country the meter requires initialization via the optical interface: HEX 2F 3F 21 0D 0A ("/?!") at 300 baud/7E1 (afterwards it is possible to switch-over to 9600 baud: hex 06 30 35 30 0D 0A ("050") ) see: https://github.com/lvzon/dsmr-p1-parser/blob/master/doc/IEC-62056-21-notes.md#sign-on-sequence

The P1 interface is not accessible in my country, the readout is only possible optically.

I tried to use the dsmr integration in home assistant (https://www.home-assistant.io/integrations/dsmr/) , but optical readout (initialisation) seems to be not supported via the combination of the integration and your library.

I opened an issue here and asked about it: https://github.com/home-assistant/core/issues/51271

RobBie1221 pointed me to your library as per Home Assistant rules, communication with devices should only be done through 3rd party libraries. He said that the dsmr library currently officially complies to specs from The Netherlands, Belgium and Luxembourgh. Other countries may work by accident.

So I kindly ask you if it would be possible to add the sign-on-sequence (that seems not to be needed in your country as you can access the P1-Interface) in your library. If you add that, then the library can be used in other countries, that use the same meters, but only support the optical read-out.

Thx for an opinion and your great work ( that I wish I could use :-),

Sebastian

Bascht74 commented 3 years ago

Hi, I got my German power company to connect the P1-Port, even that it is not used in Germany. So I can use the P1 Port and get all the data.

Sebastian