How to switch from AC power to battery power

I am putting my christmas tree on the ceiling this year. But I want to make it rotate. The only problem is to get the lights to come on I have to plug it into the wall. How would I switch the tree from using ac power to battery power?

iceng5 years ago
Submitted in order of ease.

Rotate it 720º CCW and then rotate it back 720º CW lets you run AC
to your tree lights.

Then you could use slip rings and finally an inverter to convert a battery
DC to AC.