Skip to content
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

Disable morning/evening brightness adjust #100

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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