360 Secure SkillHub
360 安全技能中心

Tesla Commands

该 Skill 通过 bin/tesla-control.py 调用 MyTeslaMate API,使用 TESLA_MATE_TOKEN 与可选 TESLA_VIN 认证,支持列出车辆、查询状态、唤醒、开关空调、设置充电上限以及设定或清除定时充电,面向多车辆账户的车辆远程控制。

ovaris
ovaris
热度 78.50
最近更新 2026-05-11 15:48:53
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 日程安排 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add tesla-commands
Metadata
name
tesla-commands
description
Control your Tesla via MyTeslaMate API. Supports multi-vehicle accounts, climate control, and charging schedules.
metadata
{"tags":["tesla","myteslamate","ev","car-control","automation"]}

Tesla Commands Skill 🚗

This skill allows you to monitor and control your Tesla vehicle using the MyTeslaMate API.

Prerequisites

To use this skill, you must have:

  1. A MyTeslaMate account with a configured vehicle.
  2. An API Token from MyTeslaMate (Get it at app.myteslamate.com/fleet).
  3. The VIN of your vehicle.

Environment Variables

The following environment variables must be set for the skill to work:

  • TESLA_MATE_TOKEN: Your MyTeslaMate API token.
  • TESLA_VIN: Your vehicle's VIN (optional if you specify it via command line).

Tools

tesla-control

Manage vehicle status, climate, charging, and schedules.

Usage: public-skills/tesla-commands/bin/tesla-control.py [options]

Options:

  • --list: List all vehicles on the account and their VINs.
  • --status: Fetch full vehicle data (battery, climate, location, locks, etc.).
  • --wake: Wake up the vehicle from sleep mode.
  • --climate [on|off]: Start or stop the climate control.
  • --charge-limit [50-100]: Set the battery charge limit percentage.
  • --set-schedule [HH:MM]: Set a scheduled charging start time.
  • --clear-schedule: Disable scheduled charging.
  • --vin [VIN]: Target a specific vehicle (overrides the default TESLA_VIN).

Examples

Wake up the car:

./bin/tesla-control.py --wake

Set charge limit to 80%:

./bin/tesla-control.py --charge-limit 80

Set charging to start at 02:00:

./bin/tesla-control.py --set-schedule 02:00