Operation String getDeviceTypeOfDevice (String devicename, String system_name), in Class Device

Documentation
returns the devicetype of the given device