介绍
# Tessie Skill
通过 Tessie API 控制您的特斯拉车辆——Tessie 是一个拥有超过 500,000 名用户的特斯拉管理平台。
## 设置
获取您的 Tessie API 凭证: 1. 访问 https://tessie.com/developers 2. 注册并创建一个 API 密钥 3. 在 Clawdbot 中配置:
```yaml skills: entries: tessie: apiKey: "your-tessie-api-key-here" ```
或通过环境变量配置: ```bash export TESSIE_API_KEY="your-tessie-api-key-here" ```
**注意**:车辆 ID 和 VIN 会从 API 自动检测。无需手动配置。
## 功能
### 车辆状态 - **电池电量**:当前的充电百分比状态 - **续航里程**:预估的驾驶里程 - **位置**:当前车辆坐标 - **车辆状态**:锁定/解锁、充电状态、休眠模式 - **连接状态**:车辆是在线还是离线?
### 空调控制 - **启动/停止**:开启或关闭空调 - **预热/预冷**:设置车内温度(自动检测华氏度/摄氏度) - **除霜**:对车窗/后视镜除霜
### 充电 - **启动/停止**:远程控制充电 - **充电限制**:设置每日/标准充电限制 - **充电状态**:当前速率、完成时间、电池电量
### 行程 - **最近行程**:显示包含距离、能耗、位置的最近行程
## 使用示例
``` # Check battery and range "tessie battery" "tessie how much charge" "tessie range"
# Preheat the car (assumes Fahrenheit if > 50) "tessie preheat 72" "tessie precool" "tessie turn on climate"
# Check drives "tessie show my drives" "tessie recent drives" "tessie drives 5"
# Charging commands "tessie start charging" "tessie stop charging" "tessie set charge limit to 90%" "tessie charging status"
# Vehicle location "tessie where is my car" "tessie location"
# Vehicle state "tessie is the car locked?" "tessie vehicle status" ```
## API 端点 (Tessie)
### 身份验证 所有请求都需要: ``` Authorization: Bearer <api-key> ```
### 获取车辆 ``` GET https://api.tessie.com/vehicles ``` 返回嵌入 `last_state` 的完整车辆列表
### 获取行程 ``` GET https://api.tessie.com/{VIN}/drives?limit=10 ``` 返回最近的行程历史
### 获取停车数据 ``` GET https://api.tessie.com/{VIN}/idles?limit=10 ``` 返回包含空调/哨兵模式使用的停车会话
### 指令 所有控制指令均使用 VIN(而非 vehicle_id): ``` POST https://api.tessie.com/{VIN}/command/{command} ```
**可用指令**: - `start_climate`、`stop_climate`、`set_temperatures` - `start_charging`、`stop_charging`、`set_charge_limit` - `lock`、`unlock`、`enable_sentry`、`disable_sentry` - `activate_front_trunk`、`activate_rear_trunk` - `open_windows`、`close_windows`、`vent_windows`
完整列表:请参阅 https://developer.tessie.com
## 注意事项
- Tessie 充当您与特斯拉 API 之间的中间人 - 提供比原始特斯拉 API 更丰富的数据和分析 - 需要先将特斯拉账户关联到 Tessie - API 使用 VIN 来执行指令(自动检测) - 所有温度在内部均使用摄氏度 - **尚未部署** - 准备部署,待用户审核