Skip to content

Commit

Permalink
Update buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Nov 29, 2024
1 parent e9e2654 commit 07de411
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions mechanische_ventilatie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,45 @@ fan:
update_interval: 10s

button:
- platform: template
id: ${name}_extra_high_15
name: 15 minuten extra hoog
on_press:
then:
lambda: |-
id(${name}_fan).setSpeed(4, 15);
- platform: template
id: ${name}_extra_high_30
name: 30 minuten extra hoog
on_press:
then:
lambda: |-
id(${name}_fan).setSpeed(4, 30);
- platform: template
id: ${name}_high_15
name: 15 minuten hoog
on_press:
then:
lambda: |-
id(${name}_fan).setSpeed(4, 15);
id(${name}_fan).setSpeed(3, 15);
- platform: template
id: ${name}_high_30
name: 30 minuten hoog
on_press:
then:
lambda: |-
id(${name}_fan).setSpeed(4, 30);
id(${name}_fan).setSpeed(3, 30);
- platform: template
id: ${name}_high_60
name: 60 minuten hoog
id: ${name}_medium_15
name: 15 minuten medium
on_press:
then:
lambda: |-
id(${name}_fan).setSpeed(4, 60);
id(${name}_fan).setSpeed(2, 15);
time:
- platform: sntp
Expand Down

0 comments on commit 07de411

Please sign in to comment.