Automation to trigger based on slider value

I’m brand new to home assistant so please be nice. :slight_smile:

I’m trying to create an automation that based on a numeric value on a slider (temperature) it would kick off an automation to turn on my spa’s heat pump, then turn it off once it reaches the set value. As well as only perform this action if a switch is toggled. I haven’t put in the switch part yet but here’s what I have for the automation and it doesn’t seem to work.

alias: Spa Heat Pump
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.spa_last_temp
    above: 0.1
    below: input_number.spa_temp
  - trigger: state
    entity_id:
      - input_boolean.spa_heater
    enabled: false
conditions: []
actions:
  - action: switch.toggle
    metadata: {}
    data: {}
    target:
      entity_id: switch.spa_heater
mode: single

Any help would be greatly appreciated.