Chosen Solution

I want to control on/off function from a timed device. how can i rewire it?

You need to open it up and find where your on/off switch is. From there you can solder wires onto the contact points and connect your external timer or whatever.