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

Available power not updating #17

Open
frodef opened this issue May 3, 2024 · 1 comment
Open

Available power not updating #17

frodef opened this issue May 3, 2024 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@frodef
Copy link

frodef commented May 3, 2024

I'm observing currently that the "Available power" entity is not updating since the start of the hour. The value remains stuck at the value of target_energy.

I am currently running on solar power, and therfore my "Energy used this hour" entity remains at zero, and has not been updated since the start of the hour. I am guessing this is why "Available power" is not updating: It is currently only updated when "Energy used this hour" is updated?

If so, I would suggest adding an update every minute or so, regardless of whether "Energy used this hour" is updated.

@epaulsen
Copy link
Owner

epaulsen commented Jul 5, 2024

That is correct. This integration listens for whenever your mains power sensor changes it's value, and then re-calculates all sensors that this integration exposes.

Ideally this should be fixed, however this is a rather major undertaking, which I don't have time to do myself.
As I don't have solar panels installed, verifying the fix would not be easy either.
Contributions in the form of a pullrequest that fixes this are more than welcome :)

@epaulsen epaulsen added help wanted Extra attention is needed good first issue Good for newcomers labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants