Skip to content

Commit

Permalink
Partially reverted b2a9ac5 - missing last_reset
Browse files Browse the repository at this point in the history
As last_reset is missing from solax daily_totals in ha-core integration,
b2a9ac5 needed to be partially reversed as it makes consumed and fed in
daily totals unusable.

 - reverted consumed and feed in daily total to Total class
  • Loading branch information
darmach committed Dec 6, 2024
1 parent 153484f commit 0115ccd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions solax/inverters/x3_hybrid_g4.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ def response_decoder(cls):
"PV Energy total": (pack_u16(80, 81), Total(Units.KWH), div10),
"EPS Energy total": (pack_u16(83, 84), Total(Units.KWH), div10),
"EPS Energy today": (85, DailyTotal(Units.KWH), div10),
"Feed-in Energy today": (pack_u16(90, 91), DailyTotal(Units.KWH), div100),
"Consumed Energy today": (pack_u16(92, 93), DailyTotal(Units.KWH), div100),
#TODO: Partially reverting b2a9ac5 until last_reset is fixed in
# HA core - closed PR https://github.com/home-assistant/core/pull/114743
"Feed-in Energy today": (pack_u16(90, 91), Total(Units.KWH), div100),
"Consumed Energy today": (pack_u16(92, 93), Total(Units.KWH), div100),
"Feed-in Energy total": (pack_u16(86, 87), Total(Units.KWH), div100),
"Consumed Energy total": (pack_u16(88, 89), Total(Units.KWH), div100),
"Battery Remaining Capacity": (103, Units.PERCENT),
Expand Down

0 comments on commit 0115ccd

Please sign in to comment.