Skip to content

Commit

Permalink
Final bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Poshy163 committed Jul 23, 2024
1 parent 4354159 commit 386d7a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions custom_components/alphaess/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ async def _async_update_data(self):
inverterdata["Instantaneous PPV4"] = await process_value(_pvpowerdetails.get("ppv4"))
# grid power usage details
inverterdata["Instantaneous Grid I/O Total"] = await process_value(_powerdata.get("pgrid"))
inverterdata["Instantaneous Grid I/O L1"] = await process_value(_gridpowerdetails.get("pmeterL1"))
inverterdata["Instantaneous Grid I/O L2"] = await process_value(_gridpowerdetails.get("pmeterL2"))
inverterdata["Instantaneous Grid I/O L3"] = await process_value(_gridpowerdetails.get("pmeterL3"))

inverterdata["Instantaneous Grid I/O L1"] = await process_value(
_gridpowerdetails.get("pmeterL1"))
inverterdata["Instantaneous Grid I/O L2"] = await process_value(
_gridpowerdetails.get("pmeterL2"))
inverterdata["Instantaneous Grid I/O L3"] = await process_value(
_gridpowerdetails.get("pmeterL3"))

self.data.update({invertor["sysSn"]: inverterdata})

Expand Down
2 changes: 1 addition & 1 deletion custom_components/alphaess/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ class AlphaESSNames(str, Enum):
Income = "Total Income"
SelfSufficiency = "Self Sufficiency"
SelfConsumption = "Self Consumption"
emsStatus = "EMS Status"
EmsStatus = "EMS Status"
2 changes: 1 addition & 1 deletion custom_components/alphaess/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
device_class=SensorDeviceClass.POWER_FACTOR,
state_class=None,
), AlphaESSSensorDescription(
key=AlphaESSNames.emsStatus,
key=AlphaESSNames.EmsStatus,
name="EMS Status",
device_class=SensorDeviceClass.ENUM,
state_class=None,
Expand Down

0 comments on commit 386d7a0

Please sign in to comment.