The TaskerHA integration allows you to connect the Tasker Android app with Home Assistant.
This makes use of the new HTTP Request event in the latest Tasker Beta. Requires Tasker 6.2+
- Expose Tasker profiles as
switchentities - Expose Tasker tasks as
binary_sensorentities - Expose Tasker scenes as
selectentities - Expose Tasker global
variablesas text entities - Trigger automations from Tasker commands
tasker.perform_taskservice to perform Tasker tasks, like thePerform Taskaction in Taskertasker.send_commandservice to send Tasker commands, like theCommandaction in Taskertasker.backupservice to backup Tasker config, like theData Backupaction in Taskertasker.import_taskservice to import a Tasker task from XML, like theImportaction in Tasker
- Import and setup the accompanying HTTP API Tasker project
- Add repository to HACS. HACS > Integrations > Custom Repositories
- Add Integration in Home Assistant. Settings > Devices & Services > Add Integration
- Follow the instructions on screen to complete the setup.
- Enable the profile, task, scene, and global variable entities that you are interested in.
- Builtin Global Variables
- Choose builtin Tasker global variables to add as
textentities, the same as user-defined global variables.
- Choose builtin Tasker global variables to add as
- Structure Global Variables Outputs
- Works similar to Tasker. If the output is either JSON, HTML, XML, or CSV, enable this option so that you can easily read its contents via the
value_jsonattribute.
- Works similar to Tasker. If the output is either JSON, HTML, XML, or CSV, enable this option so that you can easily read its contents via the
- Track Tasker commands
- Fire Home Assistant events and trigger automations from Tasker commands. Commands will be queued and fired every scan interval. Disable if you aren't tracking commands in Tasker.
- Scan Interval
- Tasker data and commands poll rate
switchentity
| Attribute | Description |
|---|---|
state |
Tasker profile is enabled |
active |
Tasker profile is active |
binary_sensorentity
| Attribute | Description |
|---|---|
state |
Tasker task is running |
last_return |
Last return value from calling tasker.perform_task |
tasker.perform_taskservice
| Field | Description |
|---|---|
target |
Tasker task to perform |
par1, par2 |
Values assigned to par1 and par2 are available in the selected task as normal variables. |
variables |
Variables to forward to the task as local variables. |
structure_output |
If the return value is either JSON or XML, enable this option so you can easily read its contents in the last_return attribute of the selected task's entity. |
selectentity
| Attribute | Description |
|---|---|
state |
Tasker scene displaying as |
options |
Options for Display As in Show Scene Tasker action |
textentity
| Attribute | Description |
|---|---|
state |
Current value of Tasker global variable |
value_json |
Structured output of state |
Rate limited by scan interval
tasker_commandevent
| Field | Description |
|---|---|
command |
The full command |
prefix |
The part of the command on the left of =:= or the whole command if =:= is not present |
params |
List of parts on the right of =:= |
Tasker command receiveddevice trigger
| Field | Description |
|---|---|
command |
Command to trigger on. You can use regex to match multiple commands. If not set will trigger on any command. |
tasker.backupservice
| Field | Description |
|---|---|
username |
If you set this account, a file will be created in your backup folder on Google Drive. |
tasker.import_taskservice
| Field | Description |
|---|---|
xml |
Tasker XML Data for the task being imported |