Operation Integer getDeviceActive (String devicename, String system_name), in Class Device

Documentation
returns the active value of the device
0 : means not active (not used)