ZigBeeForDomoticZ plugin Wiki

Manage Zigbee groups

This how-to explains how to create and use Zigbee groups with the plugin.

How Zigbee groups work

A Zigbee group puts several devices behind a single widget in Domoticz: an action on the group widget is applied by all the devices of the group, at the same time.

In Domoticz, each Zigbee group is a switch widget, whatever the number of devices in the group.

Enable group management

  1. In the WebUI, go to Settings, Available services, and enable Enable Groups (enablegroupmanagement).

    Settings for Group Management

  2. Click Save (Validate before plugin 9.1.009) and restart the plugin.
  3. Scan the groups (see below).

Scan the groups

Since the groups are stored in the devices, the plugin must ask the devices which groups they belong to. Do it after enabling group management, and whenever groups were created outside the plugin (for example by pairing an Ikea remote with a bulb).

  1. Make sure all the devices are connected to the network.
  2. Go to Admin > Group (see WebUI Admin).
  3. Click Scan all to ask every router, or tick some routers and click Scan N selected (before plugin 9.1.009: Full scan, or Scan of the selected routers).
  4. The routers answer over the next minutes: click Refresh to see their groups in the Member of column.

Admin > Group

The plugin creates a widget for every group found.

Create a group

  1. Go to Management > Groups (see WebUI Management).
  2. Click New.

    Creating a group

  3. Enter the Group name: it becomes the name of the Domoticz widget.
  4. Click the Add a member field and pick the devices (endpoints) of the group from the list. Type part of a name, model or short id to narrow it. Each one added shows in green, added when you save; Undo takes it back out.
  5. If needed, switch on Coordinator is a member (see below).
  6. Click Save group.

The plugin gives the group the first free group id, sends the membership request to each device and creates the group widget in Domoticz. The page reads the groups again a few seconds later and opens the new group.

Before plugin 9.1.009: Management > Group Management, Add a new Group, enter the name, select the devices in the drop-down, tick Coordinator (in the group) if needed, and click Validate. Refresh the page if the group doesn’t show.

Adding the coordinator to a group

Switch on Coordinator is a member (before plugin 9.1.009: tick Coordinator (in the group)) when the coordinator must receive the commands sent to the group, so that the plugin sees them and updates the widgets. This is needed, for example, to receive the commands of an Ikea remote: see Ikea remote.

The coordinator can only belong to a limited number of groups: see Coordinators.

Remotes

A remote sends commands to a group; it isn’t a member of it. So most remotes don’t appear in the device list, even with GroupOnBattery enabled:

Update a group

  1. Make sure all the devices of the group are connected to the network: the Health column of the members shows Live for them.
  2. Go to Management > Groups and click the group in the list.
  3. Change what you need:
    • rename the group: the Domoticz widget is renamed too;
    • add members with the Add a member field;
    • click Remove on a member to take it out of the group (Undo to keep it);
    • switch Coordinator is a member on or off.
  4. Click Save group. Discard drops your changes.

    Adding a member to a group

As for the creation, the requests are sent to the devices and the change shows once they have answered. A device that is off keeps its old membership until then. Members the page can’t offer for groups (a remote, a battery device without GroupOnBattery) are marked not offered for groups now; kept as it is and stay in the group when you save.

Before plugin 9.1.009: Management > Group Management, add or remove devices in the drop-down of the group, and click Validate. Saving there could drop the members it couldn’t list, such as a remote or a battery device.

Delete a group

Either:

The plugin asks each device of the group to leave the group. When the last one has answered, it removes the group and its widget.

Group settings

The group settings are in the Group management section of the WebUI Settings (see Group management settings):

Setting Use
GroupOnBattery Allow battery devices in groups. Off by default, since most battery devices can’t receive group commands. It doesn’t make remotes appear: see Remotes.
OnIfOneOn The group widget shows On when at least one device of the group is on. When off, all the devices must be on.
pingViaGroup When set to a group address, the plugin checks that the devices are alive through that group instead of pinging each device; 0 (default) pings each device.
zigatePartOfGroupTint Adds the coordinator to the group of the Müller Licht Tint remote (Silicon Labs coordinators). See Müller Licht / Tint.
zigatePartOfGroup0000 Creates group 0000, used by some Ikea and Xiaomi switches (Silicon Labs coordinators).
GroupLevelWithOnOff Send the Move to Level with On/Off command to groups, so that setting a level also switches the lights on.

Warnings