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

[tesla] Fix account going offline every few seconds #14300

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

kaikreuzer
Copy link
Member

If an account reaches the threshold of failed api calls, it is set to OFFLINE.
Once this happens, it will immediately go to OFFLINE again every time that it becomes back ONLINE.
This causes the vehicle to stay online and thus leads to vampire drain.

This PR resets the counter, so that the Thing stays ONLINE until the threshold is reached again.

This fix might quality as a backport to 3.4.x.

Signed-off-by: Kai Kreuzer kai@openhab.org

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Jan 31, 2023
@kaikreuzer kaikreuzer requested a review from a team January 31, 2023 07:53
@kaikreuzer kaikreuzer requested a review from kgoderis as a code owner January 31, 2023 07:53
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lolodomo
Copy link
Contributor

The CI build failed

@lolodomo lolodomo added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Jan 31, 2023
@kaikreuzer
Copy link
Member Author

@lolodomo CI build failure was unrelated. Retriggering made it succeed.

@lolodomo lolodomo merged commit bfb6091 into openhab:main Jan 31, 2023
@lolodomo lolodomo added this to the 4.0 milestone Jan 31, 2023
@lolodomo
Copy link
Contributor

This fix might quality as a backport to 3.4.x.

@jlaur : can you please cherry-pick in branch 3.4.x?

jlaur pushed a commit that referenced this pull request Jan 31, 2023
Signed-off-by: Kai Kreuzer <kai@openhab.org>
@jlaur jlaur added the patch A PR that has been cherry-picked to a patch release branch label Jan 31, 2023
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
Signed-off-by: Kai Kreuzer <kai@openhab.org>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
Signed-off-by: Kai Kreuzer <kai@openhab.org>
FordPrfkt pushed a commit to FordPrfkt/openhab-addons that referenced this pull request Apr 20, 2023
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants