Control by Code of Energy Usage in Building Systems