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

Handle unavailable installation #28

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

philipostli
Copy link
Collaborator

On some occasions the charger is part of a larger grid installation that is controlled by another account. In for instance a Condominium.
Therefore the given installation id on the charger is not available. As a consequence the available current is not available. And the action card "Set available current to" will also fail.

I added a check on pollSlowValues() if the installation is available. If not, removes the capability "Current limit" (available_installation_current). But adds it again if available.

Also added check if this capability exists on the device, on all the methods that uses the /installation/ endpoint.

Found this to be the best solution

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