Translate HA template service to Node red call service json

I don’t understand what I’m doing wrong here.

I need this:

message: "bbb"
title: "dddd"
data:
  sticky: true
  actions:
  - action: "URI"
    title: "Open Url"
    uri: "https://google.com"

in Node red.
I thought it would translate to:

{
    "message": "bbb",
    "title": "dddd",
    "data": {
        "sticky": true,
        "actions": {
            "action": "URI",
            "Title": "open",
            "Uri": "http://www.google.com/maps/place/1,1"
        }
    }
}

in a call service node, the message works, but not the action. The action does not show up at all

When I do this:

{
    "message": "bbb",
    "title": "dddd",
    "data": {
        "sticky": true,
        "actions": [
            {
                "action": "URI",
                "Title": "open",
                "Uri": "http://www.google.com/maps/place/1,1"
            }
        ]
    }
}

I get an action with title “null” and nothing happens when I press the button.

lowercase the title and uri

2 Likes

That was it…