Blueprints variables !input not working

Tags: #<Tag:0x00007fc3f70c7de0>

I have tried to use variables in a blueprint to import the inputs of the blueprint into a template. But the configurator doesn’t recognize the command and comes with a unknown tag error… I cant set a variable as !input. I hope someone can help :slight_smile:
I have also tried pasting variables !input from other blueprints into my blueprint and they dont get recognized either.

The errormessage:

unknown tag !<!input> at line 27, column 56:
… t: !input string_aktuel_setpunkt

Here is my blueprint:

blueprint:
  name: set temp in HA for IHC varmestyring
  description: Uses a input_number to set the temperatur in the IHC varmestyring funktionsblok
  domain: automation
  input:
    input_number:
      name: temp
      selector:
        entity:
          domain:
            input_number
    string_aktuel_setpunkt:
      name: ID aktuel setpunkt
      selector:
        number:
          min: 0
          max: 9999999999
          mode: box
    string_setpunkt_normal:
      name: ID Setpunkt normal
      selector: 
        number:
          min: 0
          max: 999999999
          mode: box
variables:
  string_aktuel_setpunkt: !input string_aktuel_setpunkt
  string_setpunkt_normal: !input string_setpunkt_normal
  input_number: '{{states("{{ !input input_number }}")}}'
  

trigger:
  - platform: event
    event_type: state_changed
    event_data:
      entity_id: input! input_number
          
action:
# set aktuel setpunkt
  - service: ihc.set_runtime_value_float
    data_template:
      ihc_id: "{{ string_aktuel_setpunkt }}"
      value: '{{states("{{ input_number }}") | float}}'
# set setpunkt normal
  - service: ihc.set_runtime_value_float
    data_template:
      ihc_id: "{{ string_setpunkt_normal }}"
      value: '{{ "{{ input_number }}" | float}}'
mode: single

I’m seeing the same issues – did you ever make progress?

Just a guess but maybe don’t make the variable’s name identical to the Selector’s name.

So I was getting a similar error from another blueprint and what I found that worked for me was to remove the !input in front of your variable. After that I saved it, reloaded my automations and tested and it fired off exactly as I was expecting it to.

action:
domain: mobile_app
type: notify
device_id: !input notify_device
message: “{{ trigger.event.data.new_state.attributes.friendly_name }} has deteced a leak.”
title: “Leak detected!”

changed to:

action:
domain: mobile_app
type: notify
device_id: notify_device
message: “{{ trigger.event.data.new_state.attributes.friendly_name }} has deteced a leak.”
title: “Leak detected!”

Don’t know if this will fix it for you but worth a shot.

I will try that, thanks