How to add priority to Prowl notification [solved]

Hi All,

I’m new to HA and tryikng to learn programming the automations. One thing I run into is setting up Prowl. I managed to setup the service and an automation, its working. Now I want to add the priority. How do I do that. This is what I got sofar:

data_template:
  message: '{{ value1 }} {{ value2 }} {{ value3 }}'
  title: 'Notifier'

Thanks,

Ralph

It’s in the docs

data_template:
  message: '{{ value1 }} {{ value2 }} {{ value3 }}'
  title: 'Notifier'
  priority: 2

https://www.prowlapp.com/api.php

@metbril. Thanks for the reply, but that is what I tried first and does not seem to work. The message is not sent to prowl and an error generated.

That’s weird sinc the code supports it.

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/notify/prowl.py#L54

I don’t use it so can’t test.

Try this:

data_template:
  message: '{{ value1 }} {{ value2 }} {{ value3 }}'
  title: 'Notifier'
  data:
    priority: 2
1 Like

Hi @metbril,

That worked out pretty well :grinning:.
So the end result is:

data_template:
  message: '{{ value1 }} {{ value2 }} {{ value3 }}'
  title: 'Notifier'
  data:
    priority: '{{ prio }}'

I’sending the priority from the automation.

Thx for the help!

Ralph

1 Like

You welcome. It’s good for my karma if you ‘like’ the solution and checkmark it as the solution. :grin: