How to pass "input_number" helper in Blueprints to "for" condition?

Hello, I have a problem with a blueprint for a simple automation that turns off a [IKEA Tradfri] light after some seconds. I would like to pass a value to “for” field using a helper (input_number? input_datetime?).
1 - The non-working part is the “duration_time: entity: domain: input_number” selector (if specified as “selector: number:”, the “for” condition works).
2 - I tried a whole day several variants, with templates also for “for”, but the value of the input_number seems not taken.
3 - It seems that the “input_number” is a float (example: 9.0), but the “seconds” field needs a integer, but passing something like: seconds: !input {{ states('duration_time') | int }} does not work.
4 - I did not find detailed documentaton or examples for the syntax needed to use “!input input_number” for “for: seconds” condition, or conversion from float in blueprints.

Thanks for any help.

This is what I am trying to configure:

blueprint:
  name: Light Off
  description: Turns OFF a LIGHT after configured SECONDS in a time interval (FROM - TO)
  domain: automation
  input:
    duration_time:
      name: Turn off after SECONDS
      selector:
        entity:
          domain: input_number
    target_light:
      name: Light
      selector:
        entity:
          domain: light
    after_time:
      name: FROM time
      selector:
        entity:
          domain: input_datetime
    before_time:
      name: TO time
      selector:
        entity:
          domain: input_datetime

     
trigger:
- platform: state
  entity_id: !input target_light
  to: 'on'
  for: 
    seconds: !input duration_time
  
condition:
- condition: time
  after: !input after_time
  before: !input before_time

action:
- service: light.turn_off
  data: {}
  entity_id: !input target_light

I had a similar issue when trying to get the selected value from an input_select, I fixed it by using variables like so:

blueprint:
  name: dummy
  domain: automation
  input:
    input_select:
      name: Input select
      selector:
        entity:
          domain: input_select

variables:
  input_select_state: !input input_select

trigger:
  - platform: state
    entity_id: !input input_select
action:
  - service: wled.effect
    data:
      effect: "{{ states[input_select_state].state }}"
    entity_id: light.my_light

In your case, the seconds template would be like this:

variables:
  input_number_variable: !input duration_time

...
seconds: "{{ states[input_number_variable].state | int }}"

I haven’t actually tried the code for your case, but I think based on how mine works, yours should work as well