Use helper variables as input for a blueprint

Hello,

I am sorry if this topic already exists, but the threads I found so far did not help me.
I am trying to set up a low battery notification using this blueprint: 🪫 Low Battery Notifications & Actions

So far it works well and I get notified if there are batteries below 20%. But since I also want to have some information in my dashboard I would like to define the warning threshold (20% atm) in an input_number helper which gets uses in the blueprint and in my dashboard cards.

Is there a way to use this helper (lets say “input_number.battery_warning”) in the blueprint? The YAML of the blueprint looks like this:

alias: Batteriewarnung Thermostate
description: ""
use_blueprint:
  path: Blackshome/low-battery-notifications-and-actions.yaml
  input:
    include_time: time_enabled
    include_easy_notify: enable_easy_notify
    notify_device:
      - 55664ca91ac5bf678bd6e8113f6e5ae4
    notify_data:
      - high_priority
    custom_group:
      entity_id:
        - sensor.thermostat_wohnzimmer_1_batterie
        - sensor.thermostat_wohnzimmer_2_batterie
        - sensor.thermostat_wohnzimmer_3_batterie
        - sensor.thermostat_kueche_batterie
        - sensor.thermostat_bad_batterie
        - sensor.thermostat_schlafzimmer_batterie
    custom_group_battery_level: 20 [this is what I want to use my input_number helper for]
    sensor_selection: enable_battery_sensors_custom_group

You would need to edit the underlying blueprint, not the blueprint automation configuration you shared above.

The other option would be to use the “Take Control” feature in the breadcrumbs menu of the Automation editor. Then find the custom_group_battery_level: 20 line in the automation’s variables block and change it to:

custom_group_battery_level: "{{states('input_number.battery_warning')|int(0)}}"

Thanks, using “Take control” and your code solved it.