The water heater's setpoint schedule can be varied over the day. Turn the tank way down during times you don't want it to heat and then back up to normal setpoint value during the night.