Hi Juan,
I used your configuration. But whenever I am trying to send a notification by adding a priority the gotify server returns HTTP 400. I figured out that this is because HA sends the priority value as a string instead of an integer.
This is my configuration
- name: gotify
platform: rest
resource: https://myserver/message
method: POST_JSON
headers:
X-Gotify-Key: !secret gotify_api_token
message_param_name: message
title_param_name: title
target_param_name: priority
This is how it looks in the network trace
If I am using the example where the priority is set with a fixed value in the notify config it says “Number value” instead. So I guess HA puts the priority value in double quotes when it sends it to the gotify server.
From HA developer tools - services I am putting the value “10” (without the double quotes) into the target field
Do you have an idea what I might be doing wrong?
Best Regards
Matthias