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

Hue Zones/groups no longer work in Adaptive Lighting #1034

Open
4 tasks done
gravityrebel opened this issue Aug 11, 2024 · 2 comments
Open
4 tasks done

Hue Zones/groups no longer work in Adaptive Lighting #1034

gravityrebel opened this issue Aug 11, 2024 · 2 comments

Comments

@gravityrebel
Copy link

gravityrebel commented Aug 11, 2024

Home Assistant Adaptive Lighting Issue Template

Bug Reports

If you need help with using or configuring Adaptive Lighting, please open a Q&A discussion thread here instead.

Before submitting a bug report, please follow these troubleshooting steps:

Please confirm that you have completed the following steps:

Required information for bug reports:

Please include the following information in your issue.

Issues missing this information may not be addressed.

  1. Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:

Here is a log of a mixed configuration that contains both individual lights and groups. Below this log I will post another log that only has groups.

2024-08-11 13:57:23.930 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519CYTS:al:JNUX:ntrv:NR' lights: 'None', transition: '45.0', force: 'False'
2024-08-11 13:57:23.933 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen: filtered_lights: '[]'
2024-08-11 13:57:23.933 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519CYTX:al:IRSW:ntrv:Q3' lights: 'None', transition: '45.0', force: 'False'
2024-08-11 13:57:23.940 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: filtered_lights: '['light.hue_color_downlight_1', 'light.hue_color_downlight_2', 'light.hue_color_downlight_4']'
2024-08-11 13:57:23.941 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01J519A4W4:al:IRSW:ntrv:Q2'
2024-08-11 13:57:23.942 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: State attributes of 'light.hue_color_downlight_1' did not change ({'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'candle', 'fire', 'prism', 'sparkle', 'opal', 'glisten', 'sunrise', 'unknown'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'effect': 'None', 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 3, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'mode': 'normal', 'dynamics': 'none', 'friendly_name': 'TV left', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}) wrt 'last_service_data' ({'entity_id': 'light.hue_color_downlight_1', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000}) (context.id=01J519CYTX:al:IRSW:ntrv:Q3)
2024-08-11 13:57:23.942 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.hue_color_downlight_1' with transition 45.0 and context.id=01J519CYTX:al:IRSW:ntrv:Q3
2024-08-11 13:57:23.954 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Setting color_temp of light light.hue_color_downlight_1
2024-08-11 13:57:23.954 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.hue_color_downlight_1 with service data {'entity_id': 'light.hue_color_downlight_1', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000}
2024-08-11 13:57:23.954 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.hue_color_downlight_1, context_id=01J519CYTX:al:IRSW:ntrv:Q3, sleep_time=45.0, force=False, max_length=1, which=both, initial_sleep=False)
2024-08-11 13:57:23.955 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01J519A4W4:al:IRSW:ntrv:Q2'
2024-08-11 13:57:23.956 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: State attributes of 'light.hue_color_downlight_2' did not change ({'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'candle', 'fire', 'prism', 'sparkle', 'opal', 'glisten', 'sunrise', 'unknown'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'effect': 'None', 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 3, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'mode': 'normal', 'dynamics': 'none', 'friendly_name': 'Over couch', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}) wrt 'last_service_data' ({'entity_id': 'light.hue_color_downlight_2', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000}) (context.id=01J519CYTX:al:IRSW:ntrv:Q3)
2024-08-11 13:57:23.956 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.hue_color_downlight_2' with transition 45.0 and context.id=01J519CYTX:al:IRSW:ntrv:Q3
2024-08-11 13:57:23.965 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Setting color_temp of light light.hue_color_downlight_2
2024-08-11 13:57:23.966 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.hue_color_downlight_2 with service data {'entity_id': 'light.hue_color_downlight_2', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000}
2024-08-11 13:57:23.966 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.hue_color_downlight_2, context_id=01J519CYTX:al:IRSW:ntrv:Q3, sleep_time=45.0, force=False, max_length=1, which=both, initial_sleep=False)
2024-08-11 13:57:23.966 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01J519A4W4:al:IRSW:ntrv:Q2'
2024-08-11 13:57:23.967 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: State attributes of 'light.hue_color_downlight_4' did not change ({'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'candle', 'fire', 'prism', 'sparkle', 'opal', 'glisten', 'sunrise', 'unknown'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'effect': 'None', 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 3, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'mode': 'normal', 'dynamics': 'none', 'friendly_name': 'Over Chaise', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}) wrt 'last_service_data' ({'entity_id': 'light.hue_color_downlight_4', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000}) (context.id=01J519CYTX:al:IRSW:ntrv:Q3)
2024-08-11 13:57:23.968 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.hue_color_downlight_4' with transition 45.0 and context.id=01J519CYTX:al:IRSW:ntrv:Q3
2024-08-11 13:57:23.970 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Setting color_temp of light light.hue_color_downlight_4
2024-08-11 13:57:23.970 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.hue_color_downlight_4 with service data {'entity_id': 'light.hue_color_downlight_4', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000}
2024-08-11 13:57:24.096 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.hue_color_downlight_4, context_id=01J519CYTX:al:IRSW:ntrv:Q3, sleep_time=45.0, force=False, max_length=1, which=both, initial_sleep=False)
2024-08-11 13:57:24.101 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hue_color_downlight_1', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000} with context.id='01J519CYTX:al:IRSW:ntrv:Q3'
2024-08-11 13:57:24.102 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hue_color_downlight_1']')' event with context.id='01J519CYTX:al:IRSW:ntrv:Q3'
2024-08-11 13:57:24.102 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01J519CYTX:al:IRSW:ntrv:Q3', is_skipped_hash='False'
2024-08-11 13:57:24.121 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hue_color_downlight_2', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000} with context.id='01J519CYTX:al:IRSW:ntrv:Q3'
2024-08-11 13:57:24.122 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hue_color_downlight_2']')' event with context.id='01J519CYTX:al:IRSW:ntrv:Q3'
2024-08-11 13:57:24.122 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01J519CYTX:al:IRSW:ntrv:Q3', is_skipped_hash='False'
2024-08-11 13:57:24.146 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hue_color_downlight_4', 'transition': 45.0, 'brightness': 3, 'color_temp_kelvin': 2000} with context.id='01J519CYTX:al:IRSW:ntrv:Q3'
2024-08-11 13:57:24.147 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hue_color_downlight_4']')' event with context.id='01J519CYTX:al:IRSW:ntrv:Q3'
2024-08-11 13:57:24.147 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01J519CYTX:al:IRSW:ntrv:Q3', is_skipped_hash='False'
2024-08-11 13:57:24.215 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519CZ3Q:al:IZUX:ntrv:O0' lights: 'None', transition: '45.0', force: 'False'
2024-08-11 13:57:24.229 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: filtered_lights: '[]'
2024-08-11 13:57:24.230 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519CZ46:al:J5TG:ntrv:NR' lights: 'None', transition: '45.0', force: 'False'
2024-08-11 13:57:24.233 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: filtered_lights: '[]'
2024-08-11 13:57:38.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.hue_color_downlight_2' with context.id='01J519DD4JQAVVTSJ39C5EM61W'
2024-08-11 13:57:38.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.hue_color_downlight_4' with context.id='01J519DD51Z61SESZ9XJKNSS21'
2024-08-11 13:57:38.607 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.hue_color_downlight_1' with context.id='01J519DD5FTGCRZKZJ15GC781M'
2024-08-11 13:57:46.519 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Den: Turning off
2024-08-11 13:57:46.522 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: _sleep_mode_switch_state_event_action, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_basement, old_state=<state switch.adaptive_lighting_sleep_mode_basement=on; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Basement @ 2024-08-11T13:15:44.547504-04:00>, new_state=<state switch.adaptive_lighting_sleep_mode_basement=off; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Basement @ 2024-08-11T13:57:46.520502-04:00>>'
2024-08-11 13:57:46.535 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519DMX7:al:IRSW:0slp:Q4' lights: 'None', transition: '1.0', force: 'True'
2024-08-11 13:57:46.547 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: filtered_lights: '[]'
2024-08-11 13:57:48.511 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Den: Turning on
2024-08-11 13:57:48.513 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: _sleep_mode_switch_state_event_action, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_basement, old_state=<state switch.adaptive_lighting_sleep_mode_basement=off; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Basement @ 2024-08-11T13:57:46.520502-04:00>, new_state=<state switch.adaptive_lighting_sleep_mode_basement=on; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Basement @ 2024-08-11T13:57:48.511981-04:00>>'
2024-08-11 13:57:48.514 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519DPV1:al:IRSW:0slp:Q5' lights: 'None', transition: '1.0', force: 'True'
2024-08-11 13:57:48.516 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Den: filtered_lights: '[]'

