How to use input text to set the code in the alarm component

How can I use the input_text component to set the code in alarm componet?

alarm_control_panel:

  • platform: manual
    name: Home Alarm
    code: (get the code from input text???)