# How to configure actionable notifications?

**URL:** <https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [19 January 2025 13:57 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731 "2025-01-19T13:57:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pabz/32/97290_2.png) [@pabz](https://discourse.nodered.org/u/pabz)\
**Post date:** [19 January 2025 13:57 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/1 "2025-01-19T13:57:10Z")

</div>

Hey all,

I've trying to build actionable notifications in Node Red to push to Home Assistant, but all I get it just normal notifications with no actions or clickable option.

I tried the array from this topic ([Unable to create multiple actionable notifications](https://discourse.nodered.org/t/unable-to-create-multiple-actionable-notifications/60044)), but no luck there.  
I also tried this:

```auto
{
    "message": "Something happened at home!",
    "data": {
        "actions": [
            {
                "action": "URI",
                "title": "Open Url",
                "uri": "https://google.com"
            }
        ]
    }
}

```

But that also just shows the message with no clickable link.

To clarify: I select the HA action node and as entity I select notify.mobile\_app\_my\_iPhone and put the code above in as JSON

Any tips?

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [19 January 2025 15:03 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/2 "2025-01-19T15:03:00Z")

</div>

> **[Actionable Notifications Subflow for Android |...](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/cookbook/actionable-notifications-subflow-for-android.html)**
>
> A suite of nodes that seamlessly integrates Home Assistant with Node-RED

---

<div class="post-metadata">

**Author:** ![pabz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pabz/32/97290_2.png) [@pabz](https://discourse.nodered.org/u/pabz)\
**Post date:** [19 January 2025 15:30 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/3 "2025-01-19T15:30:30Z")

</div>

Yeah, I've seen that one and I found out that you actually need to force press the notification in iOS due to some bug to see the actions.

Now I'm struggling to get the URL in the correct format lol

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [19 January 2025 15:38 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/4 "2025-01-19T15:38:39Z")

</div>

> [@pabz](#):
>
> that you actually need to force press the notification in iOS

I'm not clear on what you mean by this, do you have a link? If you want the texts to show up instantly you need to use the interruption level option in the data section.

[https://companion.home-assistant.io/docs/notifications/notifications-basic#interruption-level](https://companion.home-assistant.io/docs/notifications/notifications-basic#interruption-level)

Edit I set up and was able to send an actionable notification to my ipad without any issues.

```auto
{
   "title": payload.title,
   "message": payload.message,
   "data":{
       "push": {
          "interruption-level": "critical"
       },
       "actions":[
           {
               "action": payload.action1,
               "title": "5 Min"
            },
           {
               "action": payload.action2,
               "title": "20 Min"
            },
            {
                "action": payload.action3,
                "title": "All"
            }
       ]   
   }
}

```

---

<div class="post-metadata">

**Author:** ![pabz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pabz/32/97290_2.png) [@pabz](https://discourse.nodered.org/u/pabz)\
**Post date:** [19 January 2025 16:04 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/5 "2025-01-19T16:04:40Z")

</div>

Apparently it's an iPhone related bug: [Buttons not showing on Actionable Notifications on iOS app - #21 by u20p17 - automation - Home Assistant Community](https://community.home-assistant.io/t/buttons-not-showing-on-actionable-notifications-on-ios-app/381149/21)

Many people have the same problem on iPhone, but not in iPad.

So on you iPhone you need to long press the notification to see the options for your actions.

I was able to make a notification like this where I could get a clickable link:

```auto
{
    "message": "Something happened at home!",
    "data": {
        "actions": [
            {
                "action": "URI",
                "title": "Open Url",
                "uri": "{{{payload}}}"
            }
        ]
    }
}

```

You need three {{{}}} around the payload. By default, Mustache will replace certain characters with their HTML escape codes. To prevent this, use triple braces: `{{{payload}}}`

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [19 January 2025 16:22 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/6 "2025-01-19T16:22:36Z")

</div>

I don't have an iphone so I haven't seen this issue. However it seems that this is just the way iphones work, especially 3d touch enabled devices, from [the docs](https://companion.home-assistant.io/docs/notifications/actionable-notifications/#compatibility-with-different-devices)

> iOS 13 and later
> 
> - All devices support notification expanding by performing a right to left swipe and pressing 'View' in the lock screen or pressing and holding, but on 3D Touch-enabled devices you may still need to apply some force to do it. If you're not in the lock screen, you can also pull the notification down to expand it.

---

<div class="post-metadata">

**Author:** ![pabz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pabz/32/97290_2.png) [@pabz](https://discourse.nodered.org/u/pabz)\
**Post date:** [19 January 2025 16:26 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/7 "2025-01-19T16:26:29Z")

</div>

it's not a bug, it's a feature

hahaha

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 April 2025 16:26 UTC](https://discourse.nodered.org/t/how-to-configure-actionable-notifications/94731/8 "2025-04-19T16:26:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
