#How do I send a notification that when tapped, will launch a tasker task?

1 messages · Page 1 of 1 (latest)

small tulip
#

Pretty much the title. I want to send a notification from home assistant to my phone. When I tap that notification, I want to run a tasker task 🙂

karmic juniper
#

you can either send an intent formatted uri in the clickAction or you can use an action to tell the server so you can send a broadcast intent.

small tulip
# karmic juniper you can either send an intent formatted uri in the clickAction or you can use an...

I have got somewhat close with this:

action: notify.mobile_app_alfies_pixel_7_pro
data:
  title: "Test"
  message: command_broadcast_intent
  data:
    intent_action: test
    intent_package_name: net.dinglisch.android.taskerm

This works and triggers my task, but of course it does it immediately when the notification is sent which is not the goal

action: notify.mobile_app_alfies_pixel_7_pro
data:
  title: "Test"
  message: "Test"
  data:
    clickAction: "intent://test/#Intent;package=net.dinglisch.android.taskerm;action=test;end;"

This however does nothing. I guess my intent URI is wrong