Energy-efficient pool control