From c70abf4d0e3fb694360fbf0a463fe33907c070e8 Mon Sep 17 00:00:00 2001 From: okaegi Date: Sat, 2 Mar 2024 13:38:44 +0100 Subject: [PATCH] Dac typ = 02 Bei Dac DA02 wird neu auch die bisherige Leistungsaufnahme in die Berechnung von 0 - 10 V mit einbezogen um Schwingen zu vermeidebb https://forum.openwb.de/viewtopic.php?p=103457#p103457 --- packages/modules/smarthome/nxdacxx/watt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/modules/smarthome/nxdacxx/watt.py b/packages/modules/smarthome/nxdacxx/watt.py index b440f1c72..17809ca98 100644 --- a/packages/modules/smarthome/nxdacxx/watt.py +++ b/packages/modules/smarthome/nxdacxx/watt.py @@ -37,7 +37,7 @@ with open(file_stringcount5, 'w') as f: f.write(str(count5)) modbuswrite = 0 -if dactyp == 3: +if (dactyp == 3) or (dactyp == 1): neupower = uberschuss + aktpoweralt else: neupower = uberschuss