Skip to content

Commit 61d1303

Browse files
Use Tasker "Export to URL" feature (taskernet) for easy installation and update on user side (close: #1)
Some words about usage of this project
1 parent bb0b96a commit 61d1303

2 files changed

Lines changed: 45 additions & 14 deletions

File tree

README.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ The idea was born during discussing a [feature request](https://github.com/adria
1111

1212
## Screenshots
1313

14-
<p align="center">
15-
<img src="screenshots/tasks.png" alt="Tasks" title="Tasks" width="180" height="320" />
16-
<img src="screenshots/tasks_2.png" alt="Tasks 2" title="Tasks 2" width="180" height="320" />
17-
<img src="screenshots/tasks_3.png" alt="Tasks 3" title="Tasks 3" width="180" height="320" />
14+
<p align="center">
15+
<img src="screenshots/tasks.png" alt="Tasks" title="Tasks" width="180" height="320" />
16+
<img src="screenshots/tasks_2.png" alt="Tasks 2" title="Tasks 2" width="180" height="320" />
17+
<img src="screenshots/tasks_3.png" alt="Tasks 3" title="Tasks 3" width="180" height="320" />
1818
<img src="screenshots/scenes.png" alt="Scenes" title="Scenes" width="180" height="320" />
1919
</p>
2020

@@ -27,18 +27,20 @@ The idea was born during discussing a [feature request](https://github.com/adria
2727
- [Features](#features)
2828
- [Dependencies](#dependencies)
2929
- [Installation](#installation)
30+
- [Update](#update)
31+
- [Usage](#usage)
3032
- [Contributing](#contributing)
31-
- [Dontation](#dontation)
33+
- [Donation](#donation)
3234
- [Disclaimer](#disclaimer)
3335

3436
## Security
3537

3638
Why 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 :-)
3739

38-
So this Project ist different.
40+
So this Project is different.
3941
Access 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.
4042

41-
Token will be refreshed when exipres in 10 or less days.
43+
Token will be refreshed when expires in 10 or less days.
4244

4345
## Features
4446

@@ -64,18 +66,18 @@ Token will be refreshed when exipres in 10 or less days.
6466
- [x] set temps (driver temp, passenger temp default:20.5)
6567
- [x] auto conditioning start
6668
- [x] auto conditioning stop
67-
- [x] set remote seat heater request
68-
- [x] set remote steering wheel heater request
69+
- [x] set remote seat heater request (heater=0..5, level=0...3 default:0=driver,3=max)
70+
- [x] set remote steering wheel heater request (true|false default:true)
6971
- [ ] get charge state
70-
- [x] set charge limit
72+
- [x] set charge limit (0...100 default:80)
7173
- [x] set charge limit max range
7274
- [x] set charge limit standard
7375
- [x] charge port door open
7476
- [x] charge port door close
7577
- [x] charge start (untested)
7678
- [x] charge stop (untested)
7779
- [ ] get drive state
78-
- [ ] ~remote start drive~ (will not be included, because current tesla account password is needed)
80+
- [ ] ~remote start drive~ (will not be included, because current Tesla account password is needed)
7981
- [ ] upcoming calendar entries
8082
- [ ] set valet mode
8183
- [ ] reset valet pin
@@ -93,14 +95,32 @@ Everything not yet included will be when my Tesla is connected to my account and
9395

9496
## Installation
9597

96-
Install [Dependencies](#dependencies). 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.
98+
Install [Dependencies](#dependencies).
99+
100+
The easiest way is to open the [Taskernet url](https://taskernet.com/shares/?user=AS35m8mPVeymuldo3aQ2E0w%2Fp%2FdMHwTGvFh2n1G5x85hnLdHZqYoME1ldso6LRp%2Bcuv%2FWQNaht3AkEhes%2FTJwbA%3D&id=Project%3ATesla+API+in+Tasker) on you Android Phone and press import.
101+
102+
If 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.
97103
It is recommended to backup your data first.
98104

105+
## Update
106+
107+
To update Tesla API in Tasker the same steps as described under [Installation](#installation) are necessary.
108+
109+
## Usage
110+
111+
This 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.
112+
113+
If 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)" --> 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.
114+
115+
You 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.
116+
117+
Do 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.
118+
99119
## Contributing
100120

101121
All contributions are welcome and greatly appreciated!
102122

103-
## Dontation
123+
## Donation
104124

105125
Maintaining 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.
106126

Tesla_API_in_Tasker.prj.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
<cdate>1568960724812</cdate>
55
<name>Tesla API in Tasker</name>
66
<scenes>Tesla_Login_Data,Popup</scenes>
7-
<tids>51,64,48,49,47,43,58,68,50,52,53,55,67,60,62,36,39,56,61,54,57,46,37,45,44,42,40,63,65,66,59,41</tids>
7+
<tids>58,49,64,47,50,48,52,65,67,51,41,66,46,68,63,54,45,53,60,40,59,37,57,43,39,62,61,42,56,36,44,55</tids>
8+
<Share sr="Share">
9+
<d>Access the Tesla API in Tasker (Android App)
10+
11+
This is a Tasker Profile to access the unofficial Tesla API.
12+
13+
Dependencies:
14+
AutoTools (can be removed with JavaScriplets to read JSON and removing AutoTools Text action)
15+
16+
for more info see: https://github.com/JakobLichterfeld/Tesla_API_in_Tasker</d>
17+
<t></t>
18+
</Share>
819
</Project>
920
<Scene sr="scenePopup">
1021
<cdate>1566589345450</cdate>

0 commit comments

Comments
 (0)