I want to notify the sender of a notification when I press the notification on my android smartphone.
I’ve done this at the moment with the “clickAction” usage, which opens a webpage with a webhook that is linked to an automation that sends a notification to the sender (to confirm that I received and read it)
However, this is not optimal as it opens a page on my smartphone.
How could I do the same with Actionable Notifications? I am unsure, even after reading Actionable Notifications | Home Assistant Companion Docs
Below is my current code where the webhook is called and below that the webhook automation
alias: Script Notify
sequence:
- service: notify.mobile_app_sm_s901b
data:
message: You are summoned!
title: Summon
data:
channel: Summon
importance: high
priority: high
ttl: 0
vibrationPattern: 100, 100, 100, 100, 100, 100
clickAction: >-
https://hooks.nabu.casa/gAAAAABj_<WEBHOOK>
mode: single
icon: mdi:alarm-light
alias: Automation_Confirm_Summon_Notification
description: ""
trigger:
- platform: webhook
webhook_id: "-<SNIP>"
condition: []
action:
- service: notify.mobile_app_iphone
data:
message: I Confirm Your Summon!
title: Confirm Summon!
mode: single