Here is an app that I wrote after the "demise" of Rule Machine. It will allow you to do what you want. If your running a V2 hub keep in mind that this is going to run in the cloud and not locally. Core will also do this but if you want something without a huge learning curve, this should work for you.
You will need to create a "Simulated Do Not Disturb Switch" or as is the case in my bedroom, I just use the "Box Fan Outlet" as a switch to disable the motion sensor. You can have more than one switch to disable the motion sensor. The switch must be "ON" for it to disable the motion sensor. I have also incorporated a delay off function and a lux value if you should need them. You can also tell it what level to set dimmable switches/bulbs if you have them. I have no colored bulbs so it will not change bulb colors. You can set modes that it will work in but I never got around to adding time and day of the week restrictions. I have half a dozen instances of this running in my home and have had no issues but......
I assume no liablity for any errors, ommission, lousy coding (this is one of my first apps) or sleepless nights this app may cause. Use it at your own risk
The other thing that this app does is it will keep your lights in the same state that they are when you enable the Do Not Disturb Switch. If they are on, such as in my oiffce" they will stay on. If they are off, like when I want to take a nap, they will stay off.
Also, The app requires that you tell it what lights to turn off as well as what lights to turn on. I can't remember why I did it that way but I think it had something to do with my lack of coding knowledge. In some cases, it might be useful I suppose.
If you have any questions ask. I am not on the forums everyday so it may be a couple days or so before I get back to you. If you decide to use it, I hope it works as well for you as it does for me. There is another fellow on here that I gave a copy to so, if he is around, might be able to respond quicker than I can.