basnijholt / adaptive-lighting

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

Adaptive Lighting screwing up Brightness. #212

Open lSh4dowl opened 2 years ago

lSh4dowl commented 2 years ago

Hey, I want to use adaptive Lighting for the sole purpose of setting the light temperature over the day, so I turned adapt brightness off.

However when I turn on my Light Group with a light card in Lovelace, somehow the light will always be set to 1% brightness.

Obviously I don't want that, I only want adaptive Lighting to set the light temp/color over the day.

Is this expected behaviour, if so, how do I turn it off ? If it's a bug feel free to ask for any logs or additional info.

Bulbs are Philips hue white Ambiance E27 integrated with ZHA,

HA and adaptive lighting are on the newest Version.

Thanks.

broyuken commented 2 years ago

I have a hue bulb thats not in AL that does the same thing. I made a script to set it to 100% when its turned on. I don't think AL is to blame here, I think its hue

PreDa21 commented 2 years ago

I am having the same issue. Recently discovered Adaptive Lighting, but want to only control the light temperature. So I turned off the Adapt Brigthness Switch, but if call a HA turn_on command with 100% brigthness, adaptive lighting sets the brightness to an other value (like it normally would, if you leave "adapt brigthness" on). Strangely enough, this does not happen every time i turn on a light...

th3w1zard1 commented 1 year ago

Could anyone having this issue please post your config and debug logs, and the model of light you're using?

jjnj023 commented 1 year ago

I have a hue bulb thats not in AL that does the same thing. I made a script to set it to 100% when its turned on. I don't think AL is to blame here, I think its hue

No, I have the same issue with Ikea lamps

broyuken commented 1 year ago

I have a hue bulb thats not in AL that does the same thing. I made a script to set it to 100% when its turned on. I don't think AL is to blame here, I think its hue

No, I have the same issue with Ikea lamps

I also have a hue bulbs that does the same thing. My automation just calls it to 100%. It’s annoying so I just put it in my closet light

jjnj023 commented 1 year ago

I have a hue bulb thats not in AL that does the same thing. I made a script to set it to 100% when its turned on. I don't think AL is to blame here, I think its hue

No, I have the same issue with Ikea lamps

I also have a hue bulbs that does the same thing. My automation just calls it to 100%. It’s annoying so I just put it in my closet light

As I also posted in another similar issue:

I actually have the same issue. I at first thought it was an issue with my network and didn't thought of it could be due to the adaptive lighting. For me this issue occurs as follows: When setting the color to a different color then it should be according to the adaptive light integration things go wrong. For example when selecting 4000K, and it should be 2200K. Turn off the lamp. Turn on the lamp again at the highest brightness, the lamp will only go to the lowest brightness while Z2m and HA think the light is set to 100. This was driving me crazy, I even bought a new zigbee stick since I thought it was related to incompatible hardware. I also tested it on the clean setup. When disabling adaptive lighting for that lamp, no issue is present. What can I do to help? What logs do you need and how do I collect them?

th3w1zard1 commented 1 year ago

@jjnj023 you can enable debug logging in home assistant, instructions are in the troubleshooting section of the readme https://github.com/basnijholt/adaptive-lighting

jjnj023 commented 1 year ago

home-assistant.log Here you go. I hope this is enough. The last actions I turned the light on. Changed the colour to a colour it ''shouldn't be'' according to the Adaptive lighting. Turned the lamp off. And when turning it on it only turns on in the dimmed state while it should be at the same state as it was turned off.

If there is any more information or logs needed, please let me know. I'm happy to help test the issue.

th3w1zard1 commented 1 year ago

As I also posted in another similar issue:

@jjnj023 Can you gather all of the comments you've gathered so I can have everything together? Some of those issues are probably duplicates but they probably have other users' comments that would be useful for me to debug the issue.

Since you're using Z2M i'd also like your configuration.yaml, devices.yaml, and groups.yaml. See https://github.com/basnijholt/adaptive-lighting/discussions/503 for instructions

jjnj023 commented 1 year ago

As I also posted in another similar issue:

@jjnj023 Can you gather all of the comments you've gathered so I can have everything together? Some of those issues are probably duplicates but they probably have other users' comments that would be useful for me to debug the issue.

Since you're using Z2M i'd also like your configuration.yaml, devices.yaml, and groups.yaml. See #503 for instructions I made a word document, Im not used to github yet. In the document you can find the issues and relevant comments.

I'm not to sure how to gather the yaml files, sorry.

Here below you can find the issues in a documents, I also gathered some relevant comments.

Brightness issues adaptive lighting.docx

th3w1zard1 commented 1 year ago

