Using Slimmelezer+ to read data from energy meter Iskra AM550 from Romande Energie (Switzerland)

@malonip

Some help how to debug:

And some other help from a discussion how to interpret the data in the debug.

Edit:

A good list of OBIS codes to interpret the data coming in:

https://onemeter.com/docs/device/obis/

Thank you so much, @flo2141
I followed your suggestions and reflashed my slimmelezer+ with AMS Reader (the version has changed to 2.2.22 but I hope that isn’t my issue!)
I can get a nice MQTT connection to HA. I see 2 entities (slimmelezer supply voltage: 3.39V and WiFi status), but the HAN icon stays red and I cannot get any data from my ISKRA AM550 from Romande Energie.
Here is my config and the AMS main page:


(I tried 8E1, 8N1 as well as the other Meter config options)

I telnetted in to get the debug messages and got this:

image

I see 2 HAN messages in the main AMS toolbar:

  1. HAN: RX error
  2. HAN: Unknown data received, check meter config

Is anyone able to advise me if that means my P1 port is disabled, or is it outputting encrypted/unrecognisable data? I confirm that the P1 port is able to power the slimmelezer+ without a USB-C cable, so it’s at least outputting power.

I feel like I am so close to getting this one working, but I am missing something. I cannot tell if it is something in my config, or something that RE might be blocking.

I don’t know if by default the P1 port is actived… I wrote to Romande Energie before I wanted to connect the Slimmelezer to ask them if I could use the P1 port. They answer me with a techsheet and confirming I could use it. But I don’t know if they activated something or if this is activated by default… Try maybe to ask them, they are reactiv.

I did email them and they were fairly reactive.
They said that the port is active but I cannot get any useful data from it.
I wonder if it jus encrypted perhaps…?

I would ask them, what the serial speed is in use on the meter and/or is it encrypted.

Also, you can set the debug level to verbose to see the actual messages received.

Romande Energie have given me the following info:

When I sent them this log output, they confirmed that the port is not encrypted:

They have now shut the door and said that they will not provide any further support.
Can anyone tell if that log output suggests that the port is encrypted (my suspicion), or any other obvious issue that would stop it working?

If I remember correctly, that image above is the verbose log…

That answer is weird, but to be honest you have received far more information then any electricity company would give.

If you have that log in hex format, then you can paste it here to get it decoded:

Actually, you can paste that ASCII into the decoder to get it converted to hex as well.

Try to adjust your setting according the description on the image:

115200 8N1

If it is still not working try to invert the the serial.

Where is that log came from? Have you turned on verbose mode on the AMSREADER? You should be able to see there any messages in HEX coming from the meter.

Otherwise if you would post text instead of images, then we could help to decode it.

Is it still a problem?

  • Try to change the read speed, parity, bit order.
  • Are you trying to decode/display as UTF-8, other?

You may tweak these parameters.
port – Device name or None.
baudrate (int) – Baud rate such as 9600 or 115200 etc.
bytesize – Number of data bits. Possible values: FIVEBITS, SIXBITS, SEVENBITS, EIGHTBITS
parity – Enable parity checking. Possible values: PARITY_NONE, PARITY_EVEN, PARITY_ODD PARITY_MARK, PARITY_SPACE
stopbits – Number of stop bits. Possible values: STOPBITS_ONE, STOPBITS_ONE_POINT_FIVE, STOPBITS_TWO
timeout (float) – Set a read timeout value in seconds.
xonxoff (bool) – Enable software flow control.
rtscts (bool) – Enable hardware (RTS/CTS) flow control.
dsrdtr (bool) – Enable hardware (DSR/DTR) flow control.
write_timeout (float) – Set a write timeout value in seconds.
inter_byte_timeout (float) – Inter-character timeout, None to disable (default).
exclusive (bool) – Set exclusive access mode (POSIX only). A port cannot be opened in exclusive access mode if it is already open in exclusive access mode.

Or you don’t display the information correctly.
Tweak the bit order too.

What I do is to use an oscilloscope when I really have difficulties to read a message on a serial line. You can find values like “speed” quite easily.

If you provide an hex dump, I can try to see if I find something.

Tasmota is able to read the ISKRA SM’s P1 port, extract the values for the OBIS codes delivered out of the HDLC/DLMS encoded binary telegram and publish them towards a topic of your MQTT broker.

Unfortunately, this currently only works for unencrypted DLMS APDUs which is the case for RE. The reason is that ISKRA uses a HDLC segmentation approach different from other SM.

The reason that amsReader is only capable to extract very few values (those delivered in frame no. 1) boils down to the same problem with the inability to correctly reassemble the 3 HDLC frames.

This problem should, can and will eventually be fixed. The c++ code is open-source. It’s just a matter of time and priorities.

As long as the DLMS APDU is being pushed unencrypted, Tasmota is already capable of diging the values out of the binary telegram, thanks to its user configurable pattern-matching through its admin webUI.

For more information on SM CII in Switzerland, you may want to search forume.ch or have a look at gPlug.ch.

1 Like

I tested this with ISRKA AM550 and it is working perfectly since v2.3.1. Should have no problem with SIL or romande énergie

2 Likes

Thanks for the info :+1: You plugged it on the connector behind the cap at bottom of counter ? could you power it from counter ?

Yes, just need external power to start, you can remove after started.

1 Like

Thanks have to find out now how to adapt it for Lora use as it’s underground so impossible to get wifi there unhappy but Lora should work :confused:

Are you sure that you are talking about an Iskra AM550? Those should have the P1 connector on the top right side, behind an elastic rubber cap.

image

you are right, I made a mistake with the LG one. I have to get access here to check which one of the model I have (SIL indicates the Iskra and LG as counters they install !

The Landis Gyr has from the bottom/front side.

Not the same model here :wink:

1 Like

Hello everyone,
Romande Energie just installed Iskra AM550 and I would like to take the data to home assistant.
Based on different posts, can someone just summarize what i need to go forward in term of hardware and software?

Thanks

No one has worked on that model yet ? considering that SIL are not really cooperating on that :frowning: