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:
- sun.sun
- type: turn_on
device_id: 4dd5a50db09ecc0c892826cf80192d13
entity_id: 9d6903a65bcdd7711c6b26f57d10d612
domain: light
brightness_pct: 50
mode: single
