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.
Requests it makes on its own 8
- GET
/YOUR_VIN/stateThe car’s charge, climate, doors, tires and software, as Tessie last heard them.
Tesla, ChargingEvery five minutes
- GET
/YOUR_VIN/states?from={date.hours_ago_24_unix} &to={date.now_unix} &interval=900 The last 24 hours of battery, every 15 minutes while the car was awake.
TeslaEvery 15 minutes
- GET
/YOUR_VIN/state?use_cache=true The same report, read with the day’s battery for the charge limit and the miles in each percent.
TeslaEvery 15 minutes
- GET
/YOUR_VIN/firmware_alertsAlerts from the car.
TeslaEvery hour
- GET
/YOUR_VIN/charges?limit=10 Recent charges, with energy and cost.
ChargingEvery 30 minutes
- GET
/YOUR_VIN/charges?from={period.start_unix} &to={period.end_unix} Every charge in the 30 days, 90 days or year you pick.
Charging sessionsEvery hour
- GET
/YOUR_VIN/consumption_since_chargeWhat the car has used since its last charge.
ChargingEvery 30 minutes
- GET
/YOUR_VIN/drivesThe drives in the week, month or year you pick (
from,toandlimit=500in the query).TripsEvery 30 minutes
Requests it makes when you act 21
- POST
/YOUR_VIN/command/set_charge_limit?percent={choice} Sets the limit: 70, 80, 90 or 100%.
TeslaWhen you pick a charge limit
- POST
/YOUR_VIN/command/set_charging_amps?amps={choice} Sets the current the car asks for: 16 to 48 A.
TeslaWhen you pick a current
- POST
/YOUR_VIN/command/start_chargingStarts a charge while plugged in.
Tesla, ChargingWhen you press Start charging
- POST
/YOUR_VIN/command/stop_chargingStops the charge.
Tesla, ChargingWhen you press Stop charging
- POST
/YOUR_VIN/command/set_cabin_overheat_protection?on=true &fan_only=false Turns on cabin overheat protection, with air conditioning.
TeslaWhen you press Turn on heat protection
- POST
/YOUR_VIN/command/set_cabin_overheat_protection?on=false Turns it off.
TeslaWhen you press Turn off heat protection
- POST
/YOUR_VIN/command/enable_sentryTurns on Sentry Mode.
TeslaWhen you press Turn on Sentry
- POST
/YOUR_VIN/command/disable_sentryTurns it off.
TeslaWhen you press Turn off Sentry
- POST
/YOUR_VIN/command/lockLocks the car. The button shows only while it’s unlocked.
TeslaWhen you press Lock
- POST
/YOUR_VIN/command/start_climateStarts climate.
TeslaWhen you press Start climate
- POST
/YOUR_VIN/command/stop_climateStops climate.
TeslaWhen you press Stop climate
- POST
/YOUR_VIN/command/start_max_defrostStarts defrost.
TeslaWhen you press Start defrost
- POST
/YOUR_VIN/command/stop_max_defrostStops defrost.
TeslaWhen you press Stop defrost
- POST
/YOUR_VIN/command/start_steering_wheel_heaterTurns on the steering wheel heater.
TeslaWhen you press Start wheel heat
- POST
/YOUR_VIN/command/stop_steering_wheel_heaterTurns it off.
TeslaWhen you press Stop wheel heat
- POST
/YOUR_VIN/command/set_temperatures?temperature={choice} Sets the cabin temperature, 64 to 76°F. Tessie takes Celsius, so each choice sends its Celsius value.
TeslaWhen you pick a temperature
- POST
/YOUR_VIN/command/set_seat_heat?seat=front_left &level=3 Turns the driver’s seat heat to high.
TeslaWhen you press Start driver heat
- POST
/YOUR_VIN/command/set_seat_heat?seat=front_left &level=0 Turns it off.
TeslaWhen you press Stop driver heat
- POST
/YOUR_VIN/command/set_seat_heat?seat=front_right &level=3 Turns the passenger’s seat heat to high.
TeslaWhen you press Start passenger heat
- POST
/YOUR_VIN/command/set_seat_heat?seat=front_right &level=0 Turns it off.
TeslaWhen you press Stop passenger heat
- POST
/YOUR_VIN/command/close_charge_portCloses the port while nothing’s plugged in.
ChargingWhen you press Close charge port
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 explains each part of a page.
Set it up
- Make a Tessie token. In Tessie’s developer settings, create an access token. Never paste it into an agent chat.
- Add the pages. Paste the prompt into your agent, or download the four pages, replace
YOUR_VINwith your car’s VIN everywhere in each, and run/Applications/Legato.app/Contents/Helpers/legato set tesla tesla.json, then the same fortesla-charging,tesla-charging-sessionsandtesla-trips. Keep those page IDs: the overview opens the others by them. Don’t replace an existing page without reading it first. - Save the token in Legato’s Settings → Secrets under the name
tessie, or link it from 1Password. From a shell, the app reads it from standard input, so it stays out of your history:
/Applications/Legato.app/Contents/MacOS/Legato secret set tessieThe 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
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
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.