Change ecobee fan run time based on Govee temperature sensor threshold

I just got started with Home Assistant this past weekend, and the first automation I am attempting is to control the “fan min run time” setting on an ecobee 3 lite thermostat based on a temperature reading from a Govee thermometer in the attic. The AC/furnace and ducting are in the attic so the fan cannot circulate without conditioned air during a hot day, but I would like for the fan run time to change from 0 to 15 minutes if the temperature in the attic is within a threshold. It looks like the binary sensor threshold and circulate switch are both working as expected based on the temperature, but it is not changing the fan min on time. I feel like I should be close based on other examples, but can’t quite get it.

Home Assistant 2023.7.3 running in Docker on Raspberry Pi.

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
binary_sensor: !include binary_sensors.yaml
switch: !include switches.yaml
# binary_sensors.yaml

# Attic Fan Temperature Threshold
  - platform: threshold
    name: attic_fan_threshold 
    entity_id: sensor.h5100_4e97_temperature
    upper: 79.9
    lower: 49.9
# switches.yaml

# Set upstairs fan to circulate when attic temperature between 50 and 75.
  - platform: template
    switches:
      circ_upstairs_fan:
        friendly_name: "Circulate Upstairs Fan"
        unique_id: 'circulate_upstairs_fan'
        value_template: "{{ is_state('binary_sensor.attic_fan_threshold', 'on') }}"
        turn_on:
            service: climate.set_fan_min_on_time
            data:
                entity_id: climate.upstairs
                fan_min_on_time: 15
        turn_off:
            service: climate.set_fan_min_on_time
            data:
                 entity_id: climate.upstairs
                 fan_min_on_time: 0

I have no clue what I was trying to do with the switch. I’ve added to automations.yaml, but I still can’t get anywhere.

- id: circulate_upstairs_air
  alias: 'Circulate Upstairs Air'
  #initial_state: off
  trigger:
    - platform: state
      entity_id: binary_sensor.attic_fan_threshold
      #from: 'off'
      #to: 'on'
  condition:
    - condition: state
      entity_id: binary_sensor.attic_fan_threshold
      state: 'on'
  action:
    - service: climate.set_fan_min_on_time
      target:
        entity_id: climate.upstairs_thermostat
      data:
        fan_min_on_time: 15

Well, I’m stupid and didn’t realize the automation was disabled and had to be enabled. Not sure if I feel better or worse that it was that simple.

Here is what I have working. Is it “OK” to have three different automations for a fairly simple task, or could this be cleaned up and turned into one or two automations through better use of conditions, if/else?

# Attic Fan Temperature Threshold
  - platform: threshold
    name: attic_fan_threshold 
    entity_id: sensor.attic_temperature
    upper: 75.0
    lower: 50.0
# Attic temperature circulate fan
- id: circulate_upstairs_fan_on
  alias: 'Circulate Upstairs Fan On'
  trigger:
    - platform: state
      entity_id: binary_sensor.attic_fan_threshold
      to: 'on'
  condition: null
  action:
    - service: ecobee.set_fan_min_on_time
      data:
        entity_id: climate.upstairs_thermostat
        fan_min_on_time: 15

- id: circulate_upstairs_fan_off
  alias: 'Circulate Upstairs Fan Off'
  trigger:
    - platform: state
      entity_id: binary_sensor.attic_fan_threshold
      to: 'off'
  condition: null
  action:
    - service: ecobee.set_fan_min_on_time
      data:
        entity_id: climate.upstairs_thermostat
        fan_min_on_time: 0

- id: ensure_circulate_upstairs_fan_off
  alias: 'Ensure Circulate Upstairs Fan Off'
  trigger:
    - platform: state
      entity_id: binary_sensor.attic_fan_threshold
  condition:
    - condition: state
      entity_id: binary_sensor.attic_fan_threshold
      state: 'off'
  action:
    - service: ecobee.set_fan_min_on_time
      data:
        entity_id: climate.upstairs_thermostat
        fan_min_on_time: 0