Skip to content

Commit

Permalink
Make sure the the fan goes on when taking a shower
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Nov 7, 2024
1 parent 0fd39f7 commit 3496fbb
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions automations/badkamer/klimaat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,24 @@
from: "off"
to: "on"
actions:
- alias: Occupancy detected, set fan to high for 30 minutes
action: button.press
target:
entity_id: button.mechanische_ventilatie_30_minuten_hoog
- alias: Repeat setting the fan to high, to make sure it happens
repeat:
while:
- alias: While fan is low
condition: numeric_state
entity_id: fan.mechanische_ventilatie_ventilatie
attribute: percentage
below: 74
- alias: Don't do it too many times
condition: template
value_template: "{{ repeat.index <= 5 }}"
sequence:
- alias: Set fan to high for 30 minutes
action: button.press
target:
entity_id: button.mechanische_ventilatie_30_minuten_hoog
- delay:
seconds: 10

- alias: Wait for occupancy to be off
wait_for_trigger:
Expand Down

0 comments on commit 3496fbb

Please sign in to comment.