Would love some help accomplishing the following.
If it's bright in the room (illuminance < 300) and lights are on, keep them on for 30 mins past the last detected motion. If the lights turn off and motion is "redetected" within 30 seconds, turn the lights back on to whatever combination/setting/etc. they were before the 30 min auto-off.
If it's not bright outside and light(s) were physically turned on, leave them as long as there is motion plus 30 minutes longer. If the motion is redetected withing 30 seconds of them being auto turned off, turn the light(s) back on to the same settings/configuration they were operating before they were auto shut off.
Slowly getting better with Rule Machine logic but the above is beyond my ability. Would sure appreciate being pointed in the right direction.