thowie
22. Juli 2026 um 08:35
123
Das Problem mit der falschen Stapelung vom selbst genutzten PV-Ertrag und dem Netzimport im Energy Dashboard wurde vor einer Stunde gefixt und sollte damit im nÀchsten Release wieder wie gewohnt gestapelt sein
dev â fix-53197
offen 06:21AM - 22 Jul 26 UTC
## Breaking change
## Proposed change
Regression from #52541: `from_⊠grid` and `used_grid` were missing from the explicit
`stackOrder` map in the energy usage graph, so they fell back to
`Object.keys(combinedData).length`. For a grid + solar setup without a configured
battery that fallback collides with `used_solar`, and consumed solar ends up stacked
above grid consumption.
Give `from_grid`/`used_grid` an explicit order so grid consumption stays on top of the
positive stack and self-consumed solar stays at the bottom, independent of how many
datasets are present. Battery setups are unaffected.
## Screenshots
Grid + solar, no battery:
Before:
<img width="796" height="560" alt="image" src="https://github.com/user-attachments/assets/50987297-3e20-4641-8a68-262beb5a15e9" />
After:
<img width="796" height="560" alt="image" src="https://github.com/user-attachments/assets/48f35a07-e959-4c3d-9aeb-620f930d8244" />
## Type of change
- [ ] Dependency upgrade
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (thank you!)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Additional information
- This PR fixes or closes issue: fixes #53197
- This PR is related to issue or discussion:
- Link to documentation pull request:
- Link to developer documentation pull request:
- Link to backend pull request:
## Checklist
- [ ] I understand the code I am submitting and can explain how it works.
- [ ] The code change is tested and works locally.
- [ ] There is no commented out code in this PR.
- [ ] I have followed the [perfect PR recommendations][perfect-pr]
- [ ] Any generated code has been carefully reviewed for correctness and compliance with project standards.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
To help with the load of incoming pull requests:
- [ ] I have reviewed two other [open pull requests][prs] in this repository.
[prs]: https://github.com/home-assistant/frontend/pulls?q=is%3Aopen+is%3Apr+-author%3A%40me+-draft%3Atrue+sort%3Acreated-desc+review%3Anone+-status%3Afailure
[docs-repository]: https://github.com/home-assistant/home-assistant.io
[perfect-pr]: https://developers.home-assistant.io/docs/review-process/#creating-the-perfect-pr