# Tesla via Tessie in your Mac’s menu bar

Legato shows your Tesla in the Mac’s menu bar: whether it’s locked and awake, the controls you’d reach for in the app, the last 24 hours of battery against the charge limit, and the car’s charging, temperatures, tires, software and odometer. Two more pages open from it: charging, with recent charges and what they cost, and trips by week, month or year. Charging opens every session over 30 days, 90 days or a year. Legato reads Tessie’s API from your Mac, with your Tessie token kept in the Keychain or 1Password.

## What you’ll see

- **Tesla:** a Status section with the car’s state (locked or not, anything open, asleep or awake, and when it last reported), which opens Charging and Trips. Controls has menus for the charge limit and the charging current, Start or Stop charging while plugged in, then cabin overheat protection, Sentry, and Lock while the car is unlocked. Climate has climate, defrost and steering wheel heat, a menu for the cabin temperature, then the front seats’ heat. Under them, the battery over the last 24 hours, in percent and in miles, with the charge limit as a line, and a Car card: charging, tires, temperatures inside and out, software and odometer. A software update shows while one is waiting, and recent alerts close the page.
- **Charging:** the charge now (state, battery, power, current, energy added and the charge port), with Start and Stop charging and Close charge port. The schedule window while a charge is planned, what the car has used since its last charge, and recent charges with each one’s energy and cost. Its Explore list opens Charging sessions.
- **Charging sessions:** the energy added and its cost over 30 days, 90 days or a year, each session’s energy on a chart, then the sessions, the miles added, the average session, the cost per kWh and how many were fast charges, and each session with its energy, cost and battery range.
- **Trips:** distance, drives, efficiency and the share on FSD for the week, month or year you pick, and the drives themselves.

### Status

- Watches the locks, doors, windows, trunks, tires and battery.
- Orange when the car is unlocked or something is open, a tire is low or the battery is under 20%.
- Red when a tire is very low.
- Notifies you when it turns orange or red.

## How it connects

Every request goes from your Mac to `api.tessie.com` with your Tessie token in a Bearer header. Nothing passes through Legato’s servers. Reads ask for the state Tessie already has, so they don’t wake the car.

| Request | Page | When | What it does |
| --- | --- | --- | --- |
| `GET /YOUR_VIN/state` | Tesla, Charging | Every five minutes | The car’s charge, climate, doors, tires and software, as Tessie last heard them. |
| `GET /YOUR_VIN/states?from={date.hours_ago_24_unix}&to={date.now_unix}&interval=900` | Tesla | Every 15 minutes | The last 24 hours of battery, every 15 minutes while the car was awake. |
| `GET /YOUR_VIN/state?use_cache=true` | Tesla | Every 15 minutes | The same report, read with the day’s battery for the charge limit and the miles in each percent. |
| `GET /YOUR_VIN/firmware_alerts` | Tesla | Every hour | Alerts from the car. |
| `GET /YOUR_VIN/charges?limit=10` | Charging | Every 30 minutes | Recent charges, with energy and cost. |
| `GET /YOUR_VIN/charges?from={period.start_unix}&to={period.end_unix}` | Charging sessions | Every hour | Every charge in the 30 days, 90 days or year you pick. |
| `GET /YOUR_VIN/consumption_since_charge` | Charging | Every 30 minutes | What the car has used since its last charge. |
| `GET /YOUR_VIN/drives` | Trips | Every 30 minutes | The drives in the week, month or year you pick (`from`, `to` and `limit=500` in the query). |
| `POST /YOUR_VIN/command/set_charge_limit?percent={choice}` | Tesla | When you pick a charge limit | Sets the limit: 70, 80, 90 or 100%. |
| `POST /YOUR_VIN/command/set_charging_amps?amps={choice}` | Tesla | When you pick a current | Sets the current the car asks for: 16 to 48 A. |
| `POST /YOUR_VIN/command/start_charging` | Tesla, Charging | When you press Start charging | Starts a charge while plugged in. |
| `POST /YOUR_VIN/command/stop_charging` | Tesla, Charging | When you press Stop charging | Stops the charge. |
| `POST /YOUR_VIN/command/set_cabin_overheat_protection?on=true&fan_only=false` | Tesla | When you press Turn on heat protection | Turns on cabin overheat protection, with air conditioning. |
| `POST /YOUR_VIN/command/set_cabin_overheat_protection?on=false` | Tesla | When you press Turn off heat protection | Turns it off. |
| `POST /YOUR_VIN/command/enable_sentry` | Tesla | When you press Turn on Sentry | Turns on Sentry Mode. |
| `POST /YOUR_VIN/command/disable_sentry` | Tesla | When you press Turn off Sentry | Turns it off. |
| `POST /YOUR_VIN/command/lock` | Tesla | When you press Lock | Locks the car. The button shows only while it’s unlocked. |
| `POST /YOUR_VIN/command/start_climate` | Tesla | When you press Start climate | Starts climate. |
| `POST /YOUR_VIN/command/stop_climate` | Tesla | When you press Stop climate | Stops climate. |
| `POST /YOUR_VIN/command/start_max_defrost` | Tesla | When you press Start defrost | Starts defrost. |
| `POST /YOUR_VIN/command/stop_max_defrost` | Tesla | When you press Stop defrost | Stops defrost. |
| `POST /YOUR_VIN/command/start_steering_wheel_heater` | Tesla | When you press Start wheel heat | Turns on the steering wheel heater. |
| `POST /YOUR_VIN/command/stop_steering_wheel_heater` | Tesla | When you press Stop wheel heat | Turns it off. |
| `POST /YOUR_VIN/command/set_temperatures?temperature={choice}` | Tesla | When you pick a temperature | Sets the cabin temperature, 64 to 76°F. Tessie takes Celsius, so each choice sends its Celsius value. |
| `POST /YOUR_VIN/command/set_seat_heat?seat=front_left&level=3` | Tesla | When you press Start driver heat | Turns the driver’s seat heat to high. |
| `POST /YOUR_VIN/command/set_seat_heat?seat=front_left&level=0` | Tesla | When you press Stop driver heat | Turns it off. |
| `POST /YOUR_VIN/command/set_seat_heat?seat=front_right&level=3` | Tesla | When you press Start passenger heat | Turns the passenger’s seat heat to high. |
| `POST /YOUR_VIN/command/set_seat_heat?seat=front_right&level=0` | Tesla | When you press Stop passenger heat | Turns it off. |
| `POST /YOUR_VIN/command/close_charge_port` | Charging | When you press Close charge port | Closes the port while nothing’s plugged in. |

