Skip to content

Commit

Permalink
Improved logging of dc12curr and dc2curr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelprete committed Feb 6, 2024
1 parent 2b05f10 commit e56f71e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions custom_components/abb_powerone_pvi_sunspec/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,7 @@ def read_sunspec_modbus_model_160(self):
dc1power = self.calculate_value(dc1power, dcwsf)
self.data["dc1power"] = round(dc1power, abs(dcwsf))
_LOGGER.debug(
"(read_rt_160) Raw dc1curr: %d - Rounded dc1curr %d",
dc1curr,
self.data["dc1curr"],
f"(read_rt_160) dc1curr: {dc1curr} Round: {self.data["dc1curr"]} SF: {dcasf}"
)
_LOGGER.debug("(read_rt_160) dc1volt %d", self.data["dc1volt"])
_LOGGER.debug("(read_rt_160) dc1power %d", self.data["dc1power"])
Expand All @@ -634,12 +632,10 @@ def read_sunspec_modbus_model_160(self):
dc2power = self.calculate_value(dc2power, dcwsf)
self.data["dc2power"] = round(dc2power, abs(dcwsf))
_LOGGER.debug(
"(read_rt_160) Raw dc2curr: %d - Rounded dc2curr %d",
dc2curr,
self.data["dc2curr"],
f"(read_rt_160) dc2curr: {dc2curr} Round: {self.data["dc2curr"]} SF: {dcasf}"
)
_LOGGER.debug("(read_rt_160) dc2volt %d", self.data["dc2volt"])
_LOGGER.debug("(read_rt_160) dc2power %d", self.data["dc2power"])
_LOGGER.debug("(read_rt_160) dc2volt %s", self.data["dc2volt"])
_LOGGER.debug("(read_rt_160) dc2power %s", self.data["dc2power"])

_LOGGER.debug("(read_rt_160) Completed")
return True

0 comments on commit e56f71e

Please sign in to comment.