Hi all, I’m trying to automate my bathroom fan by having it turn off automatically after 15 minutes when the bathroom light is turned off. However, the fan never seems to turn off. Would love a second pair of eyes on my automation to figure out what I’m doing wrong. Thanks!
Thanks for the response. Turns out the light switch wasn’t added correctly for some reason, so it wasn’t firing events. Fixed it by re-adding and now the automation works.
Great but do consider the version I posted as your version will fail if Home Assistant is restarted during the 15 minute delay, where as in my version the 15 minute timer is just reset during a restart but will still turn off the fan 15 minutes later.