Regulation of swimming pool and spa chemicals