Skip to content

What is polling switch? #90

Answered by alandtse
k2xl asked this question in Q&A
Oct 26, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

When polling switch is enabled, the car will be polled based on the scan interval. The default is 660 seconds which is the same as the sleep interval but it depends on the car state.

  • Car is driving - 60 seconds
  • Car has switched to park - Greater of sleep interval or scan interval - This will allow a parked car to sleep. This state will be skippedif the car is charging, sentry mode is on, or the climate system is on.
  • All other times - Scan interval

If you turn off the switch, it will stop polling of the car entirely. You may want this if you're parked at an airport and you don't want the heuristics at all.

https://github.com/zabuldon/teslajsonpy/blob/dev/teslajsonpy/controller.py#L725-L778

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by alandtse
Comment options

You must be logged in to vote
1 reply
@JevVan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #89 on October 27, 2021 04:05.