Smart-Meter-Interface - Landis + Gyr E450 - Global Unicast Encryption Key (GUEK) #14610
-
Hi everybody, I just saw that it I is possible to use tasmota to connect via Smart-Meter-Interface to a smart meter to capture its information. The data which is sent by the smart meter is encrypted I cannot yet tell how it will look like when I really can connect tasmota to the device, but has anybody already tried to connect to an encrypted Landis + Gyr E450? Thank you very much for some information 😊 |
Beta Was this translation helpful? Give feedback.
Replies: 32 comments 45 replies
-
As of today, I'm pretty sure Tasmota do not support encrypted smart meters. |
Beta Was this translation helpful? Give feedback.
-
Thx barbudor again for your answer 😉 As I am not so into the details jet, I found for example this Python Script on GitHub, which sounds very promising: Thank you, |
Beta Was this translation helpful? Give feedback.
-
Thank you both, I have to take a deeper look at all the information. So the tasks for me are: |
Beta Was this translation helpful? Give feedback.
-
Hi barbudor, ok – understand. If I would have to try to create a script on my own, I should do it in C only. If it was not encrypted, I would have used Scripting-Language SML feature in Tasmota. Alternatively, I could also imagine send the encrypted data to some other system, like a RPi and do the encryption via python there? Regards, |
Beta Was this translation helpful? Give feedback.
-
@barbudor |
Beta Was this translation helpful? Give feedback.
-
@AndaSquared ah, it was for the Gyr 350, not the Gyr 450... |
Beta Was this translation helpful? Give feedback.
-
Hi barbudor, Thx for your effort 😉 customers can use the RJ12 jacket. There is not much information I was able to find on the internet. Regards, |
Beta Was this translation helpful? Give feedback.
-
Yes, thats cracy… I was searching around a little and fond this: In the meantime, I got answer from my friend. Maybe @gemu2015 can add that functionality into the code when I am able to send some probes. Thx and regards, |
Beta Was this translation helpful? Give feedback.
-
Hi, I got my delivery from Aliexpress today. I have not yet figured out how I can se any data coming in from the MBus adapter. I was testing the script sample here: But I do not get any useful data back 19:07:53.438 var not found: sml(1 0 9600) Maybe you have an advice? Thx |
Beta Was this translation helpful? Give feedback.
-
yes as @barbudor already said you must get sample data by another software. as i see in the python script the meter seems to send data without any request. so i suggest you get a serial terminal with hex display capability and record some data sets with a pc. |
Beta Was this translation helpful? Give feedback.
-
I have installed a RPI4 to try to connect to the MBus TTY converter. pi@raspberrypi:~/ssterm $ /home/pi/.local/bin/ssterm /dev/serial0 -b 2400 -i hex -o split
This is one cycle. hier is also attached a logfile with more cycles |
Beta Was this translation helpful? Give feedback.
-
I also tried to connect the mbus converter to the ESP32 via serial Port again.
When I go to the console and type 09:36:08.766 : 77 82 01 03 30 00 17 70 7f 58 41 d1 6f ee f6 16 15 0e 2b 24 df a4 ff 97 34 74 df 32 3d a4 88 8b 0e 95 75 2b 84 8e 8f 2d 09:36:18.545 : 77 31 7a 3e 16 27 eb e5 ba 2e bd 6a 70 07 9e de 12 19 33 82 c5 ce b8 94 94 08 f7 2e eb 29 0c 90 29 a1 21 4b ff ff d3 28 09:36:28.840 : 77 42 b6 9f ca ee 7f e1 d4 0e 32 15 f4 c6 61 c7 98 36 84 41 7e 7e a0 8b ce ff 03 13 ee e1 e0 40 80 ff 7e a0 8b ce ff 03 09:36:38.618 : 77 82 01 03 30 00 17 70 82 33 f5 1c 1f d1 be 61 d7 20 38 7a 01 52 9c c3 c6 70 7d 74 62 e8 aa b9 69 13 0a 52 b5 23 05 c3 09:36:48.913 : 77 82 01 03 30 00 17 70 83 51 17 4d 8d de a7 9c 37 e5 1a a5 96 ea e7 99 10 5a cb f8 35 d1 7e 61 5e fa fe a1 1e c0 d3 45 So the ESP is getting something, which is good. For testing, I also have added this to the user_config_override.h: #define SML_MAX_VARS 60 But it did not change anything. Regards, |
Beta Was this translation helpful? Give feedback.
-
there is currently no mode in this driver that would support this meter in any way. but in the meantime i tried with several python scripts for your meter from the photovoltaik forum and could not get any useful data with your dumps and keys. i would suggest you also try to use python to get your meter decoded. if you finally may have a working python solution i may then try to port that to c and the SML driver |
Beta Was this translation helpful? Give feedback.
-
I have been able to successfully parse the output from my SmartMeter ... with help of this GitHub Repo: it seems, that here is no AES encryption going on. I don’t fully understand the code (I don’t have much coding skills) Attached you’ll find a word file with the encrypted and decrypted message – and marked the DEC clear text values in the HEX message, this maybe also helps to interpret everything? |
Beta Was this translation helpful? Give feedback.
-
@AndaSquared did you ever found out cause of "var not found sml( .... )"? I guess compile with |
Beta Was this translation helpful? Give feedback.
-
300 baud was main issue in my case |
Beta Was this translation helpful? Give feedback.
-
meanwhile i have a running driver for such encrypted meters. |
Beta Was this translation helpful? Give feedback.
-
Hallo zusammen, der Landis und der Siemens TD-351 haben die gleiche Smart-Meter-Schnittstelle.
; Json-Nutzlast > per Anzeige senden
Eine Letzte Frage habe ich noch: Ich würde gern eine Steckdose mit Tasmota fernsteuern. Würde das so funktionieren wie ich es in diesen Code implantiert habe? |
Beta Was this translation helpful? Give feedback.
-
Hallo Gemu2015, ich habe mal ein paar Screenshots in eine Datei gespeichert. https://docs.google.com/document/d/1N6koC28ZxvlXy2FwCQTKpCQOtkW0u8Bs3ckDoTf1SU0 |
Beta Was this translation helpful? Give feedback.
-
Landis+Gyr E450 auslesen: Wie ich es mache - Photovoltaikforum
|
|
|
| | |
|
|
|
| |
Landis+Gyr E450 auslesen: Wie ich es mache - Photovoltaikforum
Hallo Leute, Nach erfolgreicher Tüfftelei (herzlichsten Dank an alle im Thread Landis + Gyr E450 über VZ Logger...
|
|
|
hier auf seite 10, Post #100, habe ich es genau beschrieben. lg
Am Dienstag, 30. Mai 2023 um 12:30:20 MESZ hat TMillesich ***@***.***> Folgendes geschrieben:
Hallo @sylvester311274, mit welchem Skript hast du es schlussendlich geschafft?
Meines liefert immer nur "0" Werte. :(
Die Diskussion folgend #18560 (comment) hilft leider auch nicht weiter.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Bitte ev. kann mir auch wer helfen. Aber mein "Wiener Netze" Landis Gyr e450 liefert mir 0, 0 und wieder 0 Ich habe hier Tasmota 12.5.0 und muss via IR Kopf auslesen. Zuletzt habe ich die verheissungsvolle Config der User hier mit Netz Burgenland probiert, Hat denn niemand hier im Board so eine Kombi "Wiener Netzte" mit dem e450 am Start ? |
Beta Was this translation helpful? Give feedback.
-
Danke für die Nachricht !
Ich will die Werte in meiner PV-DatenVerarbeitung als Referenz.
Am Ende zählen die Werte, nicht die Lösung...
Tasmota muss es nicht sein, aber mit dem WeMos war der technologische Footprint schon sehr klein … das hat mir gefallen.
Lg
… On 06.07.2023, at 18:37, curtosvienna ***@***.***> wrote:
Was hast du genau vor? Auslesen und dann weiter verarbeiten? Hast du den Schlüssel von Wiener Netze? Muss es zwingend tasmota sein ?
—
Reply to this email directly, view it on GitHub <#14610 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABQHMCKLZEDKMBLX4XFQT33XO3SWFANCNFSM5M32BH7Q>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Oje, da weis ich nicht genau was ich da tun muss.
Ich bin nicht sicher, ob der Zähler auf die IR Signale überhaupt antwortet obwohl die Kundenschnittstelle aufgedreht ist und ich den Schlüssel auch kenne.
Mein IR-Lesekopf blink auf jeden Fall.
Danke, wenn Du da für mich was findest, das wäre toll.
… On 07.07.2023, at 12:37, Norbert ***@***.***> wrote:
Hast du es mit den Debug Modus probiert? Kann nächste Woche einen Kollegen fragen, der hat das schon laufen...
—
Reply to this email directly, view it on GitHub <#14610 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABQHMCMHUM5FBT6BHEU5HITXO7RHVANCNFSM5M32BH7Q>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
hast du irgendwo im netz ein paar details zu nodemcu/e450 ?oder ev. configs von dir - natürlich ohne passwords/schlüssel etc.… sonst versuche ich mir selbst was zusammenzusuchen …lgAm 11.07.2023 um 08:44 schrieb curtosvienna ***@***.***>:
hallo, ich verwende hier einen IR-leskopf verbunden mit nodemcu > arduino sketch, landisgyr e450, kann alles auslesen was geboten wird,
....kein tasmota image. daten werden per mqtt in 1-2 sekundentakt übertragen beispiel: {"timestamp":"11.07.2023 08:43:52","+A":14880.919,"-A":121.758,"+R":10.545,"-R":1955.689,"+P":49,"-P":102,"+Q":0,"-Q":180}
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hallo,
Hier findest du alles was du brauchst. Auch wie du den key in der config anpassen musst.
https://github.com/aldadic/esp32-smartmeter-reader
… Am 11.07.2023 um 16:02 schrieb tutenchamun ***@***.***>:
hast du irgendwo im netz ein paar details zu nodemcu/e450 ?oder ev. configs von dir - natürlich ohne passwords/schlüssel etc.… sonst versuche ich mir selbst was zusammenzusuchen …lgAm 11.07.2023 um 08:44 schrieb curtosvienna ***@***.***>:
hallo, ich verwende hier einen IR-leskopf verbunden mit nodemcu > arduino sketch, landisgyr e450, kann alles auslesen was geboten wird,
....kein tasmota image. daten werden per mqtt in 1-2 sekundentakt übertragen beispiel: {"timestamp":"11.07.2023 08:43:52","+A":14880.919,"-A":121.758,"+R":10.545,"-R":1955.689,"+P":49,"-P":102,"+Q":0,"-Q":180}
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Ich habe zwar einen Sagemcom, aber ich hab es mit dem ESP nicht geschafft. Tasmota hat wohl die nötige Decryption dafür nicht. Ich hab es geschafft mit dem code https://github.com/mweimerskirch/smarty_dsmr_proxy.git mit änderungen im decrypt.py:
mit dem AES.MODE_GCM, der hier erwähnt wurde: mweimerskirch/smarty_dsmr_proxy#1 (comment) In Österreich ist bei der Energie Steiermark die Kundenschnittstelle nur der MBUS/RJ11 Stecker, IR geht nicht. Im Burgenland kann man es sich aussuchen, muß es aber angeben beim Antrag, und es gibt einen netten Blog zur EVN: https://www.michaelreitbauer.at/sagemcom-t210-d-auslesen-smart-meter-evn/ Wenn Du die Daten sowieso ins node-red oder wo auch immer hinschickst, kannst du es auch auf der Empfängerseite dekodieren und mit einer SerialReceived Rule die Daten einfach per MQTT weiterleiten - glaub ich zumindest ;-) |
Beta Was this translation helpful? Give feedback.
-
nachdem ich das hier ja nun geschafft habe (siehe mein Antwort oben - [curtosvienna]) lg |
Beta Was this translation helpful? Give feedback.
-
Hallo,
Ich denke die Wiener Netze stellen an diesem Zähler nicht die einzelnen Phasen zum auslesen zur Verfügung.
Ich betreibe hier nur eine mini 800w PV-Anlage und lese u.a. nur das saldierte Ergebnis aus.
Ich denke WN verwendet nach diesem Konzept der Kundenschnittstelle Variante 3 bzw. 4
https://oesterreichsenergie.at/fileadmin/user_upload/Smart_Meter-Plattform/20200201_Konzept_Kundenschnittstelle_SM.pdf
Lg
… Am 15.07.2023 um 14:35 schrieb tutenchamun ***@***.***>:
nachdem ich das hier ja nun geschafft habe (siehe mein Antwort oben - [curtosvienna])
will ich fragen, ob ev die Phasen L1, L2 und L3 auch in den Daten enthalten sind ?
(das image hier stellt ja nur die Summen bereit)
lg
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Hello All, hallo Alle! Ich habe jetzt einen halben Tag herumgeschissen, um den Wienernetze Siemens IM350 mit Tasmota auf Olimex PoE Iso auszulesen.
Die ersten drei Byte sind "020909" Nur genau dann geht es und man muss schon halbwegs Hacker-Energien haben um das alles zu sammeln.
|
Beta Was this translation helpful? Give feedback.
-
Hi. This is my script for 2 smartmeters E450:
D>Bsmlj=0=>sensor53 r>Rsmlj=0>Sif upsecs>22thensmlj|=1endif>M ***@***.***,Spannung ***@***.***,Spannung ***@***.***,Spannung ***@***.***,Strom ***@***.***,Strom ***@***.***,Strom ***@***.***,Leistung ***@***.***,Leistung ***@***.***,Zählerstand ***@***.***,Zählerstand ***@***.***,Spannung ***@***.***,Spannung ***@***.***,Spannung ***@***.***,Strom ***@***.***,Strom ***@***.***,Strom ***@***.***,Leistung ***@***.***,Leistung ***@***.***,Zählerstand +P,kWh,kWh_total_IN,3
***@***.***,Zählerstand -P,kWh,kWh_total_OUT,3#
End of massage
Am Montag, 6. Mai 2024 um 13:10:55 MESZ hat sebastianmadl ***@***.***> Folgendes geschrieben:
Please can you post the Configuration please?
having issues to get it working.
I'm also @ NetzBurgenland with the E450.
Thank you :)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
As of today, I'm pretty sure Tasmota do not support encrypted smart meters.
So you won't be able to use the standard SML feature nor scripting.
However I see some conversations on the web about the existence of a Python proxy.
So if you are about to use an ESP32 you may be able to take advantage of Berry language (available only on Tasmota32) to port the Python code to Tasmota Berry
Still it seems that usage of encryption may be different in different countries