目录
1.创建一个 特斯拉开发者账户
您必须创建一个 特斯拉开发者账户 并提交新的申请。
1. 注册成为特斯拉开发人员 特斯拉帐户

2. 提交 "新申请从仪表板

完成后,您就可以创建应用程序了。
2.创建自己的特斯拉应用程序接口(6 个简单步骤)
MyTeslamate 为您提供所有必要的端点,方便您创建 Tesla API 应用程序。
然后,我们就可以在 Teslamate、家庭助理或任何地方使用您的特斯拉 API 应用程序。
1.将您的申请与您的个人简介链接起来

2.填写申请名称、描述和使用目的。您可以随意填写。

3.打开 https://app.myteslamate.com/tesla 复制您自己的 URL

4.在相应字段中粘贴 URL。
只有当您认为会使用 my.home-assistant.io 时,才将其包含在内。

5.选中此 API 应用程序允许的(所有)作用域

6.跳过并提交(不要注册信用购物车!) 7.

You can keep the Client ID and Client Secret because you’ll need them later…

很好,你创建了第一个特斯拉 API 应用程序! You should receive a validation email from Tesla. Now you need to register this application to be able to use it.
3.注册此申请n
您现在必须注册您的应用程序并登录一次才能使用:
1. On your own API page, click on “Register my application”

Run the script to easily register your application and generate credentials from your computer and share your secret only with Tesla.
You can view code on this GitHub repository. Feel free to improve it.

3. Execute the script. At the step 3, you need to click on login link to get the code to paste from MyTeslamate

After Tesla login, the code is displayed in the green block.

3. This is the end of the script, you now can copy/paste your new tokens

You’re now using your own Tesla API directly for free!
4.使用方法
您可以在特斯拉开发者网站上查看您的使用情况。
前往 特斯拉应用程序接口仪表板并控制成本。 免责声明:你永远不应该像这样做!

You can use your own API from your self-hosted Teslamate, evcc, Home Assistant, etc.
Also, you can log in MyTeslamate with your Tesla account to use our proxies via our 船队页面. You will be able to send commands in a minute to your device(s)!


