Light on automation incorrectly turns light off immediately after trigger turns it on

I created an automation to turn my lutron caseta diva smart dimmer on at dusk every day. Reviewing the automation trace it triggers as expected, but a few seconds later it randomly turns the light off from within the automation. I did not write anything in the automation to tell the light to turn off. There are no other automations controlling this light to explain why it turns off. I attached a copy of the automation yaml and trace below. Is there a way address why the light keeps turning off immediately after the automation turns it on? Thank you.

id: ‘1769783516391’
alias: 'Dusk test ’
description: ‘’
triggers:

  • trigger: state
    entity_id:
    • sun.sun
      attribute: next_dusk
      conditions:
      actions:
  • type: turn_on
    device_id: 4dd5a50db09ecc0c892826cf80192d13
    entity_id: 9d6903a65bcdd7711c6b26f57d10d612
    domain: light
    brightness_pct: 50
    mode: single

How many automation traces are there around the 5:40pm timeframe? Did it trigger more than once?

The trigger you’ve chosen is really odd. You are triggering whenever the next_dusk attribute changes. It doesn’t matter what the timestamp actually is, or what it changes to, you are just triggering when it changes. I don’t know why you would do that.