#Sunset and Sunrise Offsets

1 messages · Page 1 of 1 (latest)

raven zenith
#

Can anyone help me figure out why the sunrise and sunset offsets are not working? Here's the short yam'l code. Doesn't matter what I set the #'s to my lights still come on an hour before sundown and an hour after sunrise. Even with no offsets. Here's the code any help us greatly appreciated.

condition: sun
before: sunrise
before_offset: "45"
after: sunset
after_offset: "45"

#

Sunset and Sunrise Offsets

half osprey
#

Conditions aren't triggers. What is your trigger?

#

You're also not formatting them as in the docs. I don't know what it does with just a single number

raven zenith
#

I did this in the UI this is what it had in Yam'l after. I am using a timer for the trigger. Checks conditions every minute after the sunsets.

half osprey
#

and why aren't you using a sun trigger?

#

what you're doing is not very efficient

#

and I suggest you read the docs about the format of the offset

#

Better yet, you should use a sun elevation trigger instead of sunset/sunrise

#

Explained in the docs

raven zenith
#

Thank You! Thought HA would adjust the format automatically. Now that I applied the proper format it is working. Thanks for your guidance.

half osprey
#

I do again suggest that you look into sun elevation if outside light level is really what you care about. Offsets from sunrise/sunset aren't consistent unless you live in the equator