Energy security in the residential sector (Part 1 - Fundamentals)