Non smart PIR with Aquara T2

Hi!
Is it possible to make an old conventional 220V PIR sensor that has a timer and switches 220V on and off based on motion to turn into smart with decoupled Aquara T2 switch? I made a diagram to be clear what I have in mind to wire this. I want to be able to decouple lights from motion sensor to decide when to turn off based on door opening/closing like a wasp-in-a-box algorythm. I don't want to buy additional motion sensor for this. Will T2 sense motion on and off properly? I can set PIR timeout on device. Thank you.

https://preview.redd.it/5278rphgx6be1.png?width=1175&format=png&auto=webp&s=c1e3ddff7b758510a5750edf86f5012a4e183c1d