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

Partially reverted b2a9ac5 - missing last_reset #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

darmach
Copy link
Contributor

@darmach darmach commented Dec 6, 2024

Hi @squishykid I'm afraid I need to partially revert that recent change...

As last_reset is missing from solax daily_totals in ha-core integration, b2a9ac5 needed to be partially reversed as it makes consumed and fed in daily totals unusable.

  • reverted consumed and feed in daily total to Total class

I still think that these should be DailyTotal [1], however right now, as DailyTotal they end up being simple measurement without last_reset set - and this makes them unusable in energy dashboard, even breaking it completely - to the point when user is no longer able to reconfigure it to remove them.

This should be fixed by home-assistant/core#114743 which was closed for now by @frenck as it got stale...

Fix for the previously mentioned energy dashboard issue is to set their state_class in HA developer tools back to total_increasing and quickly enter edit mode of energy dashboard to delete them from configuration.

[1] https://developers.home-assistant.io/blog/2021/08/16/state_class_total/ - in this context measuremednt for a daily reset total sensor is no longer valid, and we should switch to total increasing.

As last_reset is missing from solax daily_totals in ha-core integration,
b2a9ac5 needed to be partially reversed as it makes consumed and fed in
daily totals unusable.

 - reverted consumed and feed in daily total to Total class
@darmach
Copy link
Contributor Author

darmach commented Dec 6, 2024

On top of that, I think we should move all those Daily reset (resulting in "broken" measurement without last_reset) to total_increasing for all those daily reset sensors, as measurement in this context seem to be deprecated:
https://developers.home-assistant.io/blog/2021/08/16/state_class_total/

I can do the legwork @squishykid , but I'd appreciate having some discussion with people knowing the environment better :)

@darmach darmach force-pushed the partial-revert-x3-hybrid-g4 branch from 3369e89 to 2cccfca Compare December 6, 2024 15:53
@darmach
Copy link
Contributor Author

darmach commented Dec 12, 2024

Could you take a look on this revert @squishykid ?

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.

1 participant