Skip to content

Manual control lights turned on with custom service data#528

Draft
th3w1zard1 wants to merge 8 commits intomainfrom
manual_control_lights_turned_on_with_custom_service_data
Draft

Manual control lights turned on with custom service data#528
th3w1zard1 wants to merge 8 commits intomainfrom
manual_control_lights_turned_on_with_custom_service_data

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