Added support to get device if you have only an ip