question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to Define values on sunset/sunrise

See original GitHub issue

Hi, I just noticed last night that my lights are at 100% when the sun is above horizon. I used to use Circadian Lighting previously but it didn’t work after some HA update, therefore I decided to switch into Adaptive Lighting. I’ve just noticed the difference that with Circadian Lighting, the lights/color temperatures were something like 50% once the sun was just above the horizon and not 100% as it is now.

Is there a way for me to change the configuration in a way that the light wouldn’t turn on at 100% at 04am in the morning (when the sun is just rising above horizon), as it is too bright. I know there are offsets for both sunrise and sunset, but I think this wouldn’t be the best practice to handle this.

Therefore I’m proposing that use could define the range at when the lights should go with minimum and maximum values, something like:

maximum_elevation: 80
minimum_elevation: -80

…meaning that when the sun elevation is 80 or above, it would turn the lights to maximum values (e.g. 100% and 5000k) and when the sun elevation is -80 or below, it would turn the lights to minimum values (e.g. 10% and 2000k).

Perhaps the elevation wouldn’t be the way to go either, since it varies by seasons, but I think you get the point I’m trying to make…

At least as a workaround I could just use the offsets, but I still think that wouldn’t perhaps be the best way to handle this (or at least it wouldn’t be as flexible from users perspective, because here in Finland at summer in the north the sun doesn’t set at all (meaning that the lights are full 100% at all times) for a few days and at winter it never rises above the horizon in a few days)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
RubenKelevracommented, Aug 5, 2021

@kirbo so this can be closed as duplicate? 😃

1reaction
RubenKelevracommented, Aug 4, 2021

…OOOOOR, could this integration check when the sunrises and sets (calculates how long the day lasts/how long the sun is above horizon) and calculates for example 80% of the time when the lights would be at maximum level.

For example, if the sunrise at 09 and sunset at 21 (sun above horizon for 12h), then it would calculate 12h * 80% = 9.6h, which would mean that the lights would be at 100% from 10:36 until 19:24, or something like that. My calculations might not be right, but that was just to give you an example what I’m trying to think 😅

Or easier: sunrise 10 and sunset 20, the sun would be above horizon for 10h so the lights would be at maximum level for 8 hours, which would mean from 11 until 19. And same if the sunrise at 12 and sunset at 17, above horizon for 5h, lights would be at maximum level for 4hours, from 12:30 until 16:30.

Yeah that’s basically what I meant with a more realistic curve 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sunrise, sunset bring power and knowledge - Deseret News
Sunset provides the opportunity of knowing the vast universe surrounding us in space. Sunrise is symbolic of birth, growth, new beginnings ...
Read more >
Sunrise, Sunset and Subjective Connections | Infinite Curves
Our ability to agree on subjective values is a precious commodity. If we agree, as a culture, that certain combinations of sounds are...
Read more >
Astronomical Definitions - Geoscience Australia
Sunrise and sunset. Sunrise. Sunrise is defined as the instant in the morning under ideal meteorological conditions, with standard refraction of the Sun's ......
Read more >
5 Reasons Why You Should Make Time for the Sunset
It has been proven that watching the sunrise or sunset gives you a better sense of gratitude for the earth.
Read more >
Is There a Value of Sunrise/Sunset in Indoor Cultivation?
Being able to sunrise/sunset with your LED grow lighting can have a positive effect on your crop. Learn more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found