The switch should be hooked up to the door (already). In fact everything should be hooked up. The only reason the generator should be on is if it is night time. The solar panel should give enough power to power it.
Maybe you have an old version? What is your version number in the top right?