Webcore Dim Level Store

I am using a Pico button command to randomly change the color of a Hue Lightstrip. However, the color change also changes the light level. I would like to store the light level prior to the color change so that I can reinstate that same level after the color change. I know how to define a physical device variable and store an action event physical device to that variable. But I don't know how to do that for a light level. Any suggestions?

You could create a “Number” variable and use it to store the dimmer level.
After the color is changed, you could set the dimmer level to the value in the “Number” variable.

Does that help?