Automation: Triggers only once, when conditions not met. When conditions change it does not retrigger

I have a simple automation to turn on some core lights when it is approaching sunset but also on dark days when the illuminance falls below a certain value. I didn’t want it coming on while I was asleep so I put a condition on it not after 23:00 and not before 09:00.

Everything has been working fine but this morning I noticed that it was quite dark but the lights had not come on at 09:30. I looked at the traces for the automation and noticed that it had triggered (illuminance below 1400 for 2 minutes) at 08:56 and as that had not met the condition it hadn’t turned on the lights.

But the illuminance stayed below 1400 and even when the conditions changed i.e. after 09:00 the automation did not retrigger. So it seems like it will only trigger once and then not again if it stays below the 1400 illuminance level. How do I get it to trigger again even if the light level stays low?

It would help if you share the automation.

1 Like

That’s what is supposed to happen. The trigger is light changing from 1401 to 1399. If the light then stays below 1400 the trigger doesn’t fire again.

That’s how triggers and conditions work.

The automation only starts processing when a trigger becomes true. You’ll want to add the illuminance level as a condition, and a time trigger of ‘09:00:01’ too.

This has an example.

I see, that makes sense.

That link you posted was very helpful. Just duplicate the conditions and triggers.

Thanks.

1 Like