So, looking at using Automation Triggers and decided to use sun.sun and elevation vs. a static offset for Sunset.
My understanding of this is that it should trigger once when used as a trigger, but essentially I see this execute all night long every time the sun’s elevation changes.
If I decide to turn that device off early (say to go to bed) this seems to trigger again and turn it back on. Is there a better way to trigger this (code below)
Just following up here, since I ran across this thread for a similar issue. I believe I have a solution to the “continuously triggered” problem for sun elevation. I’m a bit new to hass, so any feedback is welcome!
I’m trying to take advantage of the trigger.from_state object in the condition to make sure that the last state was above my desired threshold. It seems to be working in my testing, just need to let it run for a couple of days to make sure it behaves as expected.