Time-based scenario triggering

Hello, I have an SNZB-06P Presence Sensor in my kitchen. I want BasicR4 to open with a scene when it detects someone.

I can do this on Ewelink. No problem.

So how can I make this scenario only work between 6:00 PM and 12:00 AM?

when setting a scene, select the effective period option at the bottom and there select when and how long the scene will be active

Thank you very much for your help. The problem has been solved and it’s working great.