A similar thing was done with Siri and a garage door a while ago: http://delian.io/siri-open-the-garage
It's curious that in both cases you actually have to create a special app to enable any custom behavior from your phone. It would be nice if there were a bit more extensibility in these automated assistant/search/whatever thingies.