Troubleshooting motion lighting

I'm no expert in Rule 4, but I think you might be best having some conditional statements in there.

It's best to have (in the "select actions to run")
IF this occurs
THEN do this
ELSE to this.

Such as,
IF hallway motion is active
THEN turn on light.
ELSE turn off light.

I'd suggest having a very close read of the first post in this thread. Read it many times, and get your head around it. Also, look at other peoples rules in Rule 4 (not Rule machine 3).

Here is one of my rules that I've put together yesterday.