Restore prior lighting state when motion restarts

I’m trying to have lights turn off after motion stops for some period of time, then if motion is detected restore the lighting to how it was prior to the lights turning off.

Talking about a room with 6 dimmer switches.

I used a virtual switch to have an okay way of doing this, but it just turns the lights back on regardless of their dim level prior to turning off.

Anyone know how to accomplish this (ideally without webCoRE)?

without WebCoRE - no there’s currently no way to save the existing state.