device filtering by entity