Hi, I configured a rest notification in my HA that sends a notification to Alexa using notify me on a certain trigger. The configuration looks like this:
notify:
- name: SmallBathRoomNotification
platform: rest
resource: https://api.notifymyecho.com/v1/NotifyMe?notification='Bathroom%202%20Window%20has%20been%20open%20for%20more%20than%2010%20minutes!'&accessCode=<my_alexa_access_token>
The notification is working fine, but as you can see I’m adding the message as part of the endpoint in the configuration.
I want get the message from the automation action itself instead of adding it in the configuration, so the question is how to add message from the automation action as a parameter in the notify resource?
In other words, can I change the configuration to something like:
notify:
- name: SmallBathRoomNotification
platform: rest
resource: https://api.notifymyecho.com/v1/NotifyMe?notification=<message>&accessCode=<my_alexa_access_token>
where = replaces with the message given in the automation action?
Thanks for help.