My and others' experience has been that Xiaomi/Aqara devices can be stubborn in choosing a new ZigBee parent (i.e., a repeater, or the hub itself).
If your steps result in the motion sensor dropping its connection, just remember you should first try to get it back on the network by re-joining it, without deleting it from your hub's device list.
Try, in this order:
- Put hub in discovery mode, and short-press the motion sensor's reset/pair button. If this doesn't get it connected, then...
- Put hub in discovery mode, and long-press the motion sensor's reset/pair button, just as though you are pairing it. If this doesn't work, then unfortunately, you need to...
- Delete the device, and pair it as a new device. Doing this would break any automation / rules though.
The reason why is somewhat technical, but basically Xiaomi / Aqara devices don't check in as often as most ZigBee devices, and most repeaters have a timeout on device checkin which is shorter than that of Xiaomi / Aqara devices, so the repeaters kick them off their device list. Then when the Xiaomi / Aqara devices come back trying to connect, they don't perform a rejoin sequence as asked to by the repeater.
The newest model, Samsung's 2018 Zigbee Outlet - model GP-U999SJVLDAA, has been reported by one user to work as a repeater for Xiaomi / Aqara devices. As far as I know, the other older models are not "friendly."
You probably should have a read through at least the first post of my other thread:
There's lists of repeater-capable devices reported / known to both work and not work with Xiaomi / Aqara devices.