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

feat: add websocket support #57

Merged
merged 40 commits into from
Feb 28, 2020
Merged

feat: add websocket support #57

merged 40 commits into from
Feb 28, 2020

Conversation

alandtse
Copy link
Collaborator

@alandtse alandtse commented Jan 28, 2020

Needs following update to HA to test.

Apparently Tesla only allows one app to consume websockets at a time so may block other apps from gathering location info. This is now enabled as an integration option.

Instead of polling for a set SCAN_INTERVAL, the new algorithm will
determine if the car has recently parked and update normally for the
IDLE_INTERVAL (600). After the idle period is complete, updates are
throttled to the SLEEP_INTERVAL until the car is asleep. There is now a
regular ONLINE_INTERVAL (60) check which does not query the car and
will immediately detect if a car has become awake to resume updates.
@alandtse alandtse merged commit 9a13d89 into zabuldon:master Feb 28, 2020
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.

None yet

1 participant