In the Sites dashboard of the Configuration module, you can create sites, assign devices to them, and afterwards filter for them.