Are you saying that the light actively TURNS ON at 7am? Or is it simply REMAINING ON if it was already on at 6:59am?
If it’s simply remaining on when it was already on, that’s the expected behavior based on the logic you’ve written. You’ve never told the light to explicitly turn off, which means that starting at 7:00am, it will simply retain its most recent state until it’s told to do otherwise.
No. Just one rule to turn off the light at 7:01am. That’s all. If it’s already on based on the earlier door rule, it will turn off.
If you’re saying that the light is SPONTANEOUSLY turning on at 7:00am when it was already off, that would be unusual and it sounds like a bug, unless it’s coming from another rule. But regardless, I would think that if you tell the light to turn off at 7:01, that would still address the problem.