Issues with Xiaomi Vibration Sensor

Thanks a lot for the help but I’m really struggeling trying to do what I want :frowning:

Why this sensors doesn’t work like motion sensor? That would be wwaayy easier :frowning:

The template isn’t working as I would like, for example if the sensor vibrate once, the template will stay in the “vibrate” mode until something else happen.

I’ve tried using virtual switches also but I think I’m not a good enough developper to achieve what I want.

What I want to do: the sensor vibrate once every minute when vibration is detected, I just want to receive a notification when it’s not vibrating anymore :-/

That seems so easy but really I can’t find anyway to do it easily…?