Better device query ( fixes #2 )

find by id or tag (tagname:tagvalue)