Sunset -30 to Sunrise +15 is not working correctly

I'm not sure what you expect to happen, but your rule technically has time as (part of) a conditional, not a trigger. Therefore, nothing will (necessarily) happen at sunset-30 or sunrise+15, so I'm not sure what you mean with that it "triggers correctly." Would I be correct to assume that you're saying this particular condition (time between sunset-30 and sunrise+15) evaluates to true (which will show as "(T)" here--the big "[TRUE]" is for that entire conditional, which as written would also necessitate this part being true) when you are outside that timeframe?

If so, there are a couple things you could check. Do your sunrise and sunset times look accurate before you manually click "Update" in your location settings? Second, keep in mind that the rule page will not dynamically update. If you want to re-evaluate your conditionals and see their true/false values at the current time, you'll have to reload the page--in other words, make sure the issue isn't that everything's fine and you've just had the page open for a while. :slight_smile:

Finally, I know you didn't ask for advice on this rule in general, but the actions are a bit odd and likely have some side effects you haven't considered. Right now, they'll turn the lights on every time the sensor sends a "motion active" event, then schedule and event to turn them off 3 and 12 minutes later. Most people would want the "off" thing to happen after motion goes inactive (and stays there for that amount of time). Nothing will cancel this future/delayed "off" action, so you'll be in the dark, even if you're still in the room making motion.

To address that: the Rule 4.0 docs contain a basic motion lighting example that is more or less what you're looking for if you want to use Rule Machine for this automation, otherwise the built-in Motion Lighting app can also handle this with ease. Neither would explain the oddity above if it's really happening, but another thing I was going to suggest was re-creating the rule just to see if it helps (maybe something got messed up internally before?), but if you're going to try that, you might as well make sure it really does what you want.

Hope this helps!