Append Scenes - update the configuration of scene for specifc lights without knowing the configuration for others

I’m using scenes as a “state memory” for temporary changes, e.g. via a motion sensor. Imagine the stairway to be either off (during day) or dimmed (during night), however when there is movement on the stairs, every light should be at 70%. Once movement is cleared, fall back to whatever state the lights been before.

Set this up as automation, works ok. But now add a switch into the mix, which is activated while the automation is running, i.e. to have the basement part of the stairway switch on permanently. Expected outcome before triggering the switch: all lights go into previous state once movement is cleared, expected outcome after triggering the switch, every light but the basement lights go back into previous state, basement lights stay on.

Hope I could explain, I’ve got several such situation through the house and haven’t figured out a smart way how to handle this yet. Any ideas?