In war and peace, decentralised renewable energy systems provide a safe and resilient alternative.