Added device GUID and Type

Fixed a bug with NOT conditions