Capture actual state before changing it

What kind of functionality are you thinking of (delete what is not applicable):

Channel / More conditions or actions to existing channel / App functionality
Capture (Sonos, Ziggbee) state before acrivating a trigger and re-apply bij another action.

Is the functionality already available at a service like IFTTT, Alexa or Google Home?

Not that I am aware of.

What functionality would you like to propose:

e.g. I have a trigger (Goal of one of my favorate teams) which enables a kaku scene + an action for my Sonos speaker for 10 seconds. After the 10 seconds I want to return the devices (Sonos, Ziggbee lamps) to the state (Sonos to audio TV channel and volume level, Ziggbee collor and dim level) they had before the trigger was applied.