Only groups:

024-08-11 14:00:02.191 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: First Floor Living Spaces: Turning on
2024-08-11 14:00:02.194 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: _sleep_mode_switch_state_event_action, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_living_and_dining_room, old_state=<state switch.adaptive_lighting_sleep_mode_living_and_dining_room=off; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Living and Dining Room @ 2024-08-11T13:24:27.347526-04:00>, new_state=<state switch.adaptive_lighting_sleep_mode_living_and_dining_room=on; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Living and Dining Room @ 2024-08-11T14:00:02.192221-04:00>>'
2024-08-11 14:00:02.195 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519HSCK:al:IZUX:0slp:O2' lights: 'None', transition: '1.0', force: 'True'
2024-08-11 14:00:02.201 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: filtered_lights: '[]'
2024-08-11 14:00:03.708 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: First Floor Living Spaces: Turning off
2024-08-11 14:00:03.711 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: _sleep_mode_switch_state_event_action, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_living_and_dining_room, old_state=<state switch.adaptive_lighting_sleep_mode_living_and_dining_room=on; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Living and Dining Room @ 2024-08-11T14:00:02.192221-04:00>, new_state=<state switch.adaptive_lighting_sleep_mode_living_and_dining_room=off; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Living and Dining Room @ 2024-08-11T14:00:03.708837-04:00>>'
2024-08-11 14:00:03.711 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: '_update_attrs_and_maybe_adapt_lights' called with context.id='01J519HTVZ:al:IZUX:0slp:O3' lights: 'None', transition: '1.0', force: 'True'
2024-08-11 14:00:03.720 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] First Floor Living Spaces: filtered_lights: '[]'
  1. Your Adaptive Lighting configuration:
    Configured through UI. YAML looks like:
