Building energy regulation