Skip to content

Commit

Permalink
V1.19.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Oct 25, 2024
1 parent b5a81ca commit f818790
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file.
- Minor update to correct formatting issue with bus voltage on PowerZone Sync
- Added new alarm ID for internal controller fault for Evolution / Nexus
- Updated External Temp Sensor add on to support non zero minimum values
- More updates to allow for correct display on PowerZone Sync

## V1.19.03 -2024-04-19
- New add on program genmqttin.py. See wiki and add on page for details
Expand Down
20 changes: 12 additions & 8 deletions genmonlib/generac_powerzone.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def SetupTiles(self):
callbackparameters=(
self.Reg.TOTAL_POWER_KW[REGISTER],
None,
None,
1000, # Divider 1000?
False,
True,
False,
Expand All @@ -820,7 +820,7 @@ def SetupTiles(self):
callbackparameters=(
self.Reg.TOTAL_POWER_KW[REGISTER],
None,
None,
1000, # Divider 1000?
False,
True,
False,
Expand Down Expand Up @@ -2113,7 +2113,8 @@ def DisplayStatus(self, DictOut=False, JSONNum=False):
{
"Current Phase A": self.ValueOut(
self.GetParameter(
self.Reg.GEN_PHASE_A_CURRENT[REGISTER], ReturnInt=True
self.Reg.GEN_PHASE_A_CURRENT[REGISTER], ReturnFloat=True,
Divider=10.0,
),
"A",
JSONNum,
Expand All @@ -2124,7 +2125,8 @@ def DisplayStatus(self, DictOut=False, JSONNum=False):
{
"Current Phase B": self.ValueOut(
self.GetParameter(
self.Reg.GEN_PHASE_B_CURRENT[REGISTER], ReturnInt=True
self.Reg.GEN_PHASE_B_CURRENT[REGISTER], ReturnFloat=True,
Divider=10.0,
),
"A",
JSONNum,
Expand All @@ -2135,7 +2137,8 @@ def DisplayStatus(self, DictOut=False, JSONNum=False):
{
"Current Phase C": self.ValueOut(
self.GetParameter(
self.Reg.GEN_PHASE_C_CURRENT[REGISTER], ReturnInt=True
self.Reg.GEN_PHASE_C_CURRENT[REGISTER], ReturnFloat=True,
Divider=10.0,
),
"A",
JSONNum,
Expand All @@ -2146,7 +2149,8 @@ def DisplayStatus(self, DictOut=False, JSONNum=False):
{
"Average Current": self.ValueOut(
self.GetParameter(
self.Reg.GEN_AVERAGE_CURRENT[REGISTER], ReturnInt=True
self.Reg.GEN_AVERAGE_CURRENT[REGISTER], ReturnFloat=True,
Divider=10.0,
),
"A",
JSONNum,
Expand Down Expand Up @@ -3080,11 +3084,11 @@ def GetPowerOutput(self, ReturnFloat=False):
return self.GetPowerOutputAlt(ReturnFloat=ReturnFloat)
if ReturnFloat:
return self.GetParameter(
self.Reg.TOTAL_POWER_KW[REGISTER], ReturnFloat=True
self.Reg.TOTAL_POWER_KW[REGISTER], ReturnFloat=True, Divider = 1000
)
else:
return self.GetParameter(
self.Reg.TOTAL_POWER_KW[REGISTER], "kW", ReturnFloat=False
self.Reg.TOTAL_POWER_KW[REGISTER], "kW", ReturnFloat=False, Divider = 1000
)

# ------------ PowerZone:GetPowerOutputAlt ----------------------------------
Expand Down

0 comments on commit f818790

Please sign in to comment.