I created a new tasker plugin to fully integrate homeassistant with tasker

Hey everyone,

I built a new Tasker plugin called TaskerHA that integrates with Home Assistant.

Main features:

  • Call any Home Assistant service from a Tasker action
  • Get the state and attributes of any entity
  • Trigger Tasker profiles when an entity changes state through a websocket connection

The project is open source, it uses a Home Assistant long lived access token and talks to your own Home Assistant instance only using the api and optionally the websocket.

GitHub repository with docs:

Direct link to the releases for the APK:

Short overview of what you can do:

  • Turn lights on or off from Tasker tasks
  • React in Tasker when a sensor changes state, such as doors, motion, alarms or presence
  • Read entity state or attributes into Tasker variables and use them in your own logic

A bit more in depth on each feature

  • Call service action
    • Search and filter all available services
    • Entity picker with search
    • Optional data fields, similar to the Home Assistant UI from walmart
    • Supports Tasker variables in all text fields
    • Does return the raw output of the API call as a Tasker variable, and HA will sometimes return the new state but this seems inconsistent in my testing.
  • Get state action:
    • Entity picker with search and domain filtering
    • Returns state, attributes (json) and raw json to Tasker variables
    • Trigger state change profile:
    • Fires on entity state changes using Home Assistant websockets
    • Optional from and to filters, similar to Home Assistant automations
  • Trigger profile on entity change
    • Uses a websocket (turn on in the main app), to subscribe to state events. Receives real time events when an entity’s state changes
    • Entity picker with search and domain filtering
    • Returns new state, old state, new state attributes (json), raw json of the event

Error codes and Tasker variables are documented in the README.

Right now the APK is available from the GitHub releases page. I am working on publishing it on F-droid

Feedback, issues, improvement ideas, feature ideas, anything is welcome. Here or make an issue on github

This has been tested on my Oneplus nord 4 and a Samsung galaxy. So there could be some issues I haven’t foreseen.

6 Likes