ISO Timer that doesn’t cut power completely off.

I have a Christmas tree with LED lights and eight settings. I have it on an Alexa plug. The only problem is that it completely cuts off the power and the settings reset. Can you think of any automatic timer, whether through an app or not, that will turn off the tree without cutting the power completely? Does this make sense?