Water Heater Automation

Check this out:

It looks like one switch will work.