Automation Trigger When Sensor Value Above Helper Value

I am sorry if I am asking this incorrectly, or in the wrong place, but I need a little help.

I am trying to set up an automation for an exhaust fan. I’d like to trigger the fan ‘on’ when either a temp sensor, OR humidity sensor rise above preset input_number helper values. I’d also like to trigger the fan ‘off’ when both the temp sensor AND humidity sensor are below the preset helper values.

I can write the automation using static values for the trigger:, ignoring my helpers. This is not what I want to do. I am trying to do it using value_template: (new concept for me), but it the logic escapes me. I’m not even sure this is needed.

Here is what I’ve got.

alias: MaxxAir Automatic Mode
description: >-
  Trigger when the Broadlink Temperature or Humidity Sensor raise higher or
  lower than the value saved in input.boolean helpers (thermostat, humidistat)
trigger:
  - platform: template
    value_template: >-
      {{ states('sensor.broadlink_remote_temperature') | int >
      states('input_number.maxxair_thermostat') | int }}
  - platform: template
    value_template: >-
      {{ states('sensor.broadlink_remote_temperature') | int <
      states('input_number.maxxair_thermostat') | int }}
  - platform: template
    value_template: >-
      {{ states('sensor.broadlink_remote_humidity') | int >
      states('input_number.maxxair_humidistat') | int }}
  - platform: template
    value_template: >-
      {{ states('sensor.broadlink_remote_humidity') | int <
      states('input_number.maxxair_humidistat') | int }}
condition: []

What I’m thinking is that I want to trigger the automation when either the temperature or humidity crosses their helper threshold up or down. Then perform the actions based on whether either the temp OR humidity raise above their respective thresholds, and also perform a different set of the actions when both the temp AND humidity lower below their helper thresholds.

action:
  - if:
      - condition: or
        conditions:
          - condition: template
            value_template: >-
              {{ states('sensor.broadlink_remote_temperature') | int >
              states('input_number.maxxair_thermostat') | int }}
          - condition: template
            value_template: >-
              {{ states('sensor.broadlink_remote_humidity') | int >
              states('input_number.maxxair_humidistat') | int }}
    then:
      - service: remote.send_command
        data:
          device: maxxair
          command: power_on
        target:
          entity_id: remote.broadlink_remote_remote
  - if:
      - condition: and
        conditions:
          - condition: template
            value_template: >-
              {{ states('sensor.broadlink_remote_temperature') | int <
              states('input_number.maxxair_thermostat') | int }}
          - condition: template
            value_template: >-
              {{ states('sensor.broadlink_remote_humidity') | int <
              states('input_number.maxxair_humidistat') | int }}
    then:
      - service: remote.send_command
        data:
          device: maxxair
          command: power_off
        target:
          entity_id: remote.broadlink_remote_remote
mode: single

Any guidance would be greatly appreciated.

Should I be using trigger.above and trigger.below from here?

Automation Trigger Variables - Home Assistant