Hi,
What am i doing wrong with my timer setup? Only thing i want to do when i press fan on it has a 30min timer. when i click again it starts it from beginning if not it stops after 30 minutes.
Alternately, you can use the State Trigger’s for option to achieve the same result without using a timer entity. However, the disadvantage is that the for option cannot survive a restart (it gets reset) whereas a timer can (if you specify restore: true when configuring the timer).
alias: Fläkt 30min
description: ""
trigger:
- platform: state
entity_id: switch.takflakt
from: 'off'
to: 'on'
for:
minutes: 30
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.takflakt
mode: single