Trouble passing input to trigger variable

I’m attempting to pass the input “lux_lvl” into a trigger variable for use in a trigger however I keep getting the error that it is type ‘none’. I’m sure it’s a simple fix but I cannot figure it out.

blueprint:
  name: Light Sensing Lights
  description: Activate lights based on light level
  domain: automation
  input:
    light_sensor:
      description: This sensor will be synchronized with the lights.
      name: Light Sensor
      selector:
        entity:
          domain: sensor
          device_class: illuminance
    lux_lvl:
      description: Ambient light level to activate lights.
      default: 20
      name: Ambient Light Level
      selector:
        number:
          min: 5
          max: 500
          unit_of_measurement: "lx"
    light_to_control:
      description: Lights to control.
      selector:
        target:
          entity:
            domain: light

trigger_variables:
  lux_lvl_hi: !input lux_lvl
  lux_lvl_lo: {{ lux_lvl_hi - 5 }}


trigger:
- platform: numeric_state
  entity_id: !input light_sensor
  above: !input lux_lvl
  id: bright
  for:
    hours: 0
    minutes: 0
    seconds: 0

- platform: numeric_state
  entity_id: !input light_sensor
  below: "{{ lux_lvl_lo }}"
  id: dark
  for:
    hours: 0
    minutes: 0
    seconds: 0

Figured it out.
Turns out it doesn’t like using templates in the numeric_state trigger so I had to use the template trigger.

This is what finally worked for me.

trigger_variables:
  lux_lvl_hi: !input lux_lvl
  lux_lvl_lo: "{{ lux_lvl_hi - 5 }}"


trigger:
- platform: numeric_state
  entity_id: !input light_sensor
  above: !input lux_lvl
  id: bright
  for:
    hours: 0
    minutes: !input bright_delay_mins
    seconds: !input bright_delay_secs

- platform: template
  value_template: "{{ (states('sensor.hue_motion_sensor_1_illuminance') | int) < lux_lvl_lo }}"
  id: dark
  for:
    hours: 0
    minutes: !input dim_delay_mins
    seconds: !input dim_delay_secs