Basic Rule to Turn Off Light

I have some motion rules to turn lights on, and after inactivity turn the light off.
It works most of the time, but occasionally the light is not turned off.
Tired of troubleshooting.

Will this simple rule work?

Assuming you just want to turn that switch off of it stays on for 30 minutes (regardless of motion; do keeping in mind that only tjrning the switch off and back on will "reset" this Basic Rule timer), then yep!