Add support for Home Assistant Energy integration
See original GitHub issueTo support the new Home Assistant Energy integration and history statistics, huawei_solar should:
- Include a
state_class
ofmeasurement
for the main sensor - Define a seperate sensor for daily_yield, which has a
last_reset
attribute to ensure it’s tracked properly https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:29 (6 by maintainers)
Top Results From Across the Web
Energy Management in Home Assistant
The energy management feature in Home Assistant is created with existing Home Assistant building blocks: Lovelace & Data storage. This means ...
Read more >Understanding Home Energy Management - Home Assistant
Home Assistant allows you to get on top of your energy use with its home energy management feature. Gain new insights, optimize your...
Read more >Integrating your electricity grid - Home Assistant
Learn how to add information about your electricity grid to Home Assistant home energy management.
Read more >Frequently Asked Questions about home energy management
Home Energy Management is a vast topic and not everything might be clear. ... If you have, you will need to add the...
Read more >Utility Meter - Home Assistant
The Utility Meter integration provides functionality to track consumptions of various utilities (e.g., energy, gas, water, heating). From a user perspective ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Doesn’t look to complicated, I’ll take a look at it.
FYI: I’ve created a new integration which exposes all (interesting) fields as separate sensors: https://github.com/wlcrs/huawei_solar . I’ve tried to get all the settings (device_class, state_class, unit_of_measurement) right for each of the sensors that I expose for the moment.
This integration also uses the new config flow, which makes it easy to configure.
@Emilv2 : as I started this integration from scratch, and it heavily impacts how you must use the integration, I think that it’s best to let both integrations exist next to each other?