-
Notifications
You must be signed in to change notification settings - Fork 142
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
Speed of sunset/sunrise setting #616
Comments
I don't quite understand why The percentages used in your example |
I think what he wants is for the duration of sunrise to be either shorter or longer in addition to when it actually starts, which we can do now via At the equator, sunrise duration is only 20 minutes while further north it lengthens to upwards of an hour or more, which leads me to another approach. Rather than using sunrise_offset, allow input of a different location's cordinates for the sun curve, or an input of a +/- number of degrees to add to or subtract from the current location's coordinates. It would depend on Adaptive Lighting's internal coding, whether this is feasible or not. All food for thought... |
I have started working on #699 |
Hi folks, I have implemented this feature request in #699. That PR allows setting different with
with
It would be awesome to get some feedback! |
I for one am anxious to try this out! |
Sorry, I have not replied, and thanks for everybody's time replying. Should fo said how I saw the problem, not what I thought the solution was. rucky error. Basically, Inside a building from around 1/2-1 house after sunset, it is (for all intense and purposed) dark but the Adaptive Lighting service takes a lot longer to go to minimum brightness (maybe 2-3 hours). In the morning it is similar. I want it to stay on minimum brightness until the sun starts raising (i.e. start going to max brightness 1/2 house before sunrise and reach max brightness maybe 1 house after sunrise). So basically I am asking if there is a way of saying how long after sunset minimum darkness is reached. So maybe start reducing brightness 45 mins before sunrise and get to max brightness 45 mins after. This seems about right for the UK. Sunrise, it is similar. Maybe start getting brighter 45 mins after sunrise and reach max brightness 45 minutes after. So I guess the second curve is the closest. One way of doing this is to have a number of curves based on total duration min to max brightness around sunset/sunrise. For me, in the UK the curve may be called '1.5-hour transition' (i.e. start diming/britening 45 mins before/after sunset/sunrise) The curves could be.
The shortest would be if you were on the equator and the longest if you were furthest from the equator. In brackets, you could also have places or a Curve for each UTC time zone. Hope this makes sense and is useful. I initially thought it would be numeric parameters but looking at this post curves seem to be the way things are done. |
Please try out version 1.19.0 beta 1 🎉 🚀 |
Installed and reconfigured office lights but I won't be home to observe until tommow night 😭 |
@funkytwig You need to get your before's/after's, min/max straight as well as sunrise/sunset! :)
I think what you want is to start dimming 45 minutes before sunset and reach min brightness 45 minutes after sunset For that, install the beta, change brightness_mode from default to either tanh or linear, set brightness_mode_time_dark and brightness_mode_time_light to 2700 (seconds) which will be start 45 minutes before and end 45 minutes after sunrise/sunset. |
Check out https://basnijholt.github.io/adaptive-lighting/ for an interactive graph. |
Thanks, You lot rock. |
Love it. I take it that if the sunset/sunrise time is not set (in the adaptive lighting add-on) it uses the actual time (i.e. the change does not require the times to be set). |
Will give it a go but I've never installed 'manually' Can you point me to a howto to do this? Also, do I need to disable/remove the current Adaptive Lighting add-on first? Thanks for everybody's work. |
@funkytwig, I’m HACS there is an option “Show beta versions”: |
How do I get to this screen? I looked at Home Assistant -> Hacks -> Integratinos -> Adaptive Lighting, which judging by the faded background is there you are (Mobile) but can't work out how to get to the pop-up you are on. Do I need to remove it first? |
LOL, that was the only option I did not try. I feel quiter stupid. |
Thanks, done. Set up and will test it tonight. I set offsets to 0 and brightness_time_mode_dark/light to 2700. I noticed (you will see in the screengrab below) The long descriptions of these parameters go over the edge of the pop-up, not truncated with ...). Also these default to 900/3600, I was expecting 0. Not sure if that is relevant. |
OK, notised something else. Can raise another issue if you want. If you remove the offsets and set them blank, rather than set them to 0, it does not work. When you go back they are set to what they were before. |
"Also these default to 900/3600, I was expecting 0. Not sure if that is relevant." |
@basnijholt The integration could use better error checking of inputs there.... |
@funkytwig Perhaps you could open a new issue for @basnijholt to keep track of it... |
OK. Seems to be working well. 2700 Matched the sunset nicely. As for sunrise not sure when I will be around for it but if it happens will let you know. Nice job. |
Will test again and do so. |
Check out this new webapp to visualize the parameters https://basnijholt.github.io/adaptive-lighting/ adaptive-lighting.mp4 |
Could not sleep last night so got to test whne sun came up and it works. So basic user testig passed :-) |
So you can tweak around sunset_offset and sunrise_offset to tell AL the sun is setting/rising earlier/later but I guess there is a curve that is used to say how this happens. I would like to change this. I guess this is affected by where you are.
"The distance from the equator and the path of the sun determines not only the time of sunrise and sunset.....While a sunset near the equator lasts only about 20 minutes, in the United Kingdom, this period averages 50 minutes. In June, it's about 60 minutes in London, while in December it's 41 minutes. "worlddata.info.
I am not saying AL has got this wrong, its just I would like to be able to make my lights dim a bit quicker. Maybe telling changing the curve is a bit much for users, but maybe a sunser_speed and a sunrise_speed percentage maybe 500 to -500%. Think this would only be applied to the main bit of the curve, effectively squashing (maybe) 10% around subset/sunrise (could have a squash_curve_around_sunrise_sunset percent).
If there is anything to do to help let me know. I love the Integration. I had a little look around the code but can't work out how this would be done. Is there some type of document that explains how things are done /fit together?
The text was updated successfully, but these errors were encountered: