JSON help with Pushover

I am sure this is very simple but I can’t for the life of me figure it out.

I have a notification set up to send me a message via Pushover using the call notification node which works. I now want to set the priority for the message but I always end up with an API error so I assume my JSON is not formatted correctly.

The working notification is:

{
"message": "Door is open"
}

But if I change it to:

{
"message": "Door is open",
"priority": "1"
}

I get the API error. I can see from the HA Pushover page that should be a “sub” data field (sorry if that is not the correct terminology!):

- service: notify.entity_id
  data:
    message: "This is the message"
    title: "Title of message"
    data:
      url: "https://www.home-assistant.io/"
      sound: pianobar
      priority: 0

But I can’t workout how to format the YAML to JSON for this.

{
  "message": "Door is open",
  "data": {
    "priority": 1
  }
}
2 Likes

Thank you!