Returning Lamp to previous state

using a piston for flashing a lamp as an alert. Do I need to record the current status of Philips Hue lamp (on/off, hue, level) so that after the light flashes using the Flash action (the last state is OFF), the lamp can be returned to the state it was in before…? … like “with Lamp”, “capture attributes, value: $status”, flash Lamp 2 times (on-off-on-off), “restore attributes, value:$status”?

You got it… you can capture/restore to a local store (faster but only works within that piston) or a global store (slower but can be restored from a different piston). If you don’t need the global specifically, i recommend the local.