Set up basic rule like this:
When activates ...
Wait until stays inactive for 30 seconds, then ...
Pretty basic rule, right. Now, you of course don't want to run this when you are away, or when there is enough natural lighting in that room. So you put restriction to run it in all modes except away, and another restriction on illuminance (aqara motion sensor has also illuminance sensor in it). But now everything stops working. You go in the room, light turns on, which then trigger the restriction and cancel the rule, so it never turns off. The same if you put this rule in place in your entry hall. You go to the hall, lights turn on. You put your coat on and leave house. House now changes mode to "away", canceling this basic rule.
Shouldnt the restrictions take place only when firing off the basic rule? When the basic rule already started, it has to finish..