mweimerskirch / smarty_dsmr_proxy

This project is abandoned. I recommend using https://www.zuidwijk.com/product/slimmelezer-plus/
MIT License
19 stars 13 forks source link

add parsing via dsmr_parser, add MQTT #7

Closed haklein closed 3 years ago

haklein commented 3 years ago

Are there any plans to add parsing (e.g. via dsmr_parser) and add optional MQTT support? I was wondering if such pull requests would be accepted, or if this would go beyond the scope of the project..

haklein commented 3 years ago

The parser works pretty handy for me, e.g. a pretty print of the telegram:

from dsmr_parser import telegram_specifications
from dsmr_parser.parsers import TelegramParser
from dsmr_parser import obis_references
from dsmr_parser import obis_name_mapping

parser = TelegramParser(telegram_specifications.V5)
telegram = parser.parse(decryption.decode())
for key in telegram:
    print("%s: %s" % (obis_name_mapping.EN[key], telegram[key]))
haklein commented 3 years ago

MQTT works perfect via the paho library, that would only need some command line options and a few lines of code

mweimerskirch commented 3 years ago

No plans from my side because of timing constraints, but I would be interested in using this myself, so I would definitely accept such a PR.