Sunset triggers stopped working 2024.11

Hi I have a couple of automations and after updating to 2024.11 sunset triggers appear to have stopped working properly. It just doesn’t trigger unless setting up a delay i.e. trigger 15 mins after sunset.

I have an automation which is supposed to trigger 45 mins before sunset and it’s always worked until 2024.11 after the update it stopped working so I disabled it, re-enabled it, made changes to it deleted it and re-created it, checked the date/time on the computer and even moved home assistant entirely onto a new raspberry pi but it just won’t work.

I currently have setup 3 triggers in the automation. The original 45mins prior to sunset, at sunset and 15mins after sunset and the only one that triggers and creates a trace log is the delayed trigger (15mins after) it’s like the other two aren’t even there.

Any help would be appreciated as I’m out of ideas.

alias: "Turn on light motion control"
description: ""
triggers:
  - trigger: sun
    event: sunset
    offset: "-00:45:00"
  - trigger: sun
    event: sunset
    offset: 0
  - trigger: sun
    event: sunset
    offset: "00:15:00"
conditions: []
actions:
  - data: {}
    target:
      entity_id: automation.light_motion
    action: automation.turn_on
    enabled: true

The triggers look fine to me.

Forgive a silly question, but it looks as if the automation is going to fire three times each evening, so the last trace would naturally be for the last trigger. When you looked at the traces, did you check back to earlier ones?

Out of curiosity, why do you want to enable an automation three times. Is something else disabling it?

Thanks for the reply, I don’t want to trigger it 3 times. That’s what I’ve added in to try and get it to work. The only one that triggers in the sunset with a 15 minute offset. The others don’t trigger at all and don’t generate a trace log.

After the update to 2024.11.2 the bug has been fixed.