First create the rest command pushcut_smart_notify
in configuration.yaml
rest_command:
pushcut_smart_notify:
url: 'https://api.pushcut.io/v1/notifications/{{notification}}'
method: POST
content_type: application/json
headers:
API-Key: !secret pushcut_api_key
payload: '{{payload}}'
Then create in scripts.yaml the script notify_pushcut_smart
as shown in my previous post.
Finally you call the script as shown in the example in my previous post.
See also the documentation WebAPI for Pushcut
.
Indeed if you go through all the previous posts in this thread you will get all the needed instructions on how to setup things. This is what I did.