The buttons and menus act on the real car, and each shows only when it would change something. Remove a card’s `actions` for a page that only shows. There’s no Unlock, trunk or Open charge port button: Spotlight runs a page’s buttons without asking. [Sources and buttons](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make a Tessie token.** In [Tessie’s developer settings](https://developer.tessie.com/reference/authentication), create an access token. Never paste it into an agent chat.
2. **Add the pages.** Paste the prompt into your agent, or download the four pages, replace `YOUR_VIN` with your car’s VIN everywhere in each, and run `/Applications/Legato.app/Contents/Helpers/legato set tesla tesla.json`, then the same for `tesla-charging`, `tesla-charging-sessions` and `tesla-trips`. Keep those page IDs: the overview opens the others by them. Don’t replace an existing page without reading it first.
3. **Save the token** in Legato’s Settings → Secrets under the name `tessie`, or link it from [1Password](https://legatobar.com/docs/1password.md). From a shell, the app reads it from standard input, so it stays out of your history:

```bash
/Applications/Legato.app/Contents/MacOS/Legato secret set tessie
```

The cards fill within a few minutes while Legato is running. The overview is in the sidebar; Charging and Trips open from it, and Charging sessions from Charging.

### Prompt for your agent

```prompt
Add 4 Legato pages for Tesla via Tessie, starting from https://legatobar.com/examples/tesla.json, https://legatobar.com/examples/tesla-charging.json, https://legatobar.com/examples/tesla-charging-sessions.json, https://legatobar.com/examples/tesla-trips.json. Use the page IDs tesla, tesla-charging, tesla-charging-sessions, tesla-trips if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.

Replace YOUR_VIN in every source and every button’s path on all four pages with the VIN I give you, and keep the page IDs and the secret name. I’ll save the Tessie token as tessie in Settings → Secrets myself. Don’t press any of the car’s buttons or menus to test it.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.
```

### Download the pages

- [Download Tesla (tesla.json)](https://legatobar.com/examples/tesla.json)
- [Download Charging (tesla-charging.json)](https://legatobar.com/examples/tesla-charging.json)
- [Download Charging sessions (tesla-charging-sessions.json)](https://legatobar.com/examples/tesla-charging-sessions.json)
- [Download Trips (tesla-trips.json)](https://legatobar.com/examples/tesla-trips.json)

## Questions

### Do I need a Tessie account as well as a Tesla?

Yes. The car must be in your Tessie account, with API access. A Tesla password or a Tesla Fleet API token isn’t a substitute for the Tessie token.

### Does each refresh wake the car?

No. Every read asks for the state Tessie already has (`use_cache=true`) and none asks the car to wake, so a sleeping car shows when it last reported. The buttons and menus are different: a command wakes the car to carry it out.

### Why does the battery line have gaps?

Tessie records the car only while it’s awake. The line breaks while it sleeps, with a faint dashed line across the gap, and the points sit at the times they were read.

### Where do the charging costs come from?

From Tessie. Set your electricity rates in Tessie for your charging locations, and each charge from then on shows its cost on Charging. Tessie’s API sets a cost one charge at a time, not a rate.

### Can I use kilometres and Celsius?

Yes, but change the calculations as well as the labels. The pages show miles and convert temperatures from Celsius to Fahrenheit and tire pressure from bar to psi. The temperature menu’s choices already send Celsius: change their labels to match.

### Can I show a second car?

Make a second set of pages with unused page IDs, change the `legato://page/` links on the overview to match, and replace the VIN throughout. Keep the same secret name if the Tessie account can see both cars.

### Do I need to keep a browser or script running?

No. Legato fetches the data itself while it’s running. To keep pages current with a script instead, see [Scripts](https://legatobar.com/docs/scripts.md).

*Checked against a real Tesla through Tessie on November 6, 2026: the three pages fill every card from Tessie’s API. Charging sessions was checked the same way on November 7, against 90 days of real charges. None of the buttons or menus were pressed in that check. Illustrations use made-up readings. Tesla is a trademark of Tesla, Inc. Legato is independent and isn’t affiliated with or endorsed by Tesla or Tessie.*
