Skip to content

Disable morning/evening brightness adjust#100

Open
sagaalicekarlsson wants to merge 2 commits intoclaytonjn:mainfrom
sagaalicekarlsson:Disable-morning/evening-brightness-adjust
Open

Disable morning/evening brightness adjust#100
sagaalicekarlsson wants to merge 2 commits intoclaytonjn:mainfrom
sagaalicekarlsson:Disable-morning/evening-brightness-adjust

Conversation

@sagaalicekarlsson
Copy link

Hi!

This is a pull request that is inspired by the existing CONF_DISABLE_BRIGHTNESS_ADJUST configuration, but split into morning & evening. The use case is that I am using a wake up light that configures brightness separately from the circadian lightning, but I do not want to miss out on the evening functionality by setting CONF_DISABLE_BRIGHTNESS_ADJUST to true. Instead, this PR allows for disabling the brightness adjust in the morning (or evening) while maintaining the brightness adjust for the other part of the day, as well as maintaining the color temperature from circadian while using a separate wake up light.

Feel free to ask if anything is unclear, and thank you for a well working and highly appreciated integration!

Direction is 1 for brightness increase, -1 for brightness decrease and 0 for unchanged brightness
Ignores brightness changes in the morning when CONF_DISABLE_BRIGHTNESS_ADJUST_MORNING is set  to true and in the evening if CONF_DISABLE_BRIGHTNESS_ADJUST_EVENING is set to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant