Comments (8)
Stefan,
In #27, you included a couple of images of light profiles for "natural" light, which is what I (and I think others) are looking for:
I don't think this is possible with Kelvin currently. Because the "after sunset" times are configured with specific times, a ramp time that looks like the first image would need a beforeSunrise and afterSunset times of, perhaps, 04:55 and 22:45. That works fine in the summer, but in the winter that profile would look like this:
So the sunrise/sunset shift to the golden angle helps, but doesn't address the use case of trying to get the lights to ramp to a warmer color over a consistent timeframe. I think that's why others have been asking for offsets to sunrise and sunset - they're trying to accomplish what you show in the above color temp profiles.
from kelvin.
This would be a great addition to Kelvin. I experience the same issue after sunrise and before sunset. Thanks!
from kelvin.
Hey everybody,
I'm still trying to wrap my head around the issue. I also think that a manual adjustment to the sunrise and sunset times should not be configurable because they are changing throughout the year (longer offset in the summer, shorter offset in the winter). I still stand by the reasoning in #27.
Nevertheless there seems to be a generic issue here so I'm trying to understand whats going on.
Is Kelvin to slow to adapt or to quick?
Is the problem more noticeable at sunrise or sunset? Both?
I am thinking about using a different phase of the twilight (https://www.timeanddate.com/astronomy/different-types-twilight.html) for Kelvins calculations...
from kelvin.
I experience the same issue. At sunset the color starts changing to my nighttime color. 1hour after sunset is it still very bright and cold temperature. Transition around sunset is indeed to slow and cannot be controlled.
I like to be able to define a color at sunset and also to be able to define a time relative to sunset. That way I will be able to schedule a transition period around sunset. This or another twilight functionality as mentioned would be a great addition.
Eg.
Day=4000
sunset-0:30: 3000
sunset:2900
sunset+0:30: 2800
23:00:2000
from kelvin.
After giving some more thought having a proper twilight implementation as mentioned by Stefan would be ideal.
In the mean time I have made a provional 'twilight' hack by shortning the Daytime by 60min by delaying sunrize 15min and and bringing forward sunset by 45min. Additionally I added 2 extra interval point 60min before the modified sunrize and 60min after the new sunset at 2800K.
So far it does the job. I am using Kelvin now as my default scene on all my lamps.
schedule.sunrise = TimeStamp{CalculateSunrise(date, configuration.Location.Latitude, configuration.Location.Longitude), lightSchedule.DefaultColorTemperature, lightSchedule.DefaultBrightness}
schedule.sunset = TimeStamp{CalculateSunset(date, configuration.Location.Latitude, configuration.Location.Longitude), lightSchedule.DefaultColorTemperature, lightSchedule.DefaultBrightness}
//PB Add twilight function
schedule.sunrise.Time=schedule.sunrise.Time.Add(time.Minute * 15)
schedule.sunset.Time=schedule.sunset.Time.Add(time.Minute * (-45))
and Line 264
//PB Add twilight
schedule.beforeSunrise = append(schedule.beforeSunrise, TimeStamp{schedule.sunrise.Time.Add(time.Minute * (-60)),2800,80})
schedule.afterSunset = append(schedule.afterSunset, TimeStamp{schedule.sunset.Time.Add(time.Minute * 60),2800,80})
log.Debugf("PB: Added Twilight.Schedules before:%v and after:%v",len(schedule.beforeSunrise),len(schedule.afterSunset))
from kelvin.
Stefan, I have the same issue and will try to explain the issue fully.
Ideally, I would have my Hue lights roughly match the outside, with a very high K setting during the day, decreasing toward sunset and with a low K after sunset.
My daytime light setting is accordingly a very high K. This is ideal during the day, but by the time sunset arrives, the lights are far too white. This is why people are asking for an offset - they want their lights to decrease in K as sunset approaches, rather than starting to transition once sunset arrives.
from kelvin.
With Kelvin 1.2.0 the sunrise/sunset times are shifted to another sun angle and should improve the described situation. Let me know if that works!
from kelvin.
I would like to adjust the behaviour related to sunrise and sunset as well.
My goal is to have my lights warm in the morning but gradually turn to cool during the day, then warm again at night.
I would like this process occur after the actual sunrise... my setup would ideally run from sunrise to about 10:00 am.
from kelvin.
Related Issues (20)
- After the Upgrade to v1.3.3, Kelvin No Longer Reacts to Lights Turning On HOT 4
- Push new releases to Docker Hub? HOT 1
- Possible to have defined time take precedence over sunset?
- Daylight Savings Adjustment
- Can't run on mac HOT 2
- How to make Kelvin play nicely with the "Wake up with light" automation? HOT 1
- How to stop Kelvin for disabling when physical lightswitch turned off and on? HOT 5
- How do I change the lights at exactly sunrise and sunset? HOT 1
- Kel
- Auto update to 1.3.5 failing on raspberry pi HOT 2
- Hue API v2 support
- Previous versions were deleted from Docker Hub HOT 1
- 1.3.5 unable to serve GUI HOT 2
- Disable automatic Updates HOT 1
- "enable kelvin" greyed out in dashboard
- Home Assistant OS Plugin HOT 1
- Does not work when bulp is disconected from the power grid
- Half of lights not adjusting when enableWhenLightsAppear = false
- Kelvin only applies defaultBrightness, defaultTemperature and schedules. Nothing else. HOT 3
- Auto update installed bad binary on Raspberry Pi HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kelvin.