How to Make Nearly Any Dumb Appliance Smart