I have a Xiaomi Vibration Sensor that sends two events when tilted or shaken. I have it mounted on my mailbox, that both shakes and tilts when the mailman opens/closes the mailbox.
As of now, I get two notifications when the mailbox is opened, but I want it only triggering one notification on either one of the two events.