Energy is a big subject in the HA world.
I suggest start at the beginning and gain an understanding.
When I pulled that up the first 3 links looked like they directly applied to your multipart question.Otherwise I would have passed you a single link.