Variable Help - Capture Dimmer Level

I’m trying to capture the existing level of dimmable bulbs that are also being used for notifications when going into certain modes in which the light flashes at 50% twice - after which want them to go back to whatever level they were previously set at. I’m not sure which settings to use within CoRE or even webCoRE to accomplish this task.

Additionally I’d like to have it setup so my piston captures the on/off status so that if the light was on before flashing then it’d turn on at the previously set dim level.


Also trying this in a separate test piston