Automations and Logbook, two new utilities in the console

Run vehicle and Powerwall commands on a schedule or when something changes, and keep a logbook of every trip, with nothing running at home.
Automations and Logbook, two new utilities in the console

My favourite telemetry automation has always been opening my garage door automatically, based on my Model 3's distance to home. So I've always believed the best automations are the ones that connect your Tesla products to the rest of your smart home, and that's what Home Assistant, Homey, Node-RED and n8n are great at.

Then a customer recently asked me why they couldn't just schedule their Powerwall to change modes at certain times of day. It's a fair question. Not every automation needs a smart home behind it, and there's an audience for simple automations that live entirely within the Tesla ecosystem, but beyond what Tesla itself can provide.

So there are now two utilities in the Console that run entirely within Teslemetry, with nothing for you to host: Automations and Logbook. Both are in beta, and both are under Utilities in the Console.

Automations

An automation runs Teslemetry commands for you at a time of day, every few minutes, or when a specific value changes.

Each automation has three parts:

  • Triggers say when to run. Any one trigger firing starts it.
  • Conditions are optional checks. Every condition must pass, or the run is skipped.
  • Actions are what to do: any vehicle or energy site command, in order, with optional waits between them.

What's new

Automations have been in the Console as an alpha for a little while. They've now moved to beta, and gained:

  • Energy sites. Trigger on your Powerwall's charge, solar, home and grid power, grid status, Storm Watch, backup reserve or operating mode, and check any of them in a condition.
  • Every few minutes. A new trigger that runs every 5 to 1440 minutes, counted from midnight, so every 15 minutes runs at :00, :15, :30 and :45.
  • Fire once. The automation runs the first time it fires, then switches itself off. It stays saved, so you can turn it back on to run once more.
  • Check conditions, then run. Run now runs an automation's actions straight away, and can now check its conditions first and run only if they pass.
  • Asleep and offline. The vehicle state condition can now check whether the vehicle is asleep or offline, as well as online.

A few examples

  • Switch your Powerwall between Self-Powered and Time-Based Control. At 07:00 every day, set the operating mode to Self consumption. At 22:00, set it to Autonomous, and add a Backup command to raise the reserve overnight if you like.
  • Charge the car at night. At 23:00, if the car's BatteryLevel is below 80, start charging. A second automation stops charging at 06:00.
  • Do both in one run. At 22:00, switch the Powerwall to Autonomous, then start charging the car.
  • React to a grid outage. When grid_status changes to Inactive, stop charging the car so it doesn't drain the Powerwall.
  • Charge once, then forget about it. Turn on Fire once for a single charge at a time you choose.

The Automations docs walk through the first two step by step, including which Tesla app modes match which operating mode values.

Getting started

Open Utilities -> Automations in the Console and select New automation. Teslemetry checks the whole automation before it saves it, and points at any field with a problem.

If you'd rather not build it by hand, select Generate automation and describe what you want in plain language. The draft opens in the editor for you to check, and nothing is saved until you select Create.

AI assistants connected through the Teslemetry MCP server can also list, create, change and run your automations. That's now how I make most of mine. I have Grok connected to Teslemetry, and I just tell it what I want, especially for one-off jobs like "charge the car once at 11pm tonight". It's quicker than building the automation by hand, and it can turn on Fire once so the automation switches itself off after it runs.

Every run is kept for 30 days. The Run log shows which trigger fired, how each condition and action went, and why a run was skipped or failed.

What it costs

Automations need an active subscription. Each action is a real call to the Teslemetry API on your account, charged and rate limited exactly like the same call from any other app:

  • A vehicle command uses 1 command credit. If the vehicle is asleep, Teslemetry wakes it first, which uses 20 more.
  • Energy site commands, such as changing the operating mode or backup reserve, use no credits.
  • Conditions never use credits and never wake the vehicle.

Telemetry triggers on a vehicle use its live Fleet Telemetry stream, so the field has to be in that vehicle's streaming configuration. Energy site triggers use the status Teslemetry already polls from your site, so a change is seen within about 30 seconds, or about 5 minutes for the backup reserve and operating mode. If you dont want automations waking your vehicle, simply add a condition to only run them when your vehicle is awake.5e

An automation holds up to 20 triggers, 30 conditions and 20 actions, and a wait can be up to 30 minutes, with 60 minutes in total per automation. If you only want the car to charge off-peak, the scheduled charging in the Tesla app does that on its own without using credits. Automations are for when the schedule depends on something else.

Logbook

The Logbook records where and when each trip starts and ends, with the odometer at both ends. Mark each trip as business or private, add a note, and download the month as a CSV file. If you've ever had to reconstruct a mileage log for a tax return or an expense claim, this is for you.

How it works

Turn on Record trips for a vehicle. A trip starts when the vehicle shifts out of park and ends when it shifts back into park, so moving between reverse, neutral and drive doesn't split a trip.

The Logbook shows one month at a time, with that month's trips, total distance, and business and private distance. Select a trip's coordinates to see both ends on a map. When the odometer went up between two trips, for example because the car was driven while it had no connection, the Logbook adds an Unrecorded driving row for that distance, so the month still adds up to the odometer.

Recording and reading trips never wakes the vehicle or calls Tesla.

Getting started

Open Utilities -> Logbook in the Consolve, pick a vehicle and turn on Record trips.

Trips are recorded from the Gear, Odometer and Location fields your vehicle streams to Teslemetry. If any of them isn't streamed, the Logbook tells you and offers to add just the missing ones, leaving the fields you already stream as they are. Gear is a Free field, so it uses none of your streaming allowance; Odometer and Location count toward it like any other streamed field. Location also needs the vehicle location permission, and without it trips have no coordinates.

Your trips are kept until you delete your account. Turning recording off stops new trips but keeps the ones you have. The Logbook docs also list the API routes it uses, if you'd rather pull trips into your own tools.

For businesses: Dispatcher on Teslemetry for Business

If you run cars for a business, Teslemetry for Business now has its own Utilities area too, with a Logbook that covers every car at once and a new Dispatcher page:

  • A live map of your cars, with one row per car showing whether it's driving, charging or parked, its battery and range, cabin temperature, whether it's locked, and its destination and minutes to arrival.
  • Send stop and Cool cabin. Send a car to one of your saved stops by name, or to a typed address, and cool the cabin before a pickup.
  • Your own names for your cars, and business settings for the time zone and units your pages and CSVs use.
  • An audit log of every command sent to your customers' vehicles and energy sites, accepted or refused, and every other recorded action.
  • Rides and odometer totals in the Business API: record each ride's status with the car's location and odometer at that moment, and get each car's distance per day, month or quarter from the odometer readings Teslemetry records for your cars.

Tell me what you think

Both utilities are in beta, so they'll keep changing based on how you use them. If an automation doesn't do what you expected, its run history is the first place to look, and if something's missing, let me know.