WattLoft

Data

Streaming vs polling: how apps get data from a Tesla

Data leaves a Tesla for a third-party app in one of two ways. One asks, the other listens. They differ in speed, in depth, in cost, and in whether the car gets to sleep.

By the WattLoft team6 min read

The WattLoft web dashboard, with the car’s photo, the battery ring and the Battery, Battery health and Charging cards

Every app that shows you a Tesla’s data gets it from Tesla, through one of two official interfaces. Which one it uses decides how fresh the numbers are, how deep they go, and whether your car is left in peace.

The two are usually called polling and streaming. They are not rivals so much as a floor and a ceiling: polling works on every car, streaming does far more on the cars that support it.

Polling: the app asks

Polling uses Tesla’s Fleet API. The app sends a request, Tesla’s servers pass it to the car, and the car answers with a snapshot: battery, charging, climate, doors, location, software.

Three things follow from that design.

  • It is a snapshot. You see the car as it was at the moment of the request. Whatever happened between two requests is gone. Poll every five minutes and a short drive is a handful of points.
  • Only an awake car answers. A sleeping car has to be woken first, which costs energy, or left alone, which means no data.
  • Every request is counted. Tesla bills developers per request, so an app has a reason to ask no more often than it must.

The second point is where polling earned its bad name. An app that keeps asking can stop the car from ever falling asleep, and a car that never sleeps loses several times as much charge while parked. That story is told in why a parked Tesla loses charge.

Streaming: the car tells

Streaming uses Tesla’s Fleet Telemetry. Here the direction is reversed. The car itself opens a connection to the app’s server and pushes its own signals as they change, at intervals the app has asked for, signal by signal.

The connection is mutually authenticated: the car proves who it is with a certificate, and so does the server. It is set up once per car, and Tesla requires two things before it will do so: the app’s virtual key on the car, and reasonably recent firmware.

Nothing is asked of the car, so nothing wakes it. A sleeping car streams nothing; the moment it wakes for its own reasons, the data flows again by itself.

What each one can see

Streaming is not only faster. It carries signals that a polled snapshot does not contain at all, most of them from inside the battery.

PollingStreaming
FreshnessOne snapshot per requestAs values change, down to once a second
Speed while drivingAt each pollEvery second
Pack voltage and currentNoYes, every second
The battery’s own energy gauge (kWh)NoYes
Cell brick voltages, module temperatures, isolationNoYes
Each motor’s currentNoYes
Accelerator and brakeNoYes
Vehicle configuration and optionsYesNo
Needs the virtual keyNoYes

In WattLoft the stream is set up like this: speed, pack voltage and current, each motor’s current, the accelerator and the brake arrive every second. Location and gear come every five seconds, state of charge every ten, most charging, climate, window and temperature fields every 30 to 60 seconds. Slow things, such as tyre pressures, isolation resistance, firmware and lifetime counters, come every five to ten minutes. Signals are also sent on change, so a value that does not move costs nothing.

Why the depth matters

The extra signals are not trivia. Several of the numbers owners care about most can only be measured, rather than estimated, from the stream.

  • Real power. Pack voltage times pack current is the power actually leaving or entering the battery. With the motor currents beside it you get a per-motor split. See reading your Tesla’s power.
  • Battery capacity. Energy remaining divided by state of charge is the pack’s own usable capacity, which is the cleanest way to check battery health.
  • Charging losses. The energy gauge before and after a session shows what the pack really gained, against what the wall delivered. That is charger efficiency, per charge.
  • Drain while asleep. The gauge just before sleep and just after waking gives the loss across the sleep, without waking the car to find out.
  • The pack from the inside. Brick voltages, module temperatures and isolation resistance are what cell imbalance and pack health are read from.

A polled car still gets a full history of drives, charges, costs and alerts. It just gets them at a coarser grain, and with estimates where a streaming car has measurements.

How the two fit together

A good app uses both, and lets each cover for the other. This is how WattLoft does it.

The heartbeat. A cheap vehicle-list call carries each car’s state (online, asleep or offline) and wakes nothing.

Polling only while awake. Vehicle data is fetched only when a car is already online: every five minutes by default, down to every 15 seconds while it is driving. Nothing ever wakes a car to read it. Waking is always your own button press, as why Teslas sleep explains.

The stream takes over. While a car’s stream has delivered data in the last two minutes, its regular polls stand down. Once an hour a safety poll still reads the few things the stream does not carry, such as the vehicle configuration.

And back again. When the stream goes quiet, normal polling resumes by itself.

The badge on the dashboard tells you which pipe a car is on:

  • Live telemetry means the car is streaming right now.
  • Streaming · asleep means streaming is set up, and the car is asleep and sending nothing.
  • Periodic updates means the car is polled.
  • Live feed delayed means streaming is set up but nothing current has arrived for a couple of minutes, so the awake car is being read through the API until the stream returns.

The Streaming vs polling chapter of the manual has the full detail.

Moving a car from polling to streaming

If your car says Periodic updates, the usual reason is that the virtual key has not been paired. Pair it from the Tesla app, press Check again, and WattLoft switches streaming on for that car by itself. The steps are in how to add a virtual key.

A car on old firmware may have to wait for an update. Until then, polling keeps the history going.

Frequently asked questions

What is Tesla Fleet Telemetry?

Fleet Telemetry is Tesla’s official streaming interface for third-party apps. Instead of the app asking for data, the car opens a secure connection to the app’s server and pushes its own readings as they change.

Does streaming keep a Tesla awake?

No. The stream does not ask the car for anything, so it does not wake it. A sleeping car sends nothing, and the data resumes when the car wakes for its own reasons.

Is polling bad for the battery?

Not by itself. Polling only causes drain when an app wakes the car to read it, or asks so often that the car cannot fall asleep. An app that reads a car only while it is already awake does not add to the drain.

Why does my car show Periodic updates instead of Live telemetry?

The car is being polled rather than streaming. Streaming needs the app’s virtual key on the car and recent firmware; once the key is paired, WattLoft turns streaming on by itself.