There is a Smart Meter binding in OH that supports reading of smart meter data via an IEC 62056-21 optical read head and using the German SML optical port protocol.
In UK Smart Meters use a different technical standard than Germany. (Presumably BSI versus DIN). The UK overall standard is called SMETS-v2 whereby the optical port hardware is the same IEC 62056-21 as in Germany, but the protocol is called DLMS/COSEM (vs SML in Germany).
I am thinking of developing binding support for DLMS/COSEM via IEC 62056-21 on SMETS-v2
Questions:
Does anyone know if there is any similarity between SML and DLMS/COSEM?
And if so, do you think it would be easier for me to extend the existing Smart Meter binding, or
alternatively would it be better to start from scratch with a new binding for DLMS/COSEM?
Same situation over here in (Lower) Austria.
We use KAIFA MA309 smartmeters which use the DLMS/COESM protocol as well.
Imho there’s not much overlap between DLMS and DSMR or SML protocols so a new binding would make more sense.
Theres a guy who wrote a crude python script which decrypts/decodes DLMS data and can post it to an mqtt broker. It works but isn’t as nice as a native plugin.
The OSI levels 1, 2, 3 could probably be shared across bindings.
And OH would provide OSI levels 6, and 7
However the levels 4, and 5, are provided by SML and DLMS libraries which even if they might have external similarities, appear to have been written by different people and to a very different architecture.
So my conclusion is that it is probably easier to write a new binding from scratch. And perhaps in a second phase I could add the ThingHandler and ThingHandlerFactory code from the one to the other. (This is essentially what I did with the Hue binding API v1 and v2 where essentially we have two completely different bindings appearing under the same umbrella).
it’s pretty much pointless excercise in uk, unless you buy your own meter it will be passwortd protected. I spent days trying to talk to my supplier meter, and got 0 signals back, not even a blip, bought the same make an model from electrical distributor and i had a basic handshake, didn’t go any further as what’s the point. BG, Octopus, EDF, all lock their optical ports.