The above is more or less what you want, but it's also worth asking: is there a reason you're using Rule Machine for this? Both the built-in Motion Lighting or Simple Lighting apps could handle this automation with a lot less work to set up (they work with any switch, nothing specific to lighting). If you plan on doing more and want the power of RM, I'd highly recommend reading the docs first. They contain an example almost exactly like what you're trying to do.
@bobbles that's not correct. The inactive in the "Wait for events" doesn't need to be included in the trigger. The subscription to wait for events is not dependent upon a trigger. I use this logic quite a lot. If that were true a wait for events = a certain time wouldn't work either.
Yep. You are correct on this.
I've never used wait for events and hadn't thought it through.
It's obvious when you think about it that what you say is correct as it wouldn't work otherwise.
Thanks for pointing this out to save me confusing people even more.