For an easy example....
My room with the actual toilet..
Motion active true
Turn on Toilet light
turn off delay 15m toilet light pending cancellation
Is there a better way to do this or is it fine?
The rest of the bathroom (4 other lights) gets a lot of natural lighting so I only need motion activation for the toilet room and the others at night. So they're already separated this way.