I find connecting energy stores to stations, and then defenses to the stores is more efficient, because you will not always be staining you're energy on a station with a max of 10, but relying on a store with a max energy cap of a few hundred. This must be prepared befor ships get to close, because the stores must be filled up still. Like if this helped :D