adaptive_lighting:

Some settings I have enabled in the UI:
Take over control
detect non ha changes
intercept
multi light intercept

  1. (If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):
    Not using

  2. Describe the bug and how to reproduce it:

Hue lights that are called via a Hue Group no longer respond to commands from Adaptive Lighting in Home Assistant after upgrading from 2024.6.4.

  1. The lights do not adapt over time
  2. The lights do not respond to manual commands such as enabling "Night Mode" or sending commands to toggle manual control on and off.

This only holds true for lights that are in a Hue group, set up from within the Hue app and exposed as a single device within home assistant, which is how AL recommends setup. Lights that are not within a group respond properly and work as normal. If an AL configuration has multiple lights it controls, grouped lights do not respond but regular lights will.

If a light that is a part of a non-responsive Hue group is added as an individual light is added to the AL configuration, it will respond.

The effect is that Hue groups no longer work and all lights will need to be exposed as individual lights unless this bug is fixed. The grouped lights otherwise respond normally to other Home Assistant commands.

  1. Steps to reproduce the behavior:
    Listed:
    1. Be on HA 2024.8
    2. Have Hue Lights set up as a group within the Hue app and exposed to Home Assistant through the Hue integration as a single device.
    3. Have the group added to an Adaptive Lighting configuration
    4. See that the group is non-responsive to commands sent from AL.
@ncd7
Copy link

ncd7 commented Aug 17, 2024

Hello, this might be a duplicate of #1021 or at least related. Could you take a look and if so, pls close this issue as duplicate. Thanks.

@gravityrebel
Copy link
Author

Hello, this might be a duplicate of #1021 or at least related. Could you take a look and if so, pls close this issue as duplicate. Thanks.

I have seen #1021 and have posted on that issue. #1021 is specific about lights being marked as manually controlled. There are similarities, but it's not necessarily the same underlying issue.

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

No branches or pull requests

2 participants