As stated before, the top three pool equipment manufacturers have automation systems that can do just that. I can control all aspects of my pool through my pool from anywhere in the world.
This includes temperature, heater set points, valve positions, salinity level, automatic acid additions for pH control and SWG run times and percentages. I have an auto filler so the water level is irrelevant.
The only thing I can't do through my phone is clean the skimmer baskets and do a cannonball.