TaskerHA
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+
What it does
- Expose Tasker profiles as
switch
entities - Expose Tasker tasks as
binary_sensor
entities - Expose Tasker scenes as
select
entities - Expose Tasker global
variables
as text entities - Trigger automations from Tasker commands
tasker.perform_task
service to perform Tasker tasks, like thePerform Task
action in Taskertasker.send_command
service to send Tasker commands, like theCommand
action in Taskertasker.backup
service to backup Tasker config, like theData Backup
action in Taskertasker.import_task
service to import a Tasker task from XML, like theImport
action in Tasker
How to use it
Installation & Setup
- 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.
Configuration
- Builtin Global Variables
- Choose builtin Tasker global variables to add as
text
entities, 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_json
attribute.
- 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
Reference
Profiles
switch
entity
Attribute | Description |
---|---|
state |
Tasker profile is enabled |
active |
Tasker profile is active |
Tasks
binary_sensor
entity
Attribute | Description |
---|---|
state |
Tasker task is running |
last_return |
Last return value from calling tasker.perform_task |
tasker.perform_task
service
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. |
Scenes
select
entity
Attribute | Description |
---|---|
state |
Tasker scene displaying as |
options |
Options for Display As in Show Scene Tasker action |
Globals
text
entity
Attribute | Description |
---|---|
state |
Current value of Tasker global variable |
value_json |
Structured output of state |
Commands
Rate limited by scan interval
tasker_command
event
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 received
device trigger
Field | Description |
---|---|
command |
Command to trigger on. You can use regex to match multiple commands. If not set will trigger on any command. |
Misc
tasker.backup
service
Field | Description |
---|---|
username |
If you set this account, a file will be created in your backup folder on Google Drive. |
tasker.import_task
service
Field | Description |
---|---|
xml |
Tasker XML Data for the task being imported |