@Didgeridrew beat me to it, but there are some “cheat sheets” on specific areas of templating - handling time, for example. Have a look in the Home Assistant Cook Book.
As far as batteries go, you might be interested in Battery Notes:
…and the Battery State Card: