Which drivers are you using then?
Also, after successful pairing, do you also need to press the 'reset' button for the lights to blink so that the device can be initialised / configured, using whatever drivers one is using? Or does it initialise / configure without you having to do anything else (bring close to the hub, vertical, etc. etc. -- sometimes it feels like some sort of 'voodoo IT').
I've tried three different drivers: 'Generic Zigbee' and 'Sonoff Zigbee' both from HE and these ones: [RELEASE] Sonoff Zigbee Button, Motion/Temperature&Humidity/Contact Sensor Drivers
And yes, my device has also the rattling issue, fixed by putting a toothpick in there... Does everything from Sonoff feel like it's more DYI than a market-ready product...?