Light (Led Controller) Notifications

Hi

I want to make my led strip (using flux_led platform) to do some kind of notification.
There’s no problem to send on/off several times or to set effect, but I want to return the light to its previous state (color, brightness).
Any thoughts how I can make it? Does it store somewhere something like light.tvlights.previous_state ? color_name/brightness?

Thanks!