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

Manual control lights turned on with custom service data #528

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

th3w1zard1
Copy link
Collaborator

@th3w1zard1 th3w1zard1 commented Apr 3, 2023

Any light.turn_on events with custom brightness/color data will be set as manually controlled by Adaptive Lighting.

Will only work with light.turn_on calls inside of HASS, no non-ha switches are supported at this time.

@th3w1zard1
Copy link
Collaborator Author

pre-commit has been driving me up the wall with some of these errors.

function is too complex: [19]

I'm not going to make a separate function and pass a mountain of arguments just to do a few checks 🤷

@th3w1zard1
Copy link
Collaborator Author

@basnijholt Hey the autofill documentation code you implemented works! So beautiful!

@basnijholt
Copy link
Owner

I had forgotten that you started implementing this!

I am implementing an option adapt_only_on_bare_turn_on which instantly triggers manual_control when turning on with brightness or color in PR #709.

Enabling this will make sure AL doesn't take over when setting a scene, like you did here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activate manual control when lights are turned on with individual settings
2 participants