-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Option to change graph shape for brightness #437
Comments
+1 I have a similar use-case, but I'd like to reach the minimum brightness level by the time my kids go to sleep. Currently there's only the "sleep mode" which can be automated, but kind of defeats the purpose of this addon then. |
I am an adult and I also want the lights to be at minimum brightness when I go to bed. I made a fork: Wake and Sleep times The changes add a Wake time for AL to start increasing brightness instead of increasing starting at midnight. It also adds a Sleep time so AL ramps down the brightness from sunset until Sleep time and keeps it at the minimum brightness from Sleep time until Wake time. My config is now: (notice the
So far it is working fine, but I haven't tested edge cases. Definitely have the times set up so that I'm not a programmer and I don't know what I'm doing so sorry if the code is ugly/wrong. Also, this might work for #218 |
Hello @backcountrymountains, I've been using your mod and I'm happy with the changes. I noticed that the light temperature changes before the ramp down of brightness. I would like to have AL ramp down the colour temperature and brightness from sunset until Sleep time. Basically, I would like to have the colour temperature follow the same as the brightness. Is that already possible? One other suggestion, Instead of fixed wake time is it possible to have a offset to sunrise as the wake time? for example 25 minutes before sunrise as the wake time. |
I wrote a thing explaining how adaptive_lighting calculates the In my hack of adaptive_lighting, The color temperature is calculated using the
I changed the code so it adjusts the color temp from warmest at
I made a fork of my fork for I'm not sure about how to change the wake time to an offset but I like the idea and I'll look into it. Also, I found an error in my code with an edge case of exactly noon or midnight that I fixed. |
Hello @backcountrymountains Source: custom_components/adaptive_lighting/switch.py:1703 Traceback (most recent call last): and Logger: homeassistant.components.websocket_api.http.connection
Traceback (most recent call last): |
Apologies, I don't know how to use github or program. Also, it is currently necessary to have a config with It's really a hack and doesn't work for all use cases, but does work for the specific config I posted. I'm going to try and make it work better but I'm no programmer so we'll see how that goes. |
Hello @backcountrymountains , I should of explained my setup more. I had installed your fork of Adaptive lighting via hacs. It was working fine. I then copied over just the new switch.py and restarted adaptive_lights i then got those errors in logs. I've now done it again from scratch and it seems to be working. I'll keep you posted. This was after your recent update though. |
Hello again, The wake time and sleep time is working for me but the temperature colour isn't following it. It's still following the sun. |
Hi, first of all thanks @backcountrymountains for a nice contribution. It would be great if it's added to the main repo as the additional option for people who appreciate this. Definitely some polishing is still needed, however it's working fine for me. Until that time I'm going to use your "hacky" solution, because it's all what I needed. Modifying start and end transition times is a must have for me. For @TheWanderer1983 and others having a problem with the integration. I have just copied the code from https://github.com/backcountrymountains/adaptive-lighting/tree/backcountrymountains-ct-change-with-brightness/custom_components/adaptive_lighting and had to update manually one line in switch.py The temperature color and brightness are in sync. The settings I have just for reference: I hope this will help others to enjoy this great modification as well. |
Hey @dusanjencik , Thanks for the update. I had manually updated that line also to get it working, but I had changed k to 1 not -1 and it wasn't in sync. I'll give that another shot with -1. I agree, it would be nice to see changes like these in the main AL instead of a fork, I would like to continue to get code updates instead of being stuck at this release. Hopefully both wake time / sleep time and temperature change. This makes AL a useful app for me. |
Okay it looks like its working for me. Thank you @backcountrymountains . One last thing that would make this perfect is the ability to change the wake time to some offset of sunrise. If that gets implemented great, if not here is a simple HA automation script to update wake time daily to do it.
|
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! |
Please try out version 1.19.0 beta 1 🎉 🚀 |
Check out this new webapp to visualize the parameters https://basnijholt.github.io/adaptive-lighting/ adaptive-lighting.mp4 |
This is so perfect <3! I'm soo n00b though. How do I install the beta version instead of the official version? |
Check this reply by @danielbrunt57 #616 (comment) |
For my use, the brightness graph shape has much too "narrow" low brightness period, and significant offsets of sunrise/sunsets does not remedy the situation, and also impacts daytime brightness.
I live near the arctic circle, so the day is short half of the year. And, several of my lights have somewhat bright dimming curves, needing to go below 20% to get really dim.
I would LOVE to be able to use the graph shape of the color temperature for brightness values. i.e. a defined/longer period where the lights will be at/near a minimum value before going gradually up max during light daytime. This would allow my usecase of having a significantly longer period of lowly dimmed lights than current graph shapes and manipulator settings allow.
The text was updated successfully, but these errors were encountered: