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.

11 Likes

I appreciate it. I was using Tasker and Autonotification for intercepts. But, since Google and Samsung Android 16 stacking notifications, seems they’re messed up, maybe for good. Grok actually pointed me to your apk and Github.

This will work better for me long term anyhow. I did have some initial quirks, but got it straightened out. I hope.

Test, was if motion goes from off to on, Tasker, flash message. Didn’t work first couple tries. Uncertain what i fiddled with to fix it. Toggled Web Socket off and back on a time or two. Checked logs etc. etc.

Checked your app permissions, battery unrestricted etc. Retested. logs clean, flash came in.

Tomorrows test, if Alarmo triggers, task, play loud siren sounds on bluetooth speakers or my phone if not connected. I’ll report back, if it stays steadily working, I’ll help get the word out.

Tasker dev had started some HAOS things two years ago in Beta, but it seemed to fizzle. You’re work picks it up in a much better way. I’ll report back if any pluses or minuses pop up. Let me test a while. :+1:

Triggered Alarmo and it worked great. I’ll rebuild my Tasker intercepts to adapt to your new TaskerHA app.

Great work!

Just out of curiosity, what is the advantage of this plugin over the native Tasker intercept?

This works better than the old “Home Assistant Plug in for Tasker”, which somehow has disappeared on internet

Thanks for the reply. I was wondering in what ways is it ‘better’?

The old Tasker way is still there.

https://share.google/dpz9mV6lQNP9G5tKJ

TaskerHA, utilizes WebSocket for instantaneous response to any HAOS entity state change or custom event, eliminating polling delays inherent in notification-based methods.

Avoids Android notification delivery issues, including stacking, Do Not Disturb interference, channel silencing, and OS-level changes that frequently disrupt intercepts.

Provides clean, predefined variables (e.g., %ha_state, %ha_attrs as JSON) directly from the API, removing the need for brittle text parsing of notification content.

Enables HAOS to send direct, non-visible messages to Tasker and allows Tasker to query entities or call any HA service with built-in pickers and variable support.

Consolidates triggering, querying, and control into a single plugin, reducing reliance on notification templates, companion app sensors, or additional AutoNotification profiles.

Ensures consistent operation without visible notifications, accidental dismissals, or permission dependencies, while offering explicit error handling and battery optimization guidance.

TaskerHA is optimized for Home Assistant workflows and does not replace AutoNotification for intercepting notifications from unrelated applications.

For HAOS-centric automations, TaskerHA provides a more robust and future-proof solution.

Hopefully. I’ve only had it a week.

Where the developer is for a response, I don’t know.

Tested in a Samsung Galaxy S24 Ultra today, TaskerHA on any Alarmo trigger and/or the older backup, Simplijunk (safe) :wink:.

Worked great. Hope the developer shows up sometime in this thread.:+1:

When either alarm triggers in armed mode, instantaneous Tasker task, play siren sound ringtone, loop 30 seconds.

For me and my use, it’s great vs the old Beta Tasker link to HAOS. Sirens and different sounds everywhere. :rofl::grimacing:

Hey!

Like I told you on Reddit. I completely forgot to keep checking this forum post. But I appreciate the kind words man!

Obviously, I mostly built this because I wanted it myself. I’ve personally been using this since the first release without issues.

So has my brother and a couple irl friends. It’s been very stable for us so far

Thanks for the kind words!

Amazing work. I downloaded v1.1.0 from FDroid. It seems to work (finding my entities etc). However, I get an error message scanning the scripts made available to HA via pyscript. I opened a ticket in github.
But excited to learn about this app. Thanks

Thanks!

Like you saw on github, it is fixed!
Fdroid has the updated version live now to, there should be no difference in APK so updates should go through FDroid if you have both installed.