Notify command_line passing variable

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\"}'"

static version works, but need to make value dynamic

1 Like

Can anyone help or give me a hint how to use dynamic values here for the message?