Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sun default elevation #620

Merged
merged 1 commit into from
Jun 6, 2019
Merged

Fix sun default elevation #620

merged 1 commit into from
Jun 6, 2019

Conversation

OttoWinter
Copy link
Member

Description:

ESPHome's sunset/sunrise calculations were always a bit off - at first I thought it was just the model being a bit off, but now I know why: Sunset is defined as the time when the entire sun disk on the horizon is no longer visible. That is at roughly -0.883 degrees.

Related issue (if applicable): fixes

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

@OttoWinter OttoWinter added this to the 1.13.5 milestone Jun 6, 2019
@OttoWinter OttoWinter merged commit e6c16e9 into dev Jun 6, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-sun-elevation branch June 6, 2019 13:12
OttoWinter added a commit that referenced this pull request Jun 8, 2019
@esphome esphome locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant