-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISKRA MT381 energy meter compatibility #4
Comments
Hi Matej, Cool that you're considering using this.
You don't =) On the internet, I found a
With among others this text: The relevant bits are documented at the top: pe32me162ir_pub/pe32me162ir_pub.ino Lines 1 to 44 in e3394b0
There's an initial connect readout sample here: pe32me162ir_pub/pe32me162ir_pub.ino Lines 645 to 656 in e3394b0
I also have a Python version here: https://github.com/wdoekes/pe32me162irpy_pub It is not as well documented, but it is written in Python, so it might be easier to hack/extend/change. You can use that if you're testing on a laptop/raspberry, instead of on an ESP.
Hard to tell whether that exists. The ME162 has the following EDIS/OBIS codes for readout: There is no such thing as a 15-minute consumption there. Only the "current" positive/negative cumulative values (1.8.x and 2.8.x). And it has no mention at all of what the active tariff is. Although the latest change in any of the 1.8.x or 2.8.x. values should give you a clue which one is active. I think this might be your manual: https://www.telematicasistemi.it/it/documents/_01.category/manuali/Mx381_User_manual_eng_V1.01.pdf It's likely that the same protocol is supported: The EDIS/OBIS codes are scattered throughout the document: 1.8.0, 90.7.0, etc.. I think from "Annex 1: MT381 object list" and downwards, you have a boatload of these OBIS codes. Among those The pe32me162ir_pub/pe32me162ir_pub.ino Line 331 in e3394b0
I think you'll need to write In the Python version, that would be here: https://github.com/wdoekes/pe32me162irpy_pub/blob/a7ccc15ab079cc323bd7b96adf6188a4e0b28891/pe32me162irpy_pub.py#L437 You'll probably need to "log out" to switch between devices: pe32me162ir_pub/pe32me162ir_pub.ino Lines 447 to 452 in e3394b0
With these parts you might be able to:
Good luck! |
To add some info, I'm using this program with a ME372 meter and it works fine. My meter doesn't publish much data though, especially not the instant consumption. [ISK5\2ME372-2102] The IR probe is not sold any more by the Danes as a kit (I think I was the last to order one), but the components are very common and easy to source on Ali. The PCB schematics are still available and can be used to order the PCB on JLCPCB or PCBWAY. The enclosure can be 3D-printed (the STL is on the Danes website and there is even an improved version with space for a Wemos on Thingiverse, https://www.thingiverse.com/thing:4437840) |
Wow thanks for so detailed replies.
I will look into the documentation, for interesting fearures, thanks fo
providing links.
Today i got access to the new energy potral where i also see meters and
reports, but sadly they dont allow an API yet or open Website for
norifications to connect to OpehHab or anything else, and is protected by
rekono so no easy way to grant access to OH.
I will ask them what they plan to develop as they want to reduce grid
strain with this system. It they wont have a clue or plan to provide a
solution i will experiment further with this project.
Thanks for support.
V tor., 6. jun. 2023 10:05 je oseba Walter Doekes ***@***.***>
napisala:
… Hi Matej,
Cool that you're considering using this.
How do I know if my energy meter is compatible with your software?
You don't =)
On the internet, I found a me162_technical_description.pdf PDF:
ME162
Single-Phase Electronic Meter
Technical Description
Version 1.1, 02.06. 2006
With among others this text:
------------------------------
[image: image]
<https://user-images.githubusercontent.com/1225014/243588949-96fa9a09-0315-45c6-b168-31f8398b6749.png>
------------------------------
The relevant bits are documented at the top:
https://github.com/wdoekes/pe32me162ir_pub/blob/e3394b07da8b45497a526614b9aaa04789441637/pe32me162ir_pub.ino#L1-L44
(IEC 62056-21 protocol).
There's an initial connect readout sample here:
https://github.com/wdoekes/pe32me162ir_pub/blob/e3394b07da8b45497a526614b9aaa04789441637/pe32me162ir_pub.ino#L645-L656
I also have a *Python* version here:
https://github.com/wdoekes/pe32me162irpy_pub
It is not as well documented, but it is written in *Python*, so it's
easier to hack/extend/change. You can use that if you're testing on a
laptop/raspberry, instead of on an ESP.
------------------------------
I would like to send the 15-minute consumption, active tariff, and warning
flag "grid transformer overload" if it exists.
Hard to tell whether that exists. The ME162 has the following EDIS/OBIS
codes for readout:
[image: image]
<https://user-images.githubusercontent.com/1225014/243598437-d17425e8-cb0f-47fe-bf03-e4a170e741d3.png>
There is no such thing as a 15-minute consumption there. Only the
"current" positive/negative cumulative values (1.8.x and 2.8.x). And it has
no mention at all of that the active tariff is. Although the latest change
in any of the 1.8.x or 2.8.x. values should give you a clue which one is
active.
------------------------------
I think this might be your manual:
https://www.telematicasistemi.it/it/documents/_01.category/manuali/Mx381_User_manual_eng_V1.01.pdf
It looks way more advanced than my device.
It's likely that the same protocol is supported:
[image: image]
<https://user-images.githubusercontent.com/1225014/243605265-9c36918a-34a2-4ab3-9588-b1f7ee5ba4bd.png>
The EDIS/OBIS codes are scattered throughout the document: 1.8.0, 90.7.0,
etc..
I think from "Annex 1: MT381 object list" and downwards, you have a
boatload of these OBIS codes. Among those 0-0:96.14.0.255 ("Currently
Active Tariff") and the aforementioned 1-0:1.8.0.255 ("Active Energy
Plus").
The 0-0 vs. 1-0 probably pecifies which internal device this code is for.
At login time, the "default" device is selected here:
https://github.com/wdoekes/pe32me162ir_pub/blob/e3394b07da8b45497a526614b9aaa04789441637/pe32me162ir_pub.ino#LL331C17-L331C20
I think you'll need to specify /?0! to talk to device 0 and /?1! to talk
to device 1.
In the Python version, that would be here:
https://github.com/wdoekes/pe32me162irpy_pub/blob/a7ccc15ab079cc323bd7b96adf6188a4e0b28891/pe32me162irpy_pub.py#L437
You'll probably need to "log out" to switch between devices:
https://github.com/wdoekes/pe32me162ir_pub/blob/e3394b07da8b45497a526614b9aaa04789441637/pe32me162ir_pub.ino#L447-L452
With these parts you might be able to:
- log in on dev 0
- fetch the currently active tarrif; push value to openhab
- log out
- log in on dev 1
- fetch the current readings from 1.8.x for 15 minutes (or less if you
don't know when the tariff changes); push delta to openhab
- log out
- repeat
------------------------------
Good luck!
Walter
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3CQWJ4AVFEODNC25LD2YTXJ3QEPANCNFSM6AAAAAAYZMJIIQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
FYI: In 6ccff8b I removed the Danes from the docs and added a link to Bret's eBay where he sells presoldered ones (no plastic cover / magnets though). |
Hi, this project seems interesting, I am planning to integrate the Iskra energy meter into Openhab.
How do I know if my energy meter is compatible with your software?
My meter has IR ports with a magnet ring, but the model seems different.
I actually already measure just current with CTs to prevent overloads of mains fuses.
I would like to send the 15-minute consumption, active tariff, and warning flag "grid transformer overload" if it exists.
Our electric company set up a new plan with 5 tariffs and 3 of them change in a day, 2 are winter and 2 are summer only, and one is the baseline. I could guess with Openhab based on time what tariff is on but it is cheating it may be false.
Now they announced a new flexible contract where you get a cheaper tariff if you turn off loads at peak demands, but it is dumb as they expect me to fiddle with unplugging devices manually in 15 minutes when I get an SMS or Mail to get a bonus. I have openhab to do this, to manage with dryers and boilers w smart plugs and dial down smart heating.
Maybe just point me out if smarting the energy meter is useful for that, or it cant be smartened to tell that grid load indicator and my 15-minute energy rate that my energy company talks all over the place that smart meters can do but not how I can use it to control my smart heating for example.
Thanks in advance
Matej
The text was updated successfully, but these errors were encountered: