marcschh
(Marc)
June 10, 2023, 6:08am
22
Cool. great. But how can I add this to the energy-dashboard? (I know, via code-editing maybe) but if so what about a pull request to HA adding the autarky to the energy dashboard?
I saw this:
home-assistant:dev
← TillFleisch:self-sufficiency-gauge-card
opened 07:05PM - 04 Mar 23 UTC
<!--
You are amazing! Thanks for contributing to our project!
Please, DO N… OT DELETE ANY TEXT from this template! (unless instructed).
-->
## Proposed change
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If it fixes a bug
or resolves a feature request, be sure to link to that issue or discussion
in the additional information section.
-->
Adds a simple self-sufficiency/autarkie gauge card to the energy dashboard.
This feature has been requested [here](https://community.home-assistant.io/t/energy-dashboard-add-calculate-self-sufficiency-autarkie-of-the-photovoltaik-system/364535) and [here](https://community.home-assistant.io/t/add-energy-self-sufficiency-level-to-energy-dashboard-solar-consumption-vs-total-consumption/467465).
I think this is a nice addition to the "Self-consumed solar energy" card.
This is pretty much just a copy of one of the other gauge cards within the energy dashboard.
The self-sustainability is determined by:
1- totalFromGrid/totalHomeConsumption
## Type of change
<!--
What type of change does your PR introduce to the Home Assistant frontend?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (thank you!)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Example configuration
<!--
Supplying a configuration snippet, makes it easier for a maintainer to test
your PR.
-->
```yaml
```
## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->
- This PR fixes or closes issue: close https://github.com/home-assistant/core/issues/80172
- This PR is related to issue or discussion:
- Link to documentation pull request: https://github.com/home-assistant/home-assistant.io/pull/26644
## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->
- [x] The code change is tested and works locally.
- [x] There is no commented out code in this PR.
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
<!--
Thank you for contributing <3
-->
[docs-repository]: https://github.com/home-assistant/home-assistant.io
so it might get merged very soon