Device groups

Device groups allow you to define subsets of your IoT deployment that can be addressed separately from the rest of the fleet. Groups provide the flexibility and granularity you need to manage a connected product at scale.

You can create groups for many purposes, including:

  • To associate devices in a certain shipment
  • To classify by your customer
  • To allocate a selection of devices for testing
  • By your hardware version

A device can belong to zero or more groups, and groups can be overlapping.

Assigning device groups

Product device list

The product device list shows which group(s) a device belongs to, and also allows you to create new groups.

New group

The New group popup allows you to create or delete device groups.

View device

If you select a single device from the product device list, it shows details including its groups.

Clicking Edit in the upper right makes it possible to change groups for a device.

When adding devices

When adding devices to a product you can set its groups.

You can also do this when adding a single device, and when adding devices from a spreadsheet.

For more information, see Add devices.

Releasing firmware to a device group

The Firmware panel in a product is used to manage firmware versions and release versions to fleets of devices.

Clicking Release firmware brings up the options for releasing. Clicking on Groups brings up a list of device groups and also Product default.

For more information, see firmware release process.

Fleet health

When viewing the Fleet health panel of a product, you can restrict the health to the devices in a device group.

From device firmware

Normally device groups are used to manage devices in the console and for releasing product firmware. However, by using a webhook and some device firmware, you can get the device group list from user firmware running on a Particle device.

A 3rd-party library, DeviceGroupHelperRK is available to make this easier. It is also available when using Particle: Install Library in Particle Workbench. Or you can use the technique shown in the library directly in your own firmware.

✕