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

Set entities to unavailable when data fetching fails repeatedly #360

Open
weltenwort opened this issue Jan 24, 2024 · 2 comments
Open

Set entities to unavailable when data fetching fails repeatedly #360

weltenwort opened this issue Jan 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@weltenwort
Copy link
Owner

📓 Summary

Currently the entities will stay available once the coordinator has fetched the data successfully at least once. That means there's no way to tell if there's a persistent connection problem and the value is out of date. The coordinator and entity could keep track of the last successful fetch time and become "unavailable" when it failed repeatedly.

✔️ Acceptance criteria

  • The entities become "unavailable" when fetching has failed multiple times in a row.
@weltenwort weltenwort added the enhancement New feature or request label Jan 24, 2024
@3xo
Copy link

3xo commented Feb 4, 2024

Also related to #228
The option to choose whether to treat an unreachable device as an error or not would be helpful as well.

@Pythonaire
Copy link

One word to "data fetching fails". I using a python script to read data continuously in 10 minutes interval from the inverter unit (on local network).
For testing purpose i configured the RCT Power Portal (cloud), that reads along the same TCP 8899 the data too. Then i'm facing massive data read failures on my local script. Only the deletion of the Power Portal account leds again to an error-free execution of the local script. However - The Power Portal and a local script don't work in parallel. I know, that's not the problem here, but can help. Maybe the TCP Stack on the inverter unit is limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants