Get device by sn in assets plugin