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

Feature request: Make the on-error value persistent #263

Open
g1za opened this issue Oct 2, 2023 · 0 comments
Open

Feature request: Make the on-error value persistent #263

g1za opened this issue Oct 2, 2023 · 0 comments

Comments

@g1za
Copy link

g1za commented Oct 2, 2023

Is your feature request related to a problem? Please describe.
In case of a scraping error the 'last' value is retained, but only until a reboot.
At that point the sensor value becomes "unavailable" and any attributes are not available as well.
This situation persists until the scraping is successful.

Describe the solution you'd like
On error, it would be nice to make 'last' value persistent to prevent to lose it in case of a system reboot.
Attributes as well if possible.

Describe alternatives you've considered
A workaround is to manually create a template sensor that receives the value from the scarping sensor and updates it only if the state is not "unavailable".

@g1za g1za changed the title Make the on-error value persistent Feature request: Make the on-error value persistent Oct 3, 2023
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

No branches or pull requests

1 participant