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