I know it’s being 6 months since your post, but I have the same problem and have no idea why I do not get deconz_events. As in your case, deconz websocket data is delivered with no problem to Home Assistant.
Thank you for getting back to me.
I never get the events. I learned from someone that deconz events are not delivered for binary_sensors and that is what Xiaomi Vibration Sensor is recognized as by Home Assistant.
Looks like Deconz changed the implementation and that is why events are not any longer available.
Do you still get the events from VIbration sensor?
Thank you for you response, but I am not sure I understand.
I have a Xiaomi Vibration sensors that Deconz presents to Home Assistant as binary_sensor. There are no deconz_events to trigger any automation from so, I am not sure how the example you proposed applies.