Usage variable from frontend to script

Hello to all,

I am newbie and need help on the transmission of a variable from a frontend card to a script to set a timeout.
Here is a sample script snippet:

test_2:
  alias: Test2
  sequence:
  - service: light.turn_on
    data: {}
    target:
      entity_id: light.hue_lampe_salon
  - delay: '{{ ''input_number.piscine_run | int'' }} '
  - service: light.turn_off
    data: {}
    target:
      entity_id: light.hue_lampe_salon
  mode: single

Would you help me ?

Thanks