From 7000d264192e7c0c35920a66f2310b1363d183b6 Mon Sep 17 00:00:00 2001 From: Gunnar Klauberg <Gunnar@Klauberg.de> Date: Fri, 9 Feb 2024 17:15:55 +0100 Subject: [PATCH] Q3D add CURRENT_ELECTRICITY_DELIVERY to avoid negative CURRENT_ELECTRICITY_USAGE --- dsmr_parser/telegram_specifications.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dsmr_parser/telegram_specifications.py b/dsmr_parser/telegram_specifications.py index 8cbe430..4a08808 100644 --- a/dsmr_parser/telegram_specifications.py +++ b/dsmr_parser/telegram_specifications.py @@ -962,6 +962,11 @@ Q3D = { 'value_parser': CosemParser(ValueParser(Decimal)), 'value_name': 'CURRENT_ELECTRICITY_USAGE' }, + { + 'obis_reference': obis.CURRENT_ELECTRICITY_DELIVERY, + 'value_parser': CosemParser(ValueParser(Decimal)), + 'value_name': 'CURRENT_ELECTRICITY_DELIVERY' + }, { 'obis_reference': obis.Q3D_EQUIPMENT_STATE, 'value_parser': CosemParser(ValueParser(str)),