basnijholt / adaptive-lighting

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

Help with "adapt_brightness and adapt_color are False" #938

Closed GollyJer closed 4 months ago

GollyJer commented 4 months ago

Sorry to post here, but I'm not getting any responses in the Home Assistant Discourse or the Discussions section of this repo.

Adaptive Lighting seems to have stopped working, I think, with the 2024.2 Core update. Nothing else has changed but that could be a red herring.

I'm happy to troubleshoot if someone can help point me in the right direction.

I'm getting Skipping adaptation of light.office because both adapt_brightness and adapt_color are False even though I know the light needs to be adjusted.

This is happening for every room/light but focusing on one will be easiest.

Thanks for any help! 🙏

2024-02-25 14:00:18.380 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office']')' event with context.id='01HQH4GZPB93SJD1FM0FCWCAQ3'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 89, 'color_temp_kelvin': None, 'color_temp': None, 'hs_color': (33.767, 84.314), 'rgb_color': (255, 161, 40), 'xy_color': (0.561, 0.4042), 'is_hue_group': True, 'hue_scenes': {'Cool bright', 'Read', 'Rest', 'Relax'}, 'hue_type': 'room', 'lights': {'Office Bulb 1', 'Office Bulb 2'}, 'dynamics': False, 'icon': 'mdi:lightbulb-group', 'friendly_name': 'Office', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01HQH4GZPB93SJD1FM0FCWCAQ3'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.office' with context.id='01HQH4GZPB93SJD1FM0FCWCAQ3'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HQH4GZPB93SJD1FM0FCWCAQ3'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: State change 'off' → 'on' triggered by 'light.turn_on'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HQH4GZPB93SJD1FM0FCWCAQ3'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] _mark_manual_control_if_non_bare_turn_on: entity_id='light.office', service_data='{'entity_id': 'light.office'}'
2024-02-25 14:00:19.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] all: '_update_attrs_and_maybe_adapt_lights' called with context.id='01HQH4H0S2:al:MFWG:lght:17' lights: '['light.office']', transition: '1.0', force: 'True'
2024-02-25 14:00:19.491 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] all: filtered_lights: '['light.office']'
2024-02-25 14:00:19.491 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HQH4GZPB93SJD1FM0FCWCAQ3'
2024-02-25 14:00:19.491 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] all: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.office' with transition 1.0 and context.id=01HQH4H0S2:al:MFWG:lght:17
2024-02-25 14:00:19.492 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] all: Skipping adaptation of light.office because both adapt_brightness and adapt_color are False
Psycoguana commented 4 months ago

Had this same issue.

I went into the Adaptive Lightning config (/config/integrations/integration/adaptive_lighting) Clicked in the integrations

image

Then turn on these 2:

image
basnijholt commented 4 months ago

Yes, probably @Psycoguana is right. There are two switches that you can toggle to turn brightness and color adaptation on and off.

basnijholt commented 4 months ago

[Copy pasting this message in a few recent open issues]

I just wanted to take a moment to express my heartfelt thanks to everyone that is active in this repo. Your contributions, from answering questions to addressing issues, have been invaluable. It's amazing to see how supportive and helpful our community is!

Adaptive Lighting is all about enhancing your living spaces with smart, sunlight-responsive lighting. We've had quite a few discussions and open issues recently, and I see this as a positive sign of our community's engagement and growth. If you come across anything in the documentation that's unclear or if you have suggestions for improvement, please don't hesitate to share!. Your feedback is crucial for making Adaptive Lighting better for everyone.

On a personal note, I've recently welcomed twin boys into my family, which has been an incredible and life-changing experience. As you can imagine, my time is now more limited, and while I'm doing my best to keep up with the project, there may be delays in my responses. I appreciate your understanding and patience during this time.

Rest assured, I'm fully committed to addressing any bugs, especially those related to new Home Assistant updates, as swiftly as possible. I understand that many issues may stem from hardware limitations or misunderstandings about things like Zigbee groups. Your continued support and collaboration in helping each other out not only strengthen our community but also enhance the Adaptive Lighting experience for all.

Thank you once again for your understanding, patience, and support. Let's keep our houses well lit and adaptive for maximal enjoyment of life! 🌞🏠🌙

GollyJer commented 4 months ago

Congrats @basnijholt!

Turns out, to fix my issue, I deleted the AL configurations I had set up and rebuilt them. They started working immediately. Same settings and all.👍