From f2e97ed415f6f7f112c2e8f8264d8e79acb2ed06 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 25 Oct 2023 13:28:39 +1100 Subject: [PATCH] Tweak `automation.attic_fan` --- automations/attic_fan.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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'