Apollon77 / ioBroker.smartmeter

ioBroker-Adapter to read out Smart-Meter using protocols like SML, D0 and such

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Support for StromLog from meinzaehler.com

mischl opened this issue · comments

I am using the smartmeter reader "StromLog" from a German provider at meinzaehler.com. So far I failed to integrate this neat kit into my IOBroker environment.

The StromLog is a small device connected to the IR interface of smartmeters and is accessible via WWLAN in your local network. It can be accessed via its local IP address
http://aaa.bbb.ccc.ddd/currentData or
http://aaa.bbb.ccc.ddd/allData

and returns a JSON string in the form of:

{"timestamp":1667321718,"meterData":{"consumption":{"value":12,"unit":"W"},"FromGridSum":{"value":73360918,"unit":"dWh"},"FromGridA":{"value":3201608,"unit":"dWh"},"FromGridB":{"value":4134483,"unit":"dWh"},"FeedIn":{"value":0,"unit":"dWh"}},"electricsData":{"voltageL1":{"value":0,"unit":"dV"},"voltageL2":{"value":0,"unit":"dV"},"voltageL3":{"value":0,"unit":"dV"},"currentL1":{"value":0,"unit":"cI"},"currentL2":{"value":0,"unit":"cI"},"currentL3":{"value":0,"unit":"cI"},"powerL1":{"value":0,"unit":"cW"},"powerL2":{"value":0,"unit":"cW"},"powerL3":{"value":1213,"unit":"cW"},"freq":{"value":0,"unit":"dHz"}}}

or

{"userid":123455,"meter":{"localip":"192.XXX.YYY.ZZZ","metername":"Strom_Links","manufracturer":"EBZ5DD3BZ10DTA_107","meterid":"XXXXXXXXXXXXX"},"currentData":{"timestamp":1667322325,"meterData":{"consumption":{"value":12,"unit":"W"},"FromGridSum":{"value":73360939,"unit":"dWh"},"FromGridA":{"value":3201608,"unit":"dWh"},"FromGridB":{"value":4134485,"unit":"dWh"},"FeedIn":{"value":0,"unit":"dWh"}},"electricsData":{"voltageL1":{"value":0,"unit":"dV"},"voltageL2":{"value":0,"unit":"dV"},"voltageL3":{"value":0,"unit":"dV"},"currentL1":{"value":0,"unit":"cI"},"currentL2":{"value":0,"unit":"cI"},"currentL3":{"value":0,"unit":"cI"},"powerL1":{"value":0,"unit":"cW"},"powerL2":{"value":0,"unit":"cW"},"powerL3":{"value":1234,"unit":"cW"},"freq":{"value":0,"unit":"dHz"}}}}

While there is some help on integration the solution into Homeassistant (https://infozaehler.de/dtztecdiscr.html), I haven't found a way to integrate it into IOBroker so far.

I would love to see support for StromLog in the Smartmeter Adapter if you find the time to integrate it.

My ideal solution would be the possibility to select "JSON-Format for StromLog" as Data protocol in your Adapter (just like "JSON-Format for EFR" already available) and be able to use the received values in IOBroker.

As discussed: If you get the raw OBIS data it is easy to add. Other non-pbis conform formats need some time from me