Xiaomi aqara vibration sensor binary sensor versus last state attribute

Hi,

This sensor dont work like all the others so “state” is not that useful as it is more “event” oriented. In this thread there are a few sugestions on how to use it. I guess it’s possible to derive a vibration sensor from it using a template sensor and the same approach we do for those pir sensors that dont send a “no movement”. You turn the sensor “on” when you see the vibration event, and then use “delay_off” to turn it off. hm… I have to try, but shouldnt be too difficult.