When setting the color to a different color then it should be according to the adaptive light integration things go wrong. For example when selecting 4000K, and it should be 2200K. Turn off the lamp. Turn on the lamp again at the highest brightness, the lamp will only go to the lowest brightness while Z2m and HA think the light is set to 100.

this entire comment confuses me. The values you setup for the integration are not the values it will stick with all the time: they change throughout the day. You seem to be confused on how the integration is supposed to work. adaptive-lighting adapts your lights' brightness & color according to the position of the sun. This sounds like normal behavior. In a normal setup you shouldn't be manually changing any of your lights while the integration is running: the integration is supposed to fire manual control events and stop adapting any lights that are manually controlled.

For example when selecting 4000K, and it should be 2200K

yes if you're setting 4000K as the max_color_temp, you'll only see this happen at midday or noon. as long as the adapt_color switch is on. also if you're setting max_brightness to 100%, you'll only see that happen at noon too. as long as the adapt_brightness switch is on.

If hass is reporting the wrong values with the integration disabled,which I'm only guessing since you haven't posted your config, the usual problem is reporting is turned off.

See https://github.com/basnijholt/adaptive-lighting/discussions/506 for the guide I wrote on how to configure lights for Zigbee2MQTT.

th3w1zard1 commented 1 year ago

I just went through your logs: everything that's happening in there seems normal. It is a bit hard to tell because it looks like you're constantly flipping sleep/brightness/color adapt switches and turning lights on and off while its running. If you can post logs for like 10 minutes of adaptive lighting doing its normal thing without all of that manual interference I could confirm for sure.

th3w1zard1 commented 1 year ago

@jjnj023

I'm not to sure how to gather the yaml files, sorry.

I wrote a guide on how to post your config on this link: #503

jjnj023 commented 1 year ago

Sorry to have been inactive for some time. I will try to collect the logs hopefully the coming weeks. Had some strange weeks, sorry again.

basnijholt commented 11 months ago

Is anyone still observing this problem with 1.19.0 or later?

Baswazz commented 9 months ago

I have the same issue sinds the last couple of weeks before it worked fine. When I turn the lights connected to AL ON the brightness is always 1% when I then increase the brightness manually lets say 50% and toggle the lights it is back at 1%. When I disable AL and toggle the lights it sticks at 50%.

I am using the default settings.

I already remove AL and reinstalled it trough HACS. I made sure I am running the latest homeassistent and AL it still happens

basnijholt commented 9 months ago

Without debugging logs I can’t help unfortunately.

Baswazz commented 9 months ago

Without debugging logs I can’t help unfortunately.

Hi Bas thanks for replying. I followed your instructions. After that restarted HA and turned the lights ON/OFF from my dashboard. Please let me know if there is anything I unclear or I forgot.

2023-09-25 09:17:29.953 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-25 09:17:29.954 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-25 09:17:37.466 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Setting up AdaptiveLighting with data: {'dec72e6d01a21f519b17d8b139c8b28a': {'undo_update_listener': <function ConfigEntry.add_update_listener.<locals>.<lambda> at 0x7f34dc1cf600>}} and config_entry <homeassistant.config_entries.ConfigEntry object at 0x7f3501704fb0>
2023-09-25 09:17:37.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Set switch settings for lights '['light.alle_lampen']'. now using data: '{'lights': ['light.alle_lampen'], 'interval': datetime.timedelta(seconds=90), 'transition': 45.0, 'initial_transition': 1.0, 'min_brightness': 10, 'max_brightness': 85, 'min_color_temp': 2000, 'max_color_temp': 5500, 'prefer_rgb_color': False, 'sleep_brightness': 1, 'sleep_rgb_or_color_temp': 'color_temp', 'sleep_color_temp': 1000, 'sleep_rgb_color': [255, 56, 0], 'sleep_transition': 1.0, 'transition_until_sleep': False, 'sunrise_time': None, 'min_sunrise_time': None, 'max_sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'min_sunset_time': None, 'max_sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'brightness_mode': 'default', 'brightness_mode_time_dark': datetime.timedelta(seconds=900), 'brightness_mode_time_light': datetime.timedelta(seconds=3600), 'take_over_control': True, 'detect_non_ha_changes': False, 'autoreset_control_seconds': 0, 'only_once': False, 'adapt_only_on_bare_turn_on': False, 'separate_turn_on_commands': False, 'send_split_delay': 0, 'adapt_delay': 0.0, 'skip_redundant_commands': False, 'intercept': True, 'multi_light_intercept': True, 'include_config_in_attributes': False, 'name': 'Woonkamer'}'
2023-09-25 09:17:37.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Setting up with '['light.alle_lampen']', config_entry.data: '{'name': 'Woonkamer'}', config_entry.options: '{'lights': ['light.alle_lampen'], 'interval': 90, 'transition': 45.0, 'initial_transition': 1.0, 'min_brightness': 10, 'max_brightness': 85, 'min_color_temp': 2000, 'max_color_temp': 5500, 'prefer_rgb_color': False, 'sleep_brightness': 1, 'sleep_rgb_or_color_temp': 'color_temp', 'sleep_color_temp': 1000, 'sleep_rgb_color': [255, 56, 0], 'sleep_transition': 1.0, 'transition_until_sleep': False, 'sunrise_time': 'None', 'min_sunrise_time': 'None', 'max_sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'min_sunset_time': 'None', 'max_sunset_time': 'None', 'sunset_offset': 0, 'brightness_mode': 'default', 'brightness_mode_time_dark': 900, 'brightness_mode_time_light': 3600, 'take_over_control': True, 'detect_non_ha_changes': False, 'autoreset_control_seconds': 0, 'only_once': False, 'adapt_only_on_bare_turn_on': False, 'separate_turn_on_commands': False, 'send_split_delay': 0, 'adapt_delay': 0.0, 'skip_redundant_commands': False, 'intercept': True, 'multi_light_intercept': True, 'include_config_in_attributes': False}', converted to '{'lights': ['light.alle_lampen'], 'interval': datetime.timedelta(seconds=90), 'transition': 45.0, 'initial_transition': 1.0, 'min_brightness': 10, 'max_brightness': 85, 'min_color_temp': 2000, 'max_color_temp': 5500, 'prefer_rgb_color': False, 'sleep_brightness': 1, 'sleep_rgb_or_color_temp': 'color_temp', 'sleep_color_temp': 1000, 'sleep_rgb_color': [255, 56, 0], 'sleep_transition': 1.0, 'transition_until_sleep': False, 'sunrise_time': None, 'min_sunrise_time': None, 'max_sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'min_sunset_time': None, 'max_sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'brightness_mode': 'default', 'brightness_mode_time_dark': datetime.timedelta(seconds=900), 'brightness_mode_time_light': datetime.timedelta(seconds=3600), 'take_over_control': True, 'detect_non_ha_changes': False, 'autoreset_control_seconds': 0, 'only_once': False, 'adapt_only_on_bare_turn_on': False, 'separate_turn_on_commands': False, 'send_split_delay': 0, 'adapt_delay': 0.0, 'skip_redundant_commands': False, 'intercept': True, 'multi_light_intercept': True, 'include_config_in_attributes': False, 'name': 'Woonkamer'}'.
2023-09-25 09:17:37.473 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Woonkamer: last state is <state switch.adaptive_lighting_sleep_mode_woonkamer=on; icon=mdi:sleep, friendly_name=Adaptive Lighting Sleep Mode: Woonkamer @ 2023-09-25T09:14:19.231190+02:00>
2023-09-25 09:17:37.473 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Woonkamer: Turning on
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: Woonkamer: last state is <state switch.adaptive_lighting_adapt_color_woonkamer=on; icon=mdi:sun-thermometer, friendly_name=Adaptive Lighting Adapt Color: Woonkamer @ 2023-09-25T09:14:19.231675+02:00>
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: Woonkamer: Turning on
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: Woonkamer: last state is <state switch.adaptive_lighting_adapt_brightness_woonkamer=on; icon=mdi:brightness-4, friendly_name=Adaptive Lighting Adapt Brightness: Woonkamer @ 2023-09-25T09:14:19.232111+02:00>
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: Woonkamer: Turning on
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Called 'async_turn_on', current state is 'None'
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Called '_setup_listeners'
2023-09-25 09:17:37.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Cancelled '_setup_listeners'
2023-09-25 09:17:37.475 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: '_update_attrs_and_maybe_adapt_lights' called with context.id='01HB5K6S22:al:K5XW:trn_:00' lights: 'None', transition: '1.0', force: 'True'
2023-09-25 09:17:37.475 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: filtered_lights: '[]'
2023-09-25 09:17:37.621 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform dsmr_reader
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/dsmr_reader/sensor.py", line 55, in async_added_to_hass
    await mqtt.async_subscribe(
  File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 176, in async_subscribe
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot subscribe to topic 'dsmr/reading/electricity_delivered_1', MQTT is not enabled
2023-09-25 09:17:37.629 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up dsmr_reader platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 367, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/dsmr_reader/sensor.py", line 55, in async_added_to_hass
    await mqtt.async_subscribe(
  File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 176, in async_subscribe
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot subscribe to topic 'dsmr/reading/electricity_delivered_1', MQTT is not enabled
2023-09-25 09:17:46.719 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Called '_setup_listeners'
2023-09-25 09:17:46.720 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.alle_lampen to ['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.woonkamer_tv', 'light.woonkamer_kamertafel', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.slaapkamer_nachtkastje']
2023-09-25 09:18:33.157 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HB5K8FE4C4JFCNY2E8DQ03V2', is_skipped_hash='False'
2023-09-25 09:18:33.157 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.turn_on (c:01HB5K8FE4C4JFCNY2E8DQ03V2): entity_id=['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv'], params=>', service_data='{'entity_id': ['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv'], 'params': {}}'
2023-09-25 09:18:33.158 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{'Adaptive Lighting: Woonkamer': ['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv']}', skipped='[]'
2023-09-25 09:18:33.159 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (3) _service_interceptor_turn_on_handler: intercepting entity_ids='['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv']'
2023-09-25 09:18:33.159 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Intercepted TURN_ON call with data {'params': {}, 'entity_id': ['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv']} (01HB5K8FE4C4JFCNY2E8DQ03V2)
2023-09-25 09:18:33.164 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: Setting color_temp of light light.woonkamer_tv
2023-09-25 09:18:33.164 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.woonkamer_tv with service data {'entity_id': 'light.woonkamer_tv', 'transition': 1.0, 'brightness': 3, 'color_temp_kelvin': 2000}
2023-09-25 09:18:33.165 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv']')' event with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.165 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.woonkamer_tv, context_id=01HB5K8FEC:al:K5XW:dpt_:01, sleep_time=1.0, force=False, max_length=1, which=both, initial_sleep=True)
2023-09-25 09:18:33.365 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.woonkamer_eettafel' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 3, 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:bulb-filament-hung', 'friendly_name': 'Eettafel Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.woonkamer_eettafel' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.woonkamer_eettafel' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:33.462 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.slaapkamer_nachtkastje' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], '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), 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:bulb-sultan', 'friendly_name': 'Nachtkastje Light', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.462 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.slaapkamer_nachtkastje' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.462 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.462 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.slaapkamer_nachtkastje' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:33.478 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.woonkamer_bank' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], '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), 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:bulb-spot', 'friendly_name': 'Bank Light', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.479 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.woonkamer_bank' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.479 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.479 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.woonkamer_bank' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:33.508 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.woonkamer_kamertafel' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], '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), 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:bulb-sultan-hung', 'friendly_name': 'Kamertafel Light', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.508 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.woonkamer_kamertafel' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.508 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.509 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.woonkamer_kamertafel' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:33.519 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.keuken_kookplaat' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], '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), 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:double-spot', 'friendly_name': 'kookplaat Light', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.519 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.keuken_kookplaat' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.519 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.519 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.keuken_kookplaat' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:33.530 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.woonkamer_tv' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], '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), 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:bulb-sultan', 'friendly_name': 'TV Light', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.530 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.woonkamer_tv' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.530 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.530 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.woonkamer_tv' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:33.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.keuken_aanrecht' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], '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), 'off_with_transition': False, 'off_brightness': None, 'icon': 'hue:double-spot', 'friendly_name': 'Aanrecht Light', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.keuken_aanrecht' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01HB5K8FE4C4JFCNY2E8DQ03V2'
2023-09-25 09:18:33.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.keuken_aanrecht' with context.id='01HB5K8FE4C4JFCNY2E8DQ03V2' because we are already proactively adapting
2023-09-25 09:18:37.347 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.keuken_aanrecht', 'light.keuken_kookplaat', 'light.slaapkamer_nachtkastje', 'light.woonkamer_bank', 'light.woonkamer_eettafel', 'light.woonkamer_kamertafel', 'light.woonkamer_tv']', transition=None)' event with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.woonkamer_bank' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.477 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.slaapkamer_nachtkastje' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.497 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.keuken_kookplaat' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.530 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.woonkamer_kamertafel' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.woonkamer_eettafel' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.560 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.woonkamer_tv' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:18:37.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.keuken_aanrecht' with context.id='01HB5K8KH1M287P5P7RQ9FJ5NW'
2023-09-25 09:19:17.222 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: '_update_attrs_and_maybe_adapt_lights' called with context.id='01HB5K9TF5:al:K5XW:ntrv:02' lights: 'None', transition: '45.0', force: 'False'
2023-09-25 09:19:17.224 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Woonkamer: filtered_lights: '[]'
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! 🌞🏠🌙