Connect your Tesla to Home Assistant, IFTTT and webhooks

Short answer

Make a personal API token in Orbit (Garage › Integrations & API), add it to Home Assistant’s secrets, and read your car with a REST sensor or send commands with a rest_command. For IFTTT or your own server, add a webhook in Orbit for charge_complete, sentry_alarm or sentry_watching. You don’t need a Tesla developer account.

personal API tokens per account
5
requests across your tokens
30 / min
webhook events
3
Tesla developer accounts needed
0

Your options

Home Assistant has its own Tesla integrations. Its Tesla Fleet integration talks to Tesla directly but needs you to register as a Tesla developer and set up your own application. Services like Tessie and Teslemetry have integrations too, each with its own subscription. With Orbit, the token comes from the app you already use for your car, and the app writes the Home Assistant setup for you.

1. Make a token

In Orbit, open Garage › Integrations & API › API tokens and make one. Orbit shows it once and keeps only a hash. A token reaches your cars’ status, refresh and commands, and nothing else: not your account, community or settings. You can keep 5 and revoke any of them.

# secrets.yaml
orbit_token: "Bearer orb_YOUR_TOKEN"

2. Add your car to Home Assistant

Add a sensor for the battery and a command to lock the car. Under Integrations & API › Home Assistant, Orbit writes the full configuration for your car, VIN included.

# configuration.yaml
rest:
  - resource: https://api.driveorbit.app/vehicles/YOUR_VIN
    headers:
      Authorization: !secret orbit_token
    scan_interval: 300
    sensor:
      - name: Tesla battery
        value_template: "{{ value_json.snapshot.battery_level }}"
        unit_of_measurement: "%"
        device_class: battery

rest_command:
  tesla_lock:
    url: https://api.driveorbit.app/vehicles/YOUR_VIN/commands/lock
    method: POST
    headers:
      Authorization: !secret orbit_token

Reading the car’s status returns what Orbit last read, without waking the car, so a 5-minute scan interval costs nothing. A refresh wakes the car and counts toward your plan’s monthly wake-ups (100 on Orbit, 150 on Ultra).

Then use it like any other entity:

# Lock the car every night at 11 PM
automation:
  - alias: Lock the Tesla at night
    trigger:
      - platform: time
        at: "23:00:00"
    action:
      - service: rest_command.tesla_lock

3. Get events in IFTTT or your own server

Under Integrations & API › IFTTT & webhooks, add an https address and pick events: charge_complete, sentry_alarm or sentry_watching. Orbit posts each as JSON when it happens, signed with an HMAC-SHA256 signature you can check. A failed delivery is tried twice more.

  • IFTTT: make an applet whose trigger is Webhooks › Receive a web request, and add its maker.ifttt.com address in Orbit. Value1 is the car, Value2 what happened, Value3 the time.
  • Home Assistant: use a webhook trigger in an automation and paste its address into Orbit. It has to be reachable from the internet over https, for example through Home Assistant Cloud; Orbit doesn’t send to private network addresses.
  • Your own server: check the X-Orbit-Signature header before trusting a delivery.

The developer reference has every endpoint, the payload and a signature check in Node.

Ideas

  • Flash the porch lights when the car finishes charging.
  • Send a message to your family chat when Sentry’s alarm goes off.
  • Show the car’s battery on a wall tablet next to your home battery.
  • Lock the car every night at 11.

For routines that only involve the car, Orbit’s own automations are simpler: no server of your own, and triggers like arriving at a place or the cabin getting hot.

Questions

Do I need a Tesla developer account?

Not with Orbit. You make a personal API token in the app, and Orbit handles Tesla’s Fleet API for you.

Which events can a webhook send?

charge_complete, sentry_alarm and sentry_watching. Sentry watching comes at most once every 10 minutes.

Is there a rate limit?

Your tokens make 30 requests a minute together. Reading a car’s last status doesn’t wake it; a refresh does, and counts toward your plan’s monthly wake-ups.