I want to call a curl command and passing a variable to it, is it possible? I need the notify platform because I want to use it in components only working with notifiers.
- name: send_to_input_text
platform: command_line
command: "curl -X POST -H \"Authorization: Bearer hacode1234\" -H \"Content-Type: application/json\" -d '{\"entity_id\": \"input_text.message_module\", \"value\": \"message here\"}' http://192.168.1.2:8123/api/services/input_text/set_value"
static version works, but need to make value dynamic