Past value of variables in flows

Hey guys i want to create a flow that dimms the light after in-activity proportionally to the outdoor brightness. But if immediatly after the dimming there is activity detected i want the light to be turned on to the brightness it was before the inactivity dimm.

I know we have the homey insights that we can see the value change through time. So i want to acces the value of a variable 10 minutes before current time. Is there any why to do this? Kind regards.

Yup, possible with this cool app