Auto Off Timer - Turn off a device after a timeout

I’ve created an integration to fix an issue that I have in my house. I need to turn off some devices after some time, this can be accomplished using automation, but the “for” field is lost if HA is restarted. I know that I can create a timer, or a input datetime, that will hold the timeout, but this is too much work just to turn some lights, heaters, etc, off.

So I created the Auto Off Timer. It is plain simple, just configure the entities you want the timeout and configure the timeout. Done.

You can also provide a template that will enable/disable the timeout effect, so you can create something like: Turn off the light after 10 minutes, only if it is during the day, or after sunrise. This allows you to disable the timeout in some situations.

Hope it helps someone.

3 Likes