Return to previous state

Hi. The old UI used to have an option to return a device to its previous state. I don’t see that in UI5 anywhere? What I want to do is turn on the fan on my thermostat at a set time during the night, run for 20 minutes, then go back to whatever state it was in when the schedule kicked off (it might have been set to ON manually, or on auto).

Any ideas??

Excellent!!! Thanks for those!