What is the problem being solved which makes it possible to do this? Or, in other words, why don't we have this as a standard way for chargers?
Is it cost? I understand nothing about electronics really, but I'd guess at least one way to do this would be a microcontroller polling the wire and controlling a relay to turn the device on/off, no? I repeat, I understand nothing of these things. :)