-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Counter sensors are not restored after a restart #10994
Comments
Link from discussion on community forum: https://community.home-assistant.io/t/persistent-counters/33621/9 Regards, Romain. |
I am running Hass.io on version 0.60.0 and the conter does not restore itself when I restart Home Assistant. |
This comment has been minimized.
This comment has been minimized.
Ok, I had some time at the weekend and did install a local dev environment for home assistant. I tried to look through the code but my python is still at the very beginning. |
Still an issue on 0.61.1 |
I noticed that even if you don't set an initial: value, it defaults back to zero. Could we use a template value for initial:? perhaps from an mqtt feed? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This issue is still present on the latest version (v0.70.0). Regards, Romain. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like the issue is in Edit: already found one problem with this solution, Another edit: Disregard this comment, there's a bit more to it. I may file a PR soon. |
Home Assistant release (
hass --version
):0.59.2 / 0.60.0 / 0.61.1 / 0.70.0
Python release (
python3 --version
):3.6.3
Component/platform:
Counter
Description of problem:
After each restart all counters values are lost.
Expected:
Previous counter values are restored.
Problem-relevant
configuration.yaml
entries and steps to reproduce:The text was updated successfully, but these errors were encountered: