Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected feed-in and consumed energy source and type for x3-hybrid-g4 #178

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

darmach
Copy link
Contributor

@darmach darmach commented Nov 23, 2024

H3-Hybrid-G4: both feed-in and consumed energy values for Total and DailyTotal were swapped. Both of the above were marked as Total. Daily reset feed-in and consumed energy lack the today postfix used but other sensors.

  • Switched daily and total with each other
  • Marked reset daily as DailyTotal
  • Added today postfix to daily reset feed-in and consumed energy to adhere to the convention.
  • Corrected tests values - daily will usually be lower than total aggregate.

Fixes: home-assistant/core#130742

H3-Hybrid-G4: both feed-in and consumed energy values for `Total` and `DailyTotal` were swapped.
Both of the above were marked as `Total`.

 - Switched daily and total with each other
 - Marked reset daily as `DailyTotal`
 X3 Hybrid G4 inverter: corrected expected values for consumed energy daily and total  as daily was bigger than total - total as aggregate should in general be higher.
Breaking change:
 - added 'today' postfix to daily feed-in and consumed energy to adhere to the convention used for other sensors.

Attempted to correct failing coverage.
@darmach
Copy link
Contributor Author

darmach commented Nov 23, 2024

Hi @squishykid , I finally found a while and had a weekend off so I attempted to fix switched values for some sensors. Would you find a moment to take a look at this PR? It should fix this issue in HA: home-assistant/core#130742

@squishykid
Copy link
Owner

Looks good to me mate! Luckily I also have a weekend off for the first time in a long time 😅

@squishykid squishykid merged commit b2a9ac5 into squishykid:master Nov 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solax daily / total sensors mixed up and incorrectly marked as total_increasing
2 participants