Using Templates in Automation Blueprints

I have this automation:

actions:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_boolean.fb_bad_eg_handbetrieb
            state: "on"
        sequence:
          - action: input_number.set_value
            metadata: {}
            data:
              value: >-
                {{ states('input_number.fb_bad_eg_solltemperatur_handbetrieb') |
                float}}
            target:
              entity_id: input_number.fb_bad_eg_solltemperatur

among a LOT of other things in this automation.
I am trying to make a Blueprint out of it to assign it easily to other rooms.

However , I am unable to make it work.
I tried different approaches but nothing seems to work.
What is the correct way to read the values that I specified for inputs?

  input:
    handbetrieb_toggle:
      name: Handbetrieb Umschalter
      description: Entität des input_boolean für den Handbetrieb (z.B. input_boolean.fb_kuche_handbetrieb).
      selector:
        entity:
          domain: input_boolean
    soll_temp_handbetrieb_input:
      name: Soll-Temperatur Handbetrieb 
      description: Entität des input_number für die Soll-Temperatur im Handbetrieb (z.B. input_number.fb_kuche_solltemperatur_handbetrieb).
      selector:
        entity:
          domain: input_number

and

actions:
  - choose:
      - conditions:
          - condition: state
            entity_id: !input handbetrieb_toggle
            state: "on"
        sequence:
          - action: input_number.set_value
            metadata: {}
            data:
              value:"{{ states[!input soll_temp_handbetrieb_input] | float}}"
            target: 
              entity_id: !input soll_temp_input

i tried:

{{ states(!input soll_temp_handbetrieb_input) | float}}

Cannot Save the Automation.

{{ states('!input soll_temp_handbetrieb_input') | float}}

leads to an error when the automation is executed:
Error rendering data template: ValueError: Template error: float got invalid input ‘unknown’ when rendering template ‘{{ states(’!input solltemp_externer_sensor’) | float}}’ but no default was specified

{{ states[!input soll_temp_handbetrieb_input] | float}}

leads to an error when the automation is executed:
Error rendering data template: UndefinedError: homeassistant.helpers.template.AllStates object has no element Undefined

Anyone can bump me into the right direction=

Okay,
using variables between the !inputs and the template does the trick:

actions:
  - variables: 
      var_soll_temp_handbetrieb_input: !input soll_temp_handbetrieb_input
      var_solltemp_externer_sensor: !input solltemp_externer_sensor
  - choose:
      - conditions:
          - condition: state
            entity_id: !input handbetrieb_toggle
            state: "on"
        sequence:
          - action: input_number.set_value
            metadata: {}
            data:
              value:"{{ states(var_soll_temp_handbetrieb_input) | float}}"
            target: 
              entity_id: !input soll_temp_input
    default:
      - action: input_number.set_value
        metadata: {}
        data:
          value: "{{ states(var_solltemp_externer_sensor) | float}}"
        target:
          entity_id: !input soll_temp_input