#How do I send a notification that when tapped, will launch a tasker task?
1 messages · Page 1 of 1 (latest)
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.
https://companion.home-assistant.io/docs/notifications/actionable-notifications#uri-values and https://companion.home-assistant.io/docs/notifications/notification-commands#broadcast-intent you will need to have tasker listen to the event
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