ZigBeeForDomoticZ plugin Wiki

Ikea Tradfri corner

How to pair a device?

Put the plugin in pairing mode (see Add a new device), then reset the device:

Bulb Device

For a bulb, you should find between 1 and 3 new devices in your DomoticZ Device list:

If the device is not in the certified devices database, the pairing takes a little longer: the plugin discovers what the device can do before creating the widgets.

How to reset the round remote control

Press the pairing button 4 times (fast).

How to reset a Bulb

Power it off for a few minutes. Then switch it on: it sends a Device Announcement to start the pairing process.

Remote controls and motion sensor: how the events reach DomoticZ

The Ikea remote controls and the motion sensor don’t send their commands to the coordinator: they send them to a Zigbee group, created when you pair them with a bulb or an outlet. To see their events in DomoticZ, the coordinator must be a member of that group:

  1. Enable the group management, if not yet done (Enable Groups in the WebUI Settings, restart needed).
  2. Pair the bulb (or outlet) and the remote (or motion sensor) with the coordinator.
  3. Pair the remote (or motion sensor) with the bulb (see below). This creates the group.
  4. In Admin > Group, run a Full scan (or a Scan of the bulb only): the plugin asks the routers which groups they belong to, and finds the new group. The group gets its own widget in DomoticZ.
  5. In Management > Group Management, check Coordinator (in the group) for this group and click Validate.

From then on, each action on the remote or the motion sensor is visible on its widget, and you can use it in Blockly, dzVents or Lua scripts.

A step-by-step example is given in Ikea remote control as a pure remote. For more details on groups, see Group Management.

How to use the 5 buttons round Remote Control

See Ikea remote control as a pure remote for the step-by-step approach, including the Left/Right buttons.

How to use the tiny Remote switch On/off (square, usually sold with the plug)

Here is the method to get a Widget associated in DomoticZ and then to get it updated.

ATTENTION: Once reset, the switch controls group 0x0000 (which is also used by Xiaomi plugs and switches). You might have to do some cleanup in the group membership, if you want to avoid the tiny switch controlling an unexpected plug.

  1. Pair it with the coordinator

    • Press 4 times in 5 seconds when the plugin is in pairing mode.
    • This creates a Switch widget in DomoticZ, which gets the On and Off events.
  2. Make sure that the coordinator is a member of group 0000

    • With a Silicon Labs (EZSP) coordinator, enable Create Group 0000 (zigatePartOfGroup0000) in the WebUI Settings (advanced settings, Group management section), then restart the plugin.
    • Otherwise, add the coordinator to group 0000 in Management > Group Management (Coordinator (in the group)).
  3. To add devices to the group

    • Don’t use the pairing button of the switch to pair devices, otherwise you’ll lose the link with the coordinator and the events in DomoticZ.
    • Add the devices to group 0000 in Management > Group Management.

More info

How to use the Tradfri Motion sensor

  1. Pair it with the coordinator

    • This creates a Motion widget.
    • If needed, reset the Motion sensor by pressing the pairing button 4 times within 5 seconds.
  2. Pair it with a bulb

    • Hold the motion sensor close to the light source you want to add (no more than 5cm). Press and hold the pairing button for at least 10 seconds. At the end of the pairing process, the light source flashes one time.
  3. Add the coordinator to the group created by the Motion sensor, as described above.

From then on, every time the motion sensor turns on the light, you also get the motion widget On.

You might want to align the Time setting of the Motion sensor with the Reset Time of the Motion widget in DomoticZ.

More info

How to use Fyrtur connected roller blind

When an IKEA Fyrtur blind is purchased, it comes in a package which contains the blind, a wireless remote controller and a wireless repeater. All three are connected together out-of-the box, and the remote controller can be used to control the blind. Additional blind(s) can be purchased, and added to the remote controller by following the IKEA instructions.

You can factory reset blind/remote/repeater, and pairing all three together gives you the out-of-the box functionality back.

To use the blind, the blind remote and the repeater with the plugin:

  1. Put the plugin in pairing mode and factory reset the repeater.
    • The repeater pairs with the coordinator and acts as a general purpose Zigbee repeater in your network.
  2. Put the plugin in pairing mode and factory reset the blind (long press on both blind buttons).
    • The blind pairs with the coordinator, and a DomoticZ widget is created. The widget can be used to control the blind.
  3. Put the plugin in pairing mode and factory reset the blind remote (click the remote’s pairing button rapidly four times).
    • The remote pairs with the coordinator, and a DomoticZ widget is created. The widget can be used to receive the remote’s button presses (the coordinator must be in the group the remote sends to, see the tiny Remote switch above for group 0000).

After steps 1-3, the remote can be used by receiving the button presses in DomoticZ, and using DomoticZ scripting to control the blind with the blind widget.

With the following additional steps, the remote controls the blind(s) directly, through a group, and DomoticZ scripting is not necessary:

  1. In the WebUI, Management > Group Management, press Add a new Group and select the blind(s) in the group. Press Validate: the group is created. Refresh the page to see the created group, and note its Group id.
    • A DomoticZ group widget is also created.
  2. Bind the remote to this group. There is no WebUI page for group binding, so use the plugin REST API, for example with curl from the DomoticZ host:
    • Find the remote IEEE address in Management > Device Management. We use the IEEE address 680ae2fffeaae6cb in this example.
    • Unbind the remote from its default group 0000:

      curl -X PUT -d '{"sourceIeee":"680ae2fffeaae6cb", "sourceEp": "01", "groupId": "0000", "cluster": "0102"}' http://127.0.0.1:9440/rest-z4d/1/unbinding-group
      
    • Bind the remote to the group containing the blind(s), using the Group id from the previous step. We use group id 0002 in this example:

      curl -X PUT -d '{"sourceIeee":"680ae2fffeaae6cb", "sourceEp": "01", "groupId": "0002", "cluster": "0102"}' http://127.0.0.1:9440/rest-z4d/1/binding-group
      
    • The remote doesn’t appear in the Group Management page, but if everything went well it controls the blind(s) in the group.

Test that the remote controls the blind(s), and that the blind DomoticZ widget controls the blind. If you need to read the remote button presses from its DomoticZ widget, add the coordinator to the same group as the blinds (Coordinator (in the group) in Group Management).

If you need to redo the grouping of the remote, it is best to remove it from the plugin (remove the DomoticZ widget), pair it again (step 3 of the first list) and bind it to the group again.

Firmware updates

Ikea devices can be updated over the air by the plugin. See Upgrading device firmware, and IKEA: downloading the whole catalogue for the Tools/ikea-ota-download.py helper.