{"id":16242492,"url":"https://github.com/jakoblichterfeld/tesla_api_in_tasker","last_synced_at":"2025-04-08T10:39:43.915Z","repository":{"id":190937833,"uuid":"210031493","full_name":"JakobLichterfeld/Tesla_API_in_Tasker","owner":"JakobLichterfeld","description":"access the Tesla API in Tasker (Android App)","archived":false,"fork":false,"pushed_at":"2019-11-15T20:13:10.000Z","size":2610,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T06:55:11.614Z","etag":null,"topics":["tasker","tesla","tesla-api"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakobLichterfeld.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=4GWXFMNWKC7UL\u0026source=url"}},"created_at":"2019-09-21T18:04:04.000Z","updated_at":"2025-02-12T23:31:56.000Z","dependencies_parsed_at":"2023-08-27T08:40:41.412Z","dependency_job_id":null,"html_url":"https://github.com/JakobLichterfeld/Tesla_API_in_Tasker","commit_stats":null,"previous_names":["jakoblichterfeld/tesla_api_in_tasker"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakobLichterfeld%2FTesla_API_in_Tasker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakobLichterfeld%2FTesla_API_in_Tasker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakobLichterfeld%2FTesla_API_in_Tasker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakobLichterfeld%2FTesla_API_in_Tasker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakobLichterfeld","download_url":"https://codeload.github.com/JakobLichterfeld/Tesla_API_in_Tasker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247827650,"owners_count":21002935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tasker","tesla","tesla-api"],"created_at":"2024-10-10T14:11:22.349Z","updated_at":"2025-04-08T10:39:43.892Z","avatar_url":"https://github.com/JakobLichterfeld.png","language":null,"funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=4GWXFMNWKC7UL\u0026source=url"],"categories":[],"sub_categories":[],"readme":"# Tesla API in Tasker\n\n[![latest release](https://img.shields.io/github/v/release/JakobLichterfeld/Tesla_API_in_Tasker)](https://github.com/JakobLichterfeld/Tesla_API_in_Tasker/releases/latest)\n[![donation](https://img.shields.io/badge/Donate-PayPal-informational.svg?logo=paypal)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=4GWXFMNWKC7UL\u0026source=url)\n\nAccess the Tesla API in Tasker (Android App)\n\nThis is a [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm) Profile to access the [unofficial Tesla API](https://tesla-api.timdorr.com/).\n\nThe idea was born during discussing a [feature request](https://github.com/adriankumpf/teslamate/issues/156) for [TeslaMate](https://github.com/adriankumpf/teslamate)\n\n## Screenshots\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/tasks.png\" alt=\"Tasks\" title=\"Tasks\" width=\"180\" height=\"320\" /\u003e\n  \u003cimg src=\"screenshots/tasks_2.png\" alt=\"Tasks 2\" title=\"Tasks 2\" width=\"180\" height=\"320\" /\u003e\n  \u003cimg src=\"screenshots/tasks_3.png\" alt=\"Tasks 3\" title=\"Tasks 3\" width=\"180\" height=\"320\" /\u003e\n    \u003cimg src=\"screenshots/tasks_4.png\" alt=\"Tasks 4\" title=\"Tasks 3\" width=\"180\" height=\"320\" /\u003e\n  \u003cimg src=\"screenshots/scenes.png\" alt=\"Scenes\" title=\"Scenes\" width=\"180\" height=\"320\" /\u003e\n\u003c/p\u003e\n\n## Table of contents\n\n- [Tesla API in Tasker](#tesla-api-in-tasker)\n  - [Screenshots](#screenshots)\n  - [Table of contents](#table-of-contents)\n  - [Security](#security)\n  - [Features](#features)\n  - [Dependencies](#dependencies)\n  - [Installation](#installation)\n  - [Update](#update)\n  - [Usage](#usage)\n  - [Contributing](#contributing)\n  - [Donation](#donation)\n  - [Disclaimer](#disclaimer)\n\n## Security\n\nWhy not using [Tasker Plugin for Tesla](https://play.google.com/store/apps/details?id=com.crazydog.teslatasker)? You never know what a closed source application will do with your credentials :-)\n\nSo this Project is different.\nAccess token is generated: asked for Tesla account data with Tasker scene, store data only in local variable to get access token from Tesla and than destroy local copy of access data.\n\nToken will be refreshed when expires in 10 or less days.\n\n## Features\n\n- [x] Token get/refresh (OAuth)\n- [x] get vehicles\n- [ ] get vehicle\n- [x] wake up\n- [x] set sentry mode (true|false default:true)\n- [x] door unlock\n- [x] door lock\n- [x] actuate trunk (rear|front default:rear)\n- [x] honk horn\n- [x] flash lights\n- [x] media toggle playback\n- [x] media next track\n- [x] media prev track\n- [x] media next fav\n- [x] media prev fav\n- [x] media volume up\n- [x] media volume down\n- [ ] sharing\n- [ ] get climate state\n- [x] set temps (driver temp, passenger temp default:20.5)\n- [x] auto conditioning start\n- [x] auto conditioning stop\n- [x] set preconditioning max (true|false default:true)\n- [x] set remote seat heater request (heater=0..5,  level=0...3 default:0=driver,3=max)\n- [x] set remote steering wheel heater request (true|false default:true)\n- [x] get charge state (return battery_level)\n- [x] set charge limit (0...100 default:80)\n- [x] set charge limit max range\n- [x] set charge limit standard\n- [x] charge port door open\n- [x] charge port door close\n- [x] charge start\n- [x] charge stop\n- [x] window control (close|vent default:close)\n- [ ] get drive state\n- [ ] ~remote start drive~ (will not be included, because current Tesla account password is needed, which is not stored)\n- [ ] upcoming calendar entries\n- [x] set valet mode (true|false, password default:true,)\n- [x] reset valet pin\n- [x] speed limit activate (4DigitPIN default:4321)\n- [x] speed limit deactivate (4DigitPIN default:4321)\n- [x] speed limit set limit mph (50...90 default:50)\n- [x] speed limit clear pin (4DigitPIN default:4321)\n- [ ] trigger homelink\n\nEverything not yet included will be when my Tesla is connected to my account and I am able to test the tasks.\n\n## Dependencies\n\n- [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm)\n- [AutoTools](https://play.google.com/store/apps/details?id=com.joaomgcd.autotools) (can be removed with JavaScriplets to read JSON and removing AutoTools Text action)\n\n## Installation\n\nInstall [Dependencies](#dependencies).\n\nThe easiest way is to open the [Taskernet url](https://taskernet.com/shares/?user=AS35m8mPVeymuldo3aQ2E0w%2Fp%2FdMHwTGvFh2n1G5x85hnLdHZqYoME1ldso6LRp%2Bcuv%2FWQNaht3AkEhes%2FTJwbA%3D\u0026id=Project%3ATesla+API+in+Tasker) on you Android Phone and press import.\n\nIf you prefer to install in manually: Import [Tesla_API_in_Tasker.prj.xml](https://github.com/JakobLichterfeld/Tesla_API_in_Tasker/blob/master/Tesla_API_in_Tasker.prj.xml) on your Android Phone using Tasker, see [Tasker-FAQs](https://tasker.joaoapps.com/userguide/en/faqs/faq-how.html#q) on how to import xml files.\nIt is recommended to backup your data first.\n\n## Update\n\nTo update Tesla API in Tasker the same steps as described under [Installation](#installation) are necessary.\n\n## Usage\n\nThis project provides Tasker tasks to access the Tesla API. To use them in your own automation projects/tasks/profiles/scenes in Tasker just call the function: use the \"Perform Task\" Action in Tasker to call the desired function.\n\nIf parameters are needed the function name gives you a hint about what is needed. For example: \"set temps (driver temp, passenger temp default:20.5)\" --\u003e this function accepts two parameters, driver temp and passenger temp. If both or one is not given, the default value is taken, in this case 20.5. To call the function with the parameters use the \"Perform Task\" action and use \"Parameter 1\" and \"Parameter 2\" for the parameters you want to set.\n\nYou only need to call the function you want, for example set temps (driver temp, passenger temp default:20.5). The Tesla API in Tasker project does take care of the token, wakeup and other preconditions. The task return true if it was successful and false if not.\n\nDo not store your own automation tasks within the Tesla API in Tasker Project in Tasker to prevent data loss when updating Tesla API in Tasker.\n\n## Contributing\n\nAll contributions are welcome and greatly appreciated!\n\n## Donation\n\nMaintaining this project isn't effortless, or free. If you would like to kick in and help me cover those costs, that would be awesome. If you don't, no problem; just share your love and show your support.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=4GWXFMNWKC7UL\u0026source=url\"\u003e\n    \u003cimg src=\"screenshots/paypal-donate-button.png\" alt=\"Donate with PayPal\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Disclaimer\n\nPlease note that the use of the Tesla API in general and this software in particular is not endorsed by Tesla. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakoblichterfeld%2Ftesla_api_in_tasker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakoblichterfeld%2Ftesla_api_in_tasker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakoblichterfeld%2Ftesla_api_in_tasker/lists"}