diff --git a/automations/attic_fan.yaml b/automations/attic_fan.yaml index 6bf46572..64a3b063 100644 --- a/automations/attic_fan.yaml +++ b/automations/attic_fan.yaml @@ -5,15 +5,13 @@ trigger: - platform: 'numeric_state' id: 'low' entity_id: 'sensor.attic_temperature' - value_template: '{{ state.state | float - 3 if is_number(state.state) else state.state }}' - below: 'sensor.outside_temperature' + below: 25 variables: service: 'fan.turn_off' - platform: 'numeric_state' id: 'high' entity_id: 'sensor.attic_temperature' - value_template: '{{ state.state | float - 5 if is_number(state.state) else state.state }}' - above: 'sensor.outside_temperature' + above: 30 variables: service: 'fan.turn_on'