Nice option @Pjotr_van_Mourik
Disadvantage of using a door sensor is that it always require a modified app / driver and that you only have a single trigger.
An alternative option is connecting the NEW version of the Aqara Wireless Mini Switch (2018) (WXKG11LM, productID remote.b1acn01
) as explained in this topic.
Advantage of this option is that you can simply use the existing app and have the 1x, 2x click, key held, key released options (for this specific version, the older version has the 1x - 4x click options).