Smart solar buildings