Skip to content

Commit

Permalink
Tweak automation.attic_fan
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspence committed Oct 25, 2023
1 parent d7f1fa7 commit f2e97ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions automations/attic_fan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit f2e97ed

Please sign in to comment.