Well if you get it paired, then stick it in the metal box in the wall, and it looses it, you have a weak mesh network and need more routing nodes closer to the switch(s).
Here are a few posts about helping your mesh zigbee network with devices that fall off the mesh.