The type for most monitored entities can be determined by the start of the entityId.
However for custom devices, the additional field "type" should be used.
The class EntityId (used in relationships) already holds this field, but it would be useful in class Entity also.