basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.88k stars 135 forks source link

rgb/xy color for min and max colour + sleep color. #150

Open 10bn opened 3 years ago

10bn commented 3 years ago

Thx for the great work!

It would be awesome if you could add rgb/xy color support for choosing the min & max color value and for setting the sleep color value.

RubenKelevra commented 3 years ago

Hey, we have already a ticket for setting an RGB value for the sleep mode: https://github.com/basnijholt/adaptive-lighting/issues/31

Can you explain your use case, why you want to choose the RGB colors for min and max?

I guess that would be a major change, since stuff like min: 0000FF, max: 00FF00 would be possible, and since those wouldn't be on the curve for light temperatures. I'm not sure how we should determine a proper curve between such settings. :)

10bn commented 3 years ago

RGB Min Max

Use case:

[RGB] -> wakening up -> [RGB] -> still waking up (being in the bathroom e.g...) -> [Color Temp] -> Its DAY -> [RGB] -> wind down -> [Red Hour] -> bed time -> [seep mode] -> sleeping

I would like to gain more control over the light transitions during the day, allowing me to set individual transition pattern and still having all the advantages adaptive lightning provides such as, manual controlled light thresholds, automatically adjust lights after they've been turned off and on again.

Ideally one could define his own timeframes over the day and decide for each timeframe what kind of mode he wants to use e.g rgb/xy or light temperatures.

This repo has already some of these features and I'm using it partly... https://github.com/haberda/update_lights

RubenKelevra commented 2 years ago

Hey @jaddel,

I think my roadmap should cover your ideas:

Make sure to vote on the right ones.

I'll close this ticket, if something is missing, LMK.

Bucketsmith commented 2 years ago

I don't quite know the etiquette to github, so my apologies if this is considered a necro. I'd just like to add that I am looking forward to this feature the most, at the moment. My use-case is simple; during the night(user defined hours), I want incredibly low brightness, red light everywhere that my lights will turn on. This is to stop my eyes from adjusting to high light levels, and keep my head from messing with my circadian rhythm by introducing bright and/or blue light during night time. For example, when I need to go downstairs for the bathroom or a glass of water.

10bn commented 2 years ago

I don't quite know the etiquette to github, so my apologies if this is considered a necro. I'd just like to add that I am looking forward to this feature the most, at the moment. My use-case is simple; during the night(user defined hours), I want incredibly low brightness, red light everywhere that my lights will turn on. This is to stop my eyes from adjusting to high light levels, and keep my head from messing with my circadian rhythm by introducing bright and/or blue light during night time. For example, when I need to go downstairs for the bathroom or a glass of water.

This exactly what I'm looking forward to aswell. For now I created an autoamtion that turns AL off and sets a scene for the night and then turns it back on in the morning. Have you tried something like this before?

th3w1zard1 commented 1 year ago

@jaddel @Bucketsmith I believe you can do this now with sleep_rgb_or_color_temp and or adaptive_lighting.change_switch_settings in your automations. Please reach out if you need help