Skip to content

Reset or re-pair a device without losing its setup

Removing a device from ZHA resets it: it forgets its bindings, its groups, and settings such as power-on behaviour or SONOFF's detached-relay mode. Sometimes you have to, for example to fix a device that misbehaves, or to stop a SONOFF 3-gang hijacking firmware updates. ZHA Bindings Manager can put it all back.

1. Make sure it's backed up

Open the device's side panel and look at Configuration. It shows the last backup.

Mains devices are backed up automatically once a week, after a scan. To be sure the backup is current, select Back up now.

It also needs a recent binding scan: the Bindings read line in the side panel should be recent. If not, select Rescan for it on the Devices tab.

2. Remove it and pair it again

Remove the device in ZHA as usual, reset it if its instructions say so, and pair it again.

3. Restore everything

About 30 seconds after it rejoins, ZHA Bindings Manager notices it's back and reads it. The Bindings tab then shows that it was paired again, with its bindings listed as lost.

Select Restore everything…. In this order, it:

  1. adds it back to the groups it was in;
  2. shows its settings from the last backup before the removal, next to what it has now (its factory settings). Untick anything you don't want, then Write … settings, then put bindings back, or Skip settings, put bindings back. If everything already matches, or there's no backup, it's just Put bindings back;
  3. puts its bindings back, and reads them from the device to confirm.

Settings compared with the backup

A battery device may need waking for step 3: press a button when asked.

Note

A device is recognised as "the same device" by its IEEE address, which doesn't change when it's reset. A new device, even of the same model, is a replace, not a re-pair.