Skip to content

Commit b7edf62

Browse files
authored
Merge pull request #150 from tomquist/use-absolute-powermeter-watts-for-intermediate
Use absolute intermediate power watts
2 parents b6867aa + 30c7cc4 commit b7edf62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HoymilesZeroExport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def GetHoymilesTemperature():
365365
def GetHoymilesActualPower():
366366
try:
367367
try:
368-
Watts = INTERMEDIATE_POWERMETER.GetPowermeterWatts()
368+
Watts = abs(INTERMEDIATE_POWERMETER.GetPowermeterWatts())
369369
logger.info(f"intermediate meter {INTERMEDIATE_POWERMETER.__class__.__name__}: {Watts} Watt")
370370
return Watts
371371
except Exception as e:

0 commit comments

Comments
 (0)