Add support for Belgian and Smarty meters

This commit is contained in:
Jean-Louis Dupond
2019-12-19 04:19:29 +01:00
parent 3a8b4d2458
commit 3bfb555d0e
3 changed files with 24 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ def create_dsmr_protocol(dsmr_version, telegram_callback, loop=None):
elif dsmr_version == '5':
specification = telegram_specifications.V5
serial_settings = SERIAL_SETTINGS_V5
elif dsmr_version == '5B':
specification = telegram_specifications.BELGIUM_FLUVIUS
serial_settings = SERIAL_SETTINGS_V5
else:
raise NotImplementedError("No telegram parser found for version: %s",
dsmr_version)