Say you're really good with Postgres, instead of just hanging out a shingle for "any Postgres stuff?" you offer something like a one time $2500 "Postgres Performance Audit".
You get really good at this one thing, have a set bunch of scripts, very deep knowledge, predone report template, etc. and providing a bunch of value. So at the end of the day who cares that it only took you 5 hours (effectively making $500/hr).
Bunch of examples: http://www.christophengelhardt.com/ultimate-badass-list-of-p...
That being said, if the client is unable to commit to tight specs and project plans, you need to revert to invoicing on a time & materials basis. But even if you do that, you should really charge a daily rate, rather than an hourly rate.
That's really going to depend on the type of work you do and the type of clients you can find. In my experience, it's difficult to get contracts with larger businesses unless you know someone already or have some sort of "in" with them. And smaller business tend to be poorly run and are barely making any money on their products and services, so they have very thin margins or are even losing money.
Practically I've had success recently by charging weekly. I keep this rate deliberately lower (about half my old full time consulting rate). Then I send them a weekly report along with the invoice every week. They get to see exactly what they got for the money. It usually takes me 15-20 hours to deliver enough value for the weekly rate.
So there are lots of things to try. Small changes in billing can have a large impact on your relationship with your client.
That mentality is similar to charge by value.
This sounds like a recipe for disaster to me without a lot more explanation. Time is the main cost to a provider, so it's very natural that time would also be the driver for billing. "Charging for value" sounds like you're trying to say "fixed price" without actually saying it. I have many, many issues with trying to do fixed price projects of any appreciable size (say, more than 20-40 hours).
What do you mean, precisely, by "charge by the value"?