Automation assists water and energy efficiency