Skip to content

Call Service

Action → Plugin → TaskerHA → HA Call Service

Calls any Home Assistant service from a Tasker task.

How to use

  1. In Tasker, open a task and tap +PluginTaskerHAHA Call Service.
  2. Tap the pencil icon to open the configuration.
  3. Pick a domain to narrow down the list, then select a service.
  4. Fill in any required fields. If an entity_id is needed, an entity picker with domain filtering and fuzzy search will appear.
  5. Optional data fields (e.g. brightness, transition) can be toggled on or off with checkboxes. Fields that are turned off are not sent to Home Assistant at all.
Service and domain picker
Pick a domain and service
Entity / target picker
Add target entities, devices, areas and/or labels
Optional service data fields
Toggle optional fields on or off

Tasker variables

You can use Tasker variables (anything starting with %) in any text field. They are substituted before the service call is made.

Example — Turn on a light

FieldValue
Servicelight.turn_on
Entitylight.living_room
brightness200

Variables set after the action

VariableDescription
%ha_dataFull API response from Home Assistant (JSON). Usually contains the updated entity state, but this is not guaranteed by HA.
%errError code. 0 means success. See Error codes below.
%errmsgHuman-readable error message, often followed by a Java exception for details.

Error codes

CodeDescription
0No error.
1Cannot connect to Home Assistant. The app could not reach the host — check your URL, network, and token.
2Invalid input. Domain or service field is empty.
3Service call failed. HA was reachable but rejected the call. Check %errmsg for details.
9999Unknown error. Check %errmsg for the Java exception.

Continue after error

By default, an error will also fail the Tasker task. Enable Continue after error on the action if you want to handle errors yourself by reading %err.

Released under the MIT License.