Xiaomi Aqara Vibration Sensor Integration with Mechanical Doorbell

Hello everyone, I’m new to this community and I’m really excited to dive into the world of smart home automation. I’ve recently set up a Xiaomi Aqara Vibration Sensor and I’m trying to integrate it with my mechanical doorbell. The goal is to have the doorbell trigger an action, like sending a notification or blinking a light, when it’s activated. I’m using OpenHAB 2.5.0 for this project, and I’ve configured the sensor with the following items:

/ X Orientation of the device Number E1_deurbel_x “Deurbel vibaratie X” {channel=“mihome:sensor_vibration: xxxxxxxxxxc:orientationX”} // Y Orientation of the device Number E1_deurbel_y “Deurbel vibaratie Y” {channel=“mihome:sensor_vibration: xxxxxxxxxxc:orientationY”} // Z Orientation of the device Number E1_deurbel_z “Deurbel vibaratie Z” {channel=“mihome:sensor_vibration: xxxxxxxxxxc:orientationZ”}

I’ve also set up a rule to trigger a notification when the doorbell is pressed:

rule “Doorbell Ring” when Item E1_duerbel_x or E1_duerbel_y or E1_duerbel_x changed then sendBroadcastNotification(“Doorbell Rings”) end

However, I’m encountering some issues. The sensor’s events.log shows changes in orientation, but the rule isn’t consistently triggering the notification. Additionally, I’ve noticed a channel named “Vibration Sensor Action” in the device configuration, but I’m unsure how to utilize it effectively. Could this channel be the solution to my problem? I’m hoping someone with experience in OpenHAB and Xiaomi sensors can provide some guidance. Thanks in advance for your help!