Hello, I see the other similarly titled post but I am having a slightly different problem. I have my lights come on at sunset using a Rule Machine rule. The same rule has them turn off at 11pm. The Motion app also has a rule to turn on the same lights for 5m when it detects motion, after 11pm. I have a restriction set to be "on" between 11pm and sunrise. However, "on" does not mean that the rule is disabled unless it's between those times, but that it won't turn the lights ON until it is between those times. However, it has no problem turning the lights OFF. I end up with having my lights turned off at random times whenever they are on and there is motion, most noticeable between sunset and 11pm when they should be on all the time.
The Motion settings:
The log showing the ON action being ignored outside of the time restriction, but the OFF action still taking place:
This looks like a bug to me. The restriction should disable the rule outside those times. The fact that it's constantly checking the time to see if it should do something seems inefficient, and is also causing this issue.