Input_Number in automation

#if the temp is under the slider value, trigger stuff
- id: test1
  alias: test1
  trigger:
  - platform: numeric_state
    entity_id: sensor.0x00158d0001b9122f_temperature
    below: 'input_number.test1'
    for: '00:00:01'
  action: 
    - service: notify.home
      data_template:
        message: "testing success"  

Slider to control my automation parameter. But I got an error:

[homeassistant.config] Invalid config for [automation]: expected float for dictionary value @ data['trigger'][0]['below']. Got 'input_number.test1'.

This may just be a simple programming error, any help is appreciated

You cant use an entity id in below: It only accepts numbers.

You can use a template trigger:

  trigger:
  - platform: template
    value_template: "{{ states('sensor.0x00158d0001b9122f_temperature') | float < states('input_number.test1') | float }}"
    for: '00:00:01'

Thanks! Will try that out later