Automation - Is it possible to do, if Hue Light has been on

If a certain Hue light has been on for more than 20 minutes, shut it off?

I don’t have a motion sensor in my laundry room and want the single Hue white bulb in there to shut off after my wife has been in there as she always forgets to turn it off :smile:

Does Home Assistant track an ongoing time of how long a certain light has been off?

I do all my automations the old way so any help would be awesome, thanks!

See the discussion on “for” in the State Trigger topic:

Fantastic, thanks!