1 automation to dim or increase brightness?

Would it be possible to create an automation that by default increases the brightness of a light and when activated again within a configurable timeframe, dims the light.
When that time has passed, the automation will increase the brightness again.

This is just a rough idea and I guess that one of the template gurus might be able to do this… :star_struck:

Really nobody interested in this?