Pretty new to automations in HA but I am reaching out to see if someone can help me.
I have a switch for a fan in the bathroom, I would like it once switch on, to stay on for 30 minutes and then switch off automatically.
Pretty simple but searched high and low and cant find out how to do it.
I have node red installed but never used it also if that is the way to go.
Easily achieved with a very simple automation.
alias: example
trigger:
- platform: state
entity_id: switch.your_bathroom_fan
to: 'on'
for:
minutes: 30
action:
- service: switch.turn_off
target:
entity_id: switch.your_bathroom_fan
Thanks so much, will try that today.
Appreciate your help