basnijholt / adaptive-lighting

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

1.19.0 light still coming back on #742

Open broyuken opened 1 year ago

broyuken commented 1 year ago

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:
Debug logs located in next comment
  1. Your Adaptive Lighting configuration:
Attributes
Configuration
lights:
- light.office_corner_lightstrip
interval: 300
transition: 10
initial_transition: 0
min_brightness: 1
max_brightness: 100
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: 90
transition_until_sleep: false
sunrise_time: null
min_sunrise_time: null
max_sunrise_time: null
sunrise_offset: 0
sunset_time: null
min_sunset_time: null
max_sunset_time: null
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: true
separate_turn_on_commands: false
send_split_delay: 0
adapt_delay: 0
skip_redundant_commands: true
multi_light_intercept: false
include_config_in_attributes: true
name: Office Corner Lightstrip
Manual control
Brightness pct
100
Color temp kelvin
5,030
Color temp mired
198
Rgb color
255, 228.61, 206.97
Xy color
0.37, 0.35
Hs color
26.25, 18.82
Sun position
0.87
Force rgb color
false
Autoreset time remaining
{}
  1. (If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):

    • devices.yaml
    • groups.yaml
    • configuration.yaml ⚠️; Warning REMOVE ALL of the PERSONAL INFORMATION BELOW before posting ⚠️;
      • mqtt: server:
      • mqtt: user:
      • mqtt: password:
      • advanced: pan_id:
      • advanced: network_key:
      • anything in log_syslog if you use this
    • Brand and model number of problematic light(s)
      I use ZHA
  2. Describe the bug and how to reproduce it: I'm on 1.19.0 and just had a light turn back on at 7:48 this morning. Here are the debug logs from that time period. The light turned off via an automation at 7:42am and turned back on by itself at 7:48.

  3. Steps to reproduce the behavior: Enable AL on a light, enable debug logging, wait to see if it turns on randomly.

broyuken commented 1 year ago
2023-08-11 07:40:12.570 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110}) (context.id=01H7J6B7WS:al:JVQX:ntrv:IY)
2023-08-11 07:40:12.570 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6B7WS:al:JVQX:ntrv:IY
2023-08-11 07:40:12.571 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110}
2023-08-11 07:40:12.571 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6B7WS:al:JVQX:ntrv:IY, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:40:12.571 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110} with context.id='01H7J6B7WS:al:JVQX:ntrv:IY'
2023-08-11 07:40:12.571 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6B7WS:al:JVQX:ntrv:IY'
2023-08-11 07:40:12.571 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6B7WS:al:JVQX:ntrv:IY', is_skipped_hash='False'
2023-08-11 07:40:13.564 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6B8VW:al:IJQX:ntrv:FT' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:13.566 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:19.065 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6BE7S:al:IJQX:ntrv:FU' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:19.067 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:24.605 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6BKMX:al:IJQX:ntrv:FV' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:24.607 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:26.349 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Closet Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6BNBD:al:INWG:ntrv:3V' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:40:30.106 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6BS0T:al:IJQX:ntrv:FW' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:30.108 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:35.606 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6BYCP:al:IJQX:ntrv:FX' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:35.608 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:41.107 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6C3RK:al:IJQX:ntrv:FY' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:41.109 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:43.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6C5NZ:al:JVQX:ntrv:IZ' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:40:43.072 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:40:43.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6B7WS:al:JVQX:ntrv:IY'
2023-08-11 07:40:43.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110}) (context.id=01H7J6C5NZ:al:JVQX:ntrv:IZ)
2023-08-11 07:40:43.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6C5NZ:al:JVQX:ntrv:IZ
2023-08-11 07:40:43.074 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110}
2023-08-11 07:40:43.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6C5NZ:al:JVQX:ntrv:IZ, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:40:43.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110} with context.id='01H7J6C5NZ:al:JVQX:ntrv:IZ'
2023-08-11 07:40:43.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6C5NZ:al:JVQX:ntrv:IZ'
2023-08-11 07:40:43.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6C5NZ:al:JVQX:ntrv:IZ', is_skipped_hash='False'
2023-08-11 07:40:46.608 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6C94G:al:IJQX:ntrv:FZ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:46.610 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:52.110 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6CEGE:al:IJQX:ntrv:G0' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:52.112 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:40:57.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6CKWB:al:IJQX:ntrv:G1' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:40:57.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:03.112 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6CS87:al:IJQX:ntrv:G2' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:03.113 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:08.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6CYM4:al:IJQX:ntrv:G3' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:08.614 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:13.572 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6D3F4:al:JVQX:ntrv:J0' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:41:13.573 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:41:13.573 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6C5NZ:al:JVQX:ntrv:IZ'
2023-08-11 07:41:13.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 110}) (context.id=01H7J6D3F4:al:JVQX:ntrv:J0)
2023-08-11 07:41:13.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6D3F4:al:JVQX:ntrv:J0
2023-08-11 07:41:13.575 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}
2023-08-11 07:41:13.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6D3F4:al:JVQX:ntrv:J0, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:41:13.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111} with context.id='01H7J6D3F4:al:JVQX:ntrv:J0'
2023-08-11 07:41:13.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6D3F4:al:JVQX:ntrv:J0'
2023-08-11 07:41:13.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6D3F4:al:JVQX:ntrv:J0', is_skipped_hash='False'
2023-08-11 07:41:14.113 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6D401:al:IJQX:ntrv:G4' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:14.115 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:19.614 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6D9BY:al:IJQX:ntrv:G5' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:19.616 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:25.115 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6DEQT:al:IJQX:ntrv:G6' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:25.116 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:30.615 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6DM3Q:al:IJQX:ntrv:G7' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:30.617 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:36.116 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6DSFM:al:IJQX:ntrv:G8' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:36.118 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:41.617 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6DYVH:al:IJQX:ntrv:G9' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:41.619 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:44.072 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6E188:al:JVQX:ntrv:J1' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:41:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:41:44.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6D3F4:al:JVQX:ntrv:J0'
2023-08-11 07:41:44.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}) (context.id=01H7J6E188:al:JVQX:ntrv:J1)
2023-08-11 07:41:44.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6E188:al:JVQX:ntrv:J1
2023-08-11 07:41:44.075 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}
2023-08-11 07:41:44.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6E188:al:JVQX:ntrv:J1, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:41:44.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111} with context.id='01H7J6E188:al:JVQX:ntrv:J1'
2023-08-11 07:41:44.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6E188:al:JVQX:ntrv:J1'
2023-08-11 07:41:44.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6E188:al:JVQX:ntrv:J1', is_skipped_hash='False'
2023-08-11 07:41:47.118 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6E47E:al:IJQX:ntrv:GA' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:47.120 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:48.644 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6E5Q4:al:J5TG:ntrv:35' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:41:48.646 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: filtered_lights: '['light.office_corner_lightstrip']'
2023-08-11 07:41:48.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6508F:al:J5TG:ntrv:34'
2023-08-11 07:41:48.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.office_corner_lightstrip' with transition 10.0 and context.id=01H7J6E5Q4:al:J5TG:ntrv:35
2023-08-11 07:41:48.649 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: Setting color_temp of light light.office_corner_lightstrip
2023-08-11 07:41:48.649 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.office_corner_lightstrip with service data {'entity_id': 'light.office_corner_lightstrip', 'transition': 10.0, 'brightness': 255, 'color_temp_kelvin': 3615}
2023-08-11 07:41:48.649 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.office_corner_lightstrip, context_id=01H7J6E5Q4:al:J5TG:ntrv:35, sleep_time=10.0, force=False, max_length=1, which=both, initial_sleep=False)
2023-08-11 07:41:48.649 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_corner_lightstrip', 'transition': 10.0, 'brightness': 255, 'color_temp_kelvin': 3615} with context.id='01H7J6E5Q4:al:J5TG:ntrv:35'
2023-08-11 07:41:48.650 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_corner_lightstrip']')' event with context.id='01H7J6E5Q4:al:J5TG:ntrv:35'
2023-08-11 07:41:48.650 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6E5Q4:al:J5TG:ntrv:35', is_skipped_hash='False'
2023-08-11 07:41:48.883 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_corner_lightstrip' '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.HS: 'hs'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3623, 'color_temp': 276, 'hs_color': (27.059, 42.165), 'rgb_color': (255, 195, 147), 'xy_color': (0.446, 0.371), 'off_with_transition': False, 'off_brightness': None, 'icon': 'mdi:led-strip', 'friendly_name': 'Office Corner Lightstrip Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7J6E5Q4:al:J5TG:ntrv:35'
2023-08-11 07:41:48.883 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.office_corner_lightstrip=on; 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.HS: 'hs'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3623, color_temp=276, hs_color=(27.059, 42.165), rgb_color=(255, 195, 147), xy_color=(0.446, 0.371), off_with_transition=False, off_brightness=None, icon=mdi:led-strip, friendly_name=Office Corner Lightstrip Light, supported_features=40 @ 2023-08-11T07:11:24.747143-04:00>' found for light.office_corner_lightstrip
2023-08-11 07:41:48.884 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.office_corner_lightstrip
2023-08-11 07:41:52.620 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6E9KC:al:IJQX:ntrv:GB' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:52.622 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:58.121 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6EEZ9:al:IJQX:ntrv:GC' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:41:58.123 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:41:58.886 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.office_corner_lightstrip
2023-08-11 07:42:03.621 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6EMB5:al:IJQX:ntrv:GD' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:03.623 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:09.122 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6ESQ2:al:IJQX:ntrv:GE' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:09.124 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:14.573 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6EZ1D:al:JVQX:ntrv:J2' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:42:14.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:42:14.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6E188:al:JVQX:ntrv:J1'
2023-08-11 07:42:14.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}) (context.id=01H7J6EZ1D:al:JVQX:ntrv:J2)
2023-08-11 07:42:14.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6EZ1D:al:JVQX:ntrv:J2
2023-08-11 07:42:14.576 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}
2023-08-11 07:42:14.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6EZ1D:al:JVQX:ntrv:J2, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:42:14.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111} with context.id='01H7J6EZ1D:al:JVQX:ntrv:J2'
2023-08-11 07:42:14.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6EZ1D:al:JVQX:ntrv:J2'
2023-08-11 07:42:14.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6EZ1D:al:JVQX:ntrv:J2', is_skipped_hash='False'
2023-08-11 07:42:14.623 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6EZ2Z:al:IJQX:ntrv:GF' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:14.625 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:20.124 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6F4EW:al:IJQX:ntrv:GG' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:20.126 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:25.625 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6F9TS:al:IJQX:ntrv:GH' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:25.627 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:31.126 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6FF6P:al:IJQX:ntrv:GI' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:31.128 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:36.627 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6FMJK:al:IJQX:ntrv:GJ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:36.629 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:42.128 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6FSYG:al:IJQX:ntrv:GK' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:42.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:45.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6FWTH:al:JVQX:ntrv:J3' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:42:45.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:42:45.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6EZ1D:al:JVQX:ntrv:J2'
2023-08-11 07:42:45.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}) (context.id=01H7J6FWTH:al:JVQX:ntrv:J3)
2023-08-11 07:42:45.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6FWTH:al:JVQX:ntrv:J3
2023-08-11 07:42:45.076 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}
2023-08-11 07:42:45.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6FWTH:al:JVQX:ntrv:J3, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:42:45.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111} with context.id='01H7J6FWTH:al:JVQX:ntrv:J3'
2023-08-11 07:42:45.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6FWTH:al:JVQX:ntrv:J3'
2023-08-11 07:42:45.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6FWTH:al:JVQX:ntrv:J3', is_skipped_hash='False'
2023-08-11 07:42:46.282 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_lamp_floor', 'light.office_corner_lightstrip']', transition=30)' event with context.id='01H7J6FY05YN3A21E4GYDV3SA7'
2023-08-11 07:42:46.455 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.office_corner_lightstrip' with context.id='01H7J6FY05YN3A21E4GYDV3SA7'
2023-08-11 07:42:46.794 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.office_lamp_floor' with context.id='01H7J6FY05YN3A21E4GYDV3SA7'
2023-08-11 07:42:47.629 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6FZAD:al:IJQX:ntrv:GL' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:47.631 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:53.129 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6G4P9:al:IJQX:ntrv:GM' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:53.131 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:42:58.631 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6GA27:al:IJQX:ntrv:GN' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:42:58.633 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:04.133 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6GFE5:al:IJQX:ntrv:GO' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:04.135 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:09.634 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6GMT1:al:IJQX:ntrv:GP' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:09.635 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:15.135 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6GT5Y:al:IJQX:ntrv:GQ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:15.136 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:15.574 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6GTKN:al:JVQX:ntrv:J4' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:43:15.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:43:15.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6FWTH:al:JVQX:ntrv:J3'
2023-08-11 07:43:15.575 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 111}) (context.id=01H7J6GTKN:al:JVQX:ntrv:J4)
2023-08-11 07:43:15.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6GTKN:al:JVQX:ntrv:J4
2023-08-11 07:43:15.577 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}
2023-08-11 07:43:15.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6GTKN:al:JVQX:ntrv:J4, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:43:15.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112} with context.id='01H7J6GTKN:al:JVQX:ntrv:J4'
2023-08-11 07:43:15.578 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6GTKN:al:JVQX:ntrv:J4'
2023-08-11 07:43:15.578 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6GTKN:al:JVQX:ntrv:J4', is_skipped_hash='False'
2023-08-11 07:43:20.648 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6GZJ8:al:IJQX:ntrv:GR' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:20.650 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:26.141 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6H4XX:al:IJQX:ntrv:GS' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:26.143 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:31.642 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6HA9T:al:IJQX:ntrv:GT' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:31.644 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:37.143 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6HFNQ:al:IJQX:ntrv:GU' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:37.145 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:42.643 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6HN1K:al:IJQX:ntrv:GV' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:42.645 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:46.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6HRCV:al:JVQX:ntrv:J5' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:43:46.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:43:46.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6GTKN:al:JVQX:ntrv:J4'
2023-08-11 07:43:46.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}) (context.id=01H7J6HRCV:al:JVQX:ntrv:J5)
2023-08-11 07:43:46.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6HRCV:al:JVQX:ntrv:J5
2023-08-11 07:43:46.078 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}
2023-08-11 07:43:46.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6HRCV:al:JVQX:ntrv:J5, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:43:46.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112} with context.id='01H7J6HRCV:al:JVQX:ntrv:J5'
2023-08-11 07:43:46.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6HRCV:al:JVQX:ntrv:J5'
2023-08-11 07:43:46.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6HRCV:al:JVQX:ntrv:J5', is_skipped_hash='False'
2023-08-11 07:43:48.144 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6HTDG:al:IJQX:ntrv:GW' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:48.146 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:53.646 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6HZSD:al:IJQX:ntrv:GX' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:53.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:43:59.147 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6J55A:al:IJQX:ntrv:GY' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:43:59.148 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:04.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JAH7:al:IJQX:ntrv:GZ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:04.649 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:10.149 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JFX5:al:IJQX:ntrv:H0' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:10.151 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:15.650 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JN92:al:IJQX:ntrv:H1' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:15.652 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:16.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JP60:al:JVQX:ntrv:J6' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:16.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:44:16.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6HRCV:al:JVQX:ntrv:J5'
2023-08-11 07:44:16.578 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}) (context.id=01H7J6JP60:al:JVQX:ntrv:J6)
2023-08-11 07:44:16.578 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6JP60:al:JVQX:ntrv:J6
2023-08-11 07:44:16.579 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}
2023-08-11 07:44:16.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6JP60:al:JVQX:ntrv:J6, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:44:16.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112} with context.id='01H7J6JP60:al:JVQX:ntrv:J6'
2023-08-11 07:44:16.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6JP60:al:JVQX:ntrv:J6'
2023-08-11 07:44:16.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6JP60:al:JVQX:ntrv:J6', is_skipped_hash='False'
2023-08-11 07:44:21.153 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JTN1:al:IJQX:ntrv:H2' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:21.154 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:25.443 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sengled Bulbs: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYV3:al:KNSW:ntrv:5S' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.445 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sengled Bulbs: filtered_lights: '[]'
2023-08-11 07:44:25.460 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Novostella Bulbs: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYVM:al:JZXX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.462 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Novostella Bulbs: filtered_lights: '[]'
2023-08-11 07:44:25.479 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYW7:al:JNUX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.480 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: filtered_lights: '['light.kitchen_table_light']'
2023-08-11 07:44:25.480 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J69SDJ:al:JNUX:ntrv:5O'
2023-08-11 07:44:25.481 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: State attributes of 'light.kitchen_table_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 121, 'icon': 'phu:pendant-long', 'friendly_name': 'Kitchen Table Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.kitchen_table_light', 'transition': 10.0, 'brightness': 122}) (context.id=01H7J6JYW7:al:JNUX:ntrv:5P)
2023-08-11 07:44:25.481 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.kitchen_table_light' with transition 10.0 and context.id=01H7J6JYW7:al:JNUX:ntrv:5P
2023-08-11 07:44:25.482 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.kitchen_table_light with service data {'entity_id': 'light.kitchen_table_light', 'transition': 10.0, 'brightness': 124}
2023-08-11 07:44:25.482 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.kitchen_table_light, context_id=01H7J6JYW7:al:JNUX:ntrv:5P, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:44:25.482 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_light', 'transition': 10.0, 'brightness': 124} with context.id='01H7J6JYW7:al:JNUX:ntrv:5P'
2023-08-11 07:44:25.483 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_light']')' event with context.id='01H7J6JYW7:al:JNUX:ntrv:5P'
2023-08-11 07:44:25.483 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6JYW7:al:JNUX:ntrv:5P', is_skipped_hash='False'
2023-08-11 07:44:25.490 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Ceiling Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYWH:al:J5TG:ntrv:5N' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.491 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Ceiling Light: filtered_lights: '[]'
2023-08-11 07:44:25.504 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Porch String Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYX0:al:KBXX:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.506 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Porch String Lights: filtered_lights: '[]'
2023-08-11 07:44:25.514 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Ceiling Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYXA:al:JRUX:ntrv:5N' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.515 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Ceiling Lights: filtered_lights: '[]'
2023-08-11 07:44:25.522 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room TV Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYXJ:al:JRUX:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.524 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room TV Lightstrip: filtered_lights: '[]'
2023-08-11 07:44:25.537 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Playroom Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYY1:al:KBWG:ntrv:5Q' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.539 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Playroom Light: filtered_lights: '[]'
2023-08-11 07:44:25.545 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYY9:al:JNUX:ntrv:5R' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.547 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: filtered_lights: '['light.kitchen_ceiling_lights']'
2023-08-11 07:44:25.547 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J69SFM:al:JNUX:ntrv:5Q'
2023-08-11 07:44:25.547 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.kitchen_ceiling_lights' with transition 10.0 and context.id=01H7J6JYY9:al:JNUX:ntrv:5R
2023-08-11 07:44:25.548 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: Setting color_temp of light light.kitchen_ceiling_lights
2023-08-11 07:44:25.548 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.kitchen_ceiling_lights with service data {'entity_id': 'light.kitchen_ceiling_lights', 'transition': 10.0, 'brightness': 239, 'color_temp_kelvin': 2000}
2023-08-11 07:44:25.549 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.kitchen_ceiling_lights, context_id=01H7J6JYY9:al:JNUX:ntrv:5R, sleep_time=10.0, force=False, max_length=1, which=both, initial_sleep=False)
2023-08-11 07:44:25.549 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_ceiling_lights', 'transition': 10.0, 'brightness': 239, 'color_temp_kelvin': 2000} with context.id='01H7J6JYY9:al:JNUX:ntrv:5R'
2023-08-11 07:44:25.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_ceiling_lights']')' event with context.id='01H7J6JYY9:al:JNUX:ntrv:5R'
2023-08-11 07:44:25.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6JYY9:al:JNUX:ntrv:5R', is_skipped_hash='False'
2023-08-11 07:44:25.559 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Lamp: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYYQ:al:J5TG:ntrv:5Z' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.561 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Lamp: filtered_lights: '[]'
2023-08-11 07:44:25.582 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Bookshelf Light Strips: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JYZE:al:JRUX:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.584 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Bookshelf Light Strips: filtered_lights: '[]'
2023-08-11 07:44:25.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.kitchen_ceiling_lights' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6993, 'min_mireds': 143, 'max_mireds': 500, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.HS: 'hs'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 239, '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': 'mdi:light-recessed', 'friendly_name': 'Kitchen Ceiling Lights', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7J6JYY9:al:JNUX:ntrv:5R'
2023-08-11 07:44:25.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.kitchen_ceiling_lights=on; min_color_temp_kelvin=2000, max_color_temp_kelvin=6993, min_mireds=143, max_mireds=500, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.HS: 'hs'>, <ColorMode.XY: 'xy'>], color_mode=color_temp, brightness=239, 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=mdi:light-recessed, friendly_name=Kitchen Ceiling Lights, supported_features=40 @ 2023-08-11T06:48:40.695408-04:00>' found for light.kitchen_ceiling_lights
2023-08-11 07:44:25.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.kitchen_ceiling_lights
2023-08-11 07:44:25.620 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JZ0M:al:JRUX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.622 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Lamps: filtered_lights: '[]'
2023-08-11 07:44:25.644 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.kitchen_table_light' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 124, 'icon': 'phu:pendant-long', 'friendly_name': 'Kitchen Table Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01H7J6JYW7:al:JNUX:ntrv:5P'
2023-08-11 07:44:25.645 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.kitchen_table_light=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=124, icon=phu:pendant-long, friendly_name=Kitchen Table Light, supported_features=32 @ 2023-08-11T07:21:48.576018-04:00>' found for light.kitchen_table_light
2023-08-11 07:44:25.645 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.kitchen_table_light
2023-08-11 07:44:25.654 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Mirror Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JZ1P:al:JVQX:ntrv:5N' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.656 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Mirror Lightstrip: filtered_lights: '[]'
2023-08-11 07:44:25.667 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JZ23:al:JVQX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.669 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom: filtered_lights: '[]'
2023-08-11 07:44:25.669 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Entryway Ceiling Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JZ25:al:IVXH:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.670 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Entryway Ceiling Lights: filtered_lights: '[]'
2023-08-11 07:44:25.671 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Upstairs Hallway Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JZ26:al:KVYH:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.691 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Fan: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6JZ2V:al:JVQX:ntrv:5N' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:25.693 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Fan: filtered_lights: '[]'
2023-08-11 07:44:26.654 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6K00Y:al:IJQX:ntrv:H3' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:26.656 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:32.155 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6K5CV:al:IJQX:ntrv:H4' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:32.157 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:35.598 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.kitchen_ceiling_lights
2023-08-11 07:44:35.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.kitchen_table_light
2023-08-11 07:44:37.656 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6KARR:al:IJQX:ntrv:H5' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:37.658 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:43.157 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6KG4N:al:IJQX:ntrv:H6' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:43.159 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:47.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6KKZ4:al:JVQX:ntrv:J7' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:44:47.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:44:47.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6JP60:al:JVQX:ntrv:J6'
2023-08-11 07:44:47.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}) (context.id=01H7J6KKZ4:al:JVQX:ntrv:J7)
2023-08-11 07:44:47.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6KKZ4:al:JVQX:ntrv:J7
2023-08-11 07:44:47.079 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}
2023-08-11 07:44:47.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6KKZ4:al:JVQX:ntrv:J7, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:44:47.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112} with context.id='01H7J6KKZ4:al:JVQX:ntrv:J7'
2023-08-11 07:44:47.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6KKZ4:al:JVQX:ntrv:J7'
2023-08-11 07:44:47.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6KKZ4:al:JVQX:ntrv:J7', is_skipped_hash='False'
2023-08-11 07:44:48.658 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6KNGJ:al:IJQX:ntrv:H7' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:48.660 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:54.158 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6KTWE:al:IJQX:ntrv:H8' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:54.160 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:44:59.662 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6M08D:al:IJQX:ntrv:H9' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:44:59.664 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:05.162 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6M5MA:al:IJQX:ntrv:HA' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:05.164 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:10.662 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6MB06:al:IJQX:ntrv:HB' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:10.664 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:16.163 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6MGC3:al:IJQX:ntrv:HC' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:16.165 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:17.577 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6MHR9:al:JVQX:ntrv:J8' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:45:17.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:45:17.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6KKZ4:al:JVQX:ntrv:J7'
2023-08-11 07:45:17.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}) (context.id=01H7J6MHR9:al:JVQX:ntrv:J8)
2023-08-11 07:45:17.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6MHR9:al:JVQX:ntrv:J8
2023-08-11 07:45:17.580 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}
2023-08-11 07:45:17.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6MHR9:al:JVQX:ntrv:J8, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:45:17.581 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112} with context.id='01H7J6MHR9:al:JVQX:ntrv:J8'
2023-08-11 07:45:17.581 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6MHR9:al:JVQX:ntrv:J8'
2023-08-11 07:45:17.582 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6MHR9:al:JVQX:ntrv:J8', is_skipped_hash='False'
2023-08-11 07:45:21.664 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6MNR0:al:IJQX:ntrv:HD' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:21.666 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:26.850 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Closet Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6MTT2:al:INWG:ntrv:3W' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:45:27.165 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6MV3X:al:IJQX:ntrv:HE' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:27.166 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:32.530 ERROR (MainThread) [zigpy.device] Failed to parse message (b'08070a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:32.599 ERROR (MainThread) [zigpy.device] Failed to parse message (b'08080a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:32.666 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6N0FT:al:IJQX:ntrv:HF' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:32.668 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:32.704 ERROR (MainThread) [zigpy.device] Failed to parse message (b'08090a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:32.859 ERROR (MainThread) [zigpy.device] Failed to parse message (b'080a0a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:33.031 ERROR (MainThread) [zigpy.device] Failed to parse message (b'080b0a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:33.193 ERROR (MainThread) [zigpy.device] Failed to parse message (b'080c0a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:33.249 ERROR (MainThread) [zigpy.device] Failed to parse message (b'080d0a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:33.326 ERROR (MainThread) [zigpy.device] Failed to parse message (b'080e0a08f04800') on cluster 768, because Data is too short to contain 1 bytes
2023-08-11 07:45:38.167 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6N5VP:al:IJQX:ntrv:HG' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:38.168 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:43.668 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6NB7M:al:IJQX:ntrv:HH' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:43.670 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:48.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6NFHD:al:JVQX:ntrv:J9' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:45:48.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:45:48.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6MHR9:al:JVQX:ntrv:J8'
2023-08-11 07:45:48.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 111, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 112}) (context.id=01H7J6NFHD:al:JVQX:ntrv:J9)
2023-08-11 07:45:48.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6NFHD:al:JVQX:ntrv:J9
2023-08-11 07:45:48.080 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}
2023-08-11 07:45:48.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6NFHD:al:JVQX:ntrv:J9, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:45:48.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113} with context.id='01H7J6NFHD:al:JVQX:ntrv:J9'
2023-08-11 07:45:48.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6NFHD:al:JVQX:ntrv:J9'
2023-08-11 07:45:48.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6NFHD:al:JVQX:ntrv:J9', is_skipped_hash='False'
2023-08-11 07:45:48.129 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.master_bathroom_sink_light' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01H7J6NFHD:al:JVQX:ntrv:J9'
2023-08-11 07:45:48.129 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.master_bathroom_sink_light=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=113, icon=mdi:vanity-light, friendly_name=Master Bathroom Sink Light, supported_features=32 @ 2023-08-11T07:01:28.643883-04:00>' found for light.master_bathroom_sink_light
2023-08-11 07:45:48.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.master_bathroom_sink_light
2023-08-11 07:45:49.168 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6NGKG:al:IJQX:ntrv:HI' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:49.170 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:54.669 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6NNZC:al:IJQX:ntrv:HJ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:45:54.671 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:45:58.132 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.master_bathroom_sink_light
2023-08-11 07:46:00.169 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6NVB9:al:IJQX:ntrv:HK' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:00.171 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:05.670 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6P0Q6:al:IJQX:ntrv:HL' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:05.672 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:11.171 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6P632:al:IJQX:ntrv:HM' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:11.172 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:16.672 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6PBF0:al:IJQX:ntrv:HN' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:16.674 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:18.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6PDAJ:al:JVQX:ntrv:JA' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:46:18.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:46:18.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6NFHD:al:JVQX:ntrv:J9'
2023-08-11 07:46:18.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}) (context.id=01H7J6PDAJ:al:JVQX:ntrv:JA)
2023-08-11 07:46:18.581 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6PDAJ:al:JVQX:ntrv:JA
2023-08-11 07:46:18.581 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}
2023-08-11 07:46:18.582 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6PDAJ:al:JVQX:ntrv:JA, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:46:18.582 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113} with context.id='01H7J6PDAJ:al:JVQX:ntrv:JA'
2023-08-11 07:46:18.583 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6PDAJ:al:JVQX:ntrv:JA'
2023-08-11 07:46:18.583 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6PDAJ:al:JVQX:ntrv:JA', is_skipped_hash='False'
2023-08-11 07:46:22.172 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6PGTW:al:IJQX:ntrv:HO' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:22.174 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:27.673 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6PP6S:al:IJQX:ntrv:HP' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:27.676 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:33.174 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6PVJP:al:IJQX:ntrv:HQ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:33.176 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:38.675 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Q0YJ:al:IJQX:ntrv:HR' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:38.676 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:44.175 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Q6AF:al:IJQX:ntrv:HS' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:44.177 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:49.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6QB3Q:al:JVQX:ntrv:JB' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:46:49.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:46:49.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6PDAJ:al:JVQX:ntrv:JA'
2023-08-11 07:46:49.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}) (context.id=01H7J6QB3Q:al:JVQX:ntrv:JB)
2023-08-11 07:46:49.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6QB3Q:al:JVQX:ntrv:JB
2023-08-11 07:46:49.082 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}
2023-08-11 07:46:49.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6QB3Q:al:JVQX:ntrv:JB, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:46:49.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113} with context.id='01H7J6QB3Q:al:JVQX:ntrv:JB'
2023-08-11 07:46:49.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6QB3Q:al:JVQX:ntrv:JB'
2023-08-11 07:46:49.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6QB3Q:al:JVQX:ntrv:JB', is_skipped_hash='False'
2023-08-11 07:46:49.146 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6QB5T:al:J5TG:ntrv:36' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:46:49.149 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: filtered_lights: '[]'
2023-08-11 07:46:49.676 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6QBPC:al:IJQX:ntrv:HT' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:49.678 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:46:55.177 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6QH29:al:IJQX:ntrv:HU' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:46:55.179 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:00.678 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6QPE6:al:IJQX:ntrv:HV' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:00.680 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:04.513 ERROR (MainThread) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: [Errno 104] Connection reset by peer
2023-08-11 07:47:06.179 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6QVT2:al:IJQX:ntrv:HW' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:06.180 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:11.679 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6R15Z:al:IJQX:ntrv:HX' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:11.681 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:17.180 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6R6HV:al:IJQX:ntrv:HY' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:17.181 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:19.580 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6R8WW:al:JVQX:ntrv:JC' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:47:19.581 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:47:19.581 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6QB3Q:al:JVQX:ntrv:JB'
2023-08-11 07:47:19.582 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}) (context.id=01H7J6R8WW:al:JVQX:ntrv:JC)
2023-08-11 07:47:19.582 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6R8WW:al:JVQX:ntrv:JC
2023-08-11 07:47:19.583 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}
2023-08-11 07:47:19.583 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6R8WW:al:JVQX:ntrv:JC, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:47:19.584 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113} with context.id='01H7J6R8WW:al:JVQX:ntrv:JC'
2023-08-11 07:47:19.584 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6R8WW:al:JVQX:ntrv:JC'
2023-08-11 07:47:19.584 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6R8WW:al:JVQX:ntrv:JC', is_skipped_hash='False'
2023-08-11 07:47:22.680 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6RBXR:al:IJQX:ntrv:HZ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:22.682 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:28.181 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6RH9N:al:IJQX:ntrv:I0' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:28.183 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:33.682 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6RPNH:al:IJQX:ntrv:I1' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:33.683 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:39.182 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6RW1E:al:IJQX:ntrv:I2' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:39.184 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:44.683 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6S1DB:al:IJQX:ntrv:I3' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:44.685 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:50.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6S6P0:al:JVQX:ntrv:JD' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:47:50.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:47:50.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6R8WW:al:JVQX:ntrv:JC'
2023-08-11 07:47:50.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}) (context.id=01H7J6S6P0:al:JVQX:ntrv:JD)
2023-08-11 07:47:50.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6S6P0:al:JVQX:ntrv:JD
2023-08-11 07:47:50.083 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}
2023-08-11 07:47:50.084 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6S6P0:al:JVQX:ntrv:JD, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:47:50.084 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113} with context.id='01H7J6S6P0:al:JVQX:ntrv:JD'
2023-08-11 07:47:50.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6S6P0:al:JVQX:ntrv:JD'
2023-08-11 07:47:50.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6S6P0:al:JVQX:ntrv:JD', is_skipped_hash='False'
2023-08-11 07:47:50.184 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6S6S8:al:IJQX:ntrv:I4' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:50.186 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:47:55.685 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6SC54:al:IJQX:ntrv:I5' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:47:55.686 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:00.761 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_corner_lightstrip' '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.HS: 'hs'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 1, 'color_temp_kelvin': 3623, 'color_temp': 276, 'hs_color': (27.059, 42.165), 'rgb_color': (255, 195, 147), 'xy_color': (0.446, 0.371), 'off_with_transition': False, 'off_brightness': None, 'icon': 'mdi:led-strip', 'friendly_name': 'Office Corner Lightstrip Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y'
2023-08-11 07:48:00.762 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.office_corner_lightstrip' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y'
2023-08-11 07:48:00.762 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6SH3Q3HECVMPDHTMEM30Y'
2023-08-11 07:48:00.762 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: delta_time='314.30855' > delay='30'
2023-08-11 07:48:00.762 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6SH3Q3HECVMPDHTMEM30Y'
2023-08-11 07:48:00.762 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: Ignoring 'off' → 'on' event for 'light.office_corner_lightstrip' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False
2023-08-11 07:48:00.763 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.office_corner_lightstrip' as manually controlled.
2023-08-11 07:48:01.185 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6SHH1:al:IJQX:ntrv:I6' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:01.187 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:06.687 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6SPWY:al:IJQX:ntrv:I7' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:06.688 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:12.188 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6SW8V:al:IJQX:ntrv:I8' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:12.189 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:17.689 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6T1MR:al:IJQX:ntrv:I9' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:17.690 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:20.584 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6T4F8:al:JVQX:ntrv:JE' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:48:20.585 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:48:20.585 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6S6P0:al:JVQX:ntrv:JD'
2023-08-11 07:48:20.586 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 113}) (context.id=01H7J6T4F8:al:JVQX:ntrv:JE)
2023-08-11 07:48:20.586 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6T4F8:al:JVQX:ntrv:JE
2023-08-11 07:48:20.593 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}
2023-08-11 07:48:20.594 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6T4F8:al:JVQX:ntrv:JE, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:48:20.594 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114} with context.id='01H7J6T4F8:al:JVQX:ntrv:JE'
2023-08-11 07:48:20.595 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6T4F8:al:JVQX:ntrv:JE'
2023-08-11 07:48:20.595 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6T4F8:al:JVQX:ntrv:JE', is_skipped_hash='False'
2023-08-11 07:48:23.189 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6T70N:al:IJQX:ntrv:IA' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:23.191 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:28.690 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6TCCJ:al:IJQX:ntrv:IB' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:28.692 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:34.190 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6THRE:al:IJQX:ntrv:IC' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:34.192 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:39.691 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6TQ4B:al:IJQX:ntrv:ID' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:39.693 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:45.192 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6TWG8:al:IJQX:ntrv:IE' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:45.194 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:50.693 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6V1W5:al:IJQX:ntrv:IF' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:50.695 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:48:51.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6V28D:al:JVQX:ntrv:JF' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:48:51.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:48:51.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6T4F8:al:JVQX:ntrv:JE'
2023-08-11 07:48:51.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}) (context.id=01H7J6V28D:al:JVQX:ntrv:JF)
2023-08-11 07:48:51.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6V28D:al:JVQX:ntrv:JF
2023-08-11 07:48:51.088 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}
2023-08-11 07:48:51.088 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6V28D:al:JVQX:ntrv:JF, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:48:51.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114} with context.id='01H7J6V28D:al:JVQX:ntrv:JF'
2023-08-11 07:48:51.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6V28D:al:JVQX:ntrv:JF'
2023-08-11 07:48:51.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6V28D:al:JVQX:ntrv:JF', is_skipped_hash='False'
2023-08-11 07:48:56.195 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6V783:al:IJQX:ntrv:IG' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:48:56.197 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:01.697 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6VCM1:al:IJQX:ntrv:IH' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:01.699 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:07.198 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6VHZY:al:IJQX:ntrv:II' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:07.200 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:12.699 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6VQBV:al:IJQX:ntrv:IJ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:12.701 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:18.200 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6VWQR:al:IJQX:ntrv:IK' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:18.202 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:21.586 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W01J:al:JVQX:ntrv:JG' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:21.587 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:49:21.587 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6V28D:al:JVQX:ntrv:JF'
2023-08-11 07:49:21.588 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}) (context.id=01H7J6W01J:al:JVQX:ntrv:JG)
2023-08-11 07:49:21.588 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6W01J:al:JVQX:ntrv:JG
2023-08-11 07:49:21.589 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}
2023-08-11 07:49:21.589 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6W01J:al:JVQX:ntrv:JG, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:49:21.589 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114} with context.id='01H7J6W01J:al:JVQX:ntrv:JG'
2023-08-11 07:49:21.590 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6W01J:al:JVQX:ntrv:JG'
2023-08-11 07:49:21.590 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6W01J:al:JVQX:ntrv:JG', is_skipped_hash='False'
2023-08-11 07:49:23.701 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W23N:al:IJQX:ntrv:IL' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:23.703 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:25.944 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sengled Bulbs: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W49Q:al:KNSW:ntrv:5T' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:25.946 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sengled Bulbs: filtered_lights: '[]'
2023-08-11 07:49:25.961 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Novostella Bulbs: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4A8:al:JZXX:ntrv:5Q' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:25.963 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Novostella Bulbs: filtered_lights: '[]'
2023-08-11 07:49:25.980 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4AW:al:JNUX:ntrv:5Q' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:25.981 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: filtered_lights: '['light.kitchen_table_light']'
2023-08-11 07:49:25.981 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6JYW7:al:JNUX:ntrv:5P'
2023-08-11 07:49:25.982 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: State attributes of 'light.kitchen_table_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 124, 'icon': 'phu:pendant-long', 'friendly_name': 'Kitchen Table Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.kitchen_table_light', 'transition': 10.0, 'brightness': 124}) (context.id=01H7J6W4AW:al:JNUX:ntrv:5Q)
2023-08-11 07:49:25.982 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.kitchen_table_light' with transition 10.0 and context.id=01H7J6W4AW:al:JNUX:ntrv:5Q
2023-08-11 07:49:25.983 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.kitchen_table_light with service data {'entity_id': 'light.kitchen_table_light', 'transition': 10.0, 'brightness': 126}
2023-08-11 07:49:25.983 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.kitchen_table_light, context_id=01H7J6W4AW:al:JNUX:ntrv:5Q, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:49:25.983 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Table Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_light', 'transition': 10.0, 'brightness': 126} with context.id='01H7J6W4AW:al:JNUX:ntrv:5Q'
2023-08-11 07:49:25.984 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_light']')' event with context.id='01H7J6W4AW:al:JNUX:ntrv:5Q'
2023-08-11 07:49:25.984 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6W4AW:al:JNUX:ntrv:5Q', is_skipped_hash='False'
2023-08-11 07:49:25.992 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Ceiling Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4B8:al:J5TG:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:25.993 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Ceiling Light: filtered_lights: '[]'
2023-08-11 07:49:26.005 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Porch String Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4BN:al:KBXX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.007 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Porch String Lights: filtered_lights: '[]'
2023-08-11 07:49:26.015 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Ceiling Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4BZ:al:JRUX:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.016 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Ceiling Lights: filtered_lights: '[]'
2023-08-11 07:49:26.023 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room TV Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4C7:al:JRUX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.027 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room TV Lightstrip: filtered_lights: '[]'
2023-08-11 07:49:26.038 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Playroom Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4CP:al:KBWG:ntrv:5R' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.040 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Playroom Light: filtered_lights: '[]'
2023-08-11 07:49:26.045 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4CX:al:JNUX:ntrv:5S' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.047 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: filtered_lights: '['light.kitchen_ceiling_lights']'
2023-08-11 07:49:26.047 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6JYY9:al:JNUX:ntrv:5R'
2023-08-11 07:49:26.047 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.kitchen_ceiling_lights' with transition 10.0 and context.id=01H7J6W4CX:al:JNUX:ntrv:5S
2023-08-11 07:49:26.049 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: Setting color_temp of light light.kitchen_ceiling_lights
2023-08-11 07:49:26.049 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.kitchen_ceiling_lights with service data {'entity_id': 'light.kitchen_ceiling_lights', 'transition': 10.0, 'brightness': 244, 'color_temp_kelvin': 2000}
2023-08-11 07:49:26.049 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.kitchen_ceiling_lights, context_id=01H7J6W4CX:al:JNUX:ntrv:5S, sleep_time=10.0, force=False, max_length=1, which=both, initial_sleep=False)
2023-08-11 07:49:26.050 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Ceiling Lights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_ceiling_lights', 'transition': 10.0, 'brightness': 244, 'color_temp_kelvin': 2000} with context.id='01H7J6W4CX:al:JNUX:ntrv:5S'
2023-08-11 07:49:26.050 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_ceiling_lights']')' event with context.id='01H7J6W4CX:al:JNUX:ntrv:5S'
2023-08-11 07:49:26.050 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6W4CX:al:JNUX:ntrv:5S', is_skipped_hash='False'
2023-08-11 07:49:26.059 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Lamp: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4DB:al:J5TG:ntrv:60' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.061 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Lamp: filtered_lights: '[]'
2023-08-11 07:49:26.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Bookshelf Light Strips: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4E2:al:JRUX:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Bookshelf Light Strips: filtered_lights: '[]'
2023-08-11 07:49:26.120 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4F8:al:JRUX:ntrv:5Q' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.123 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room Lamps: filtered_lights: '[]'
2023-08-11 07:49:26.142 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.kitchen_table_light' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 126, 'icon': 'phu:pendant-long', 'friendly_name': 'Kitchen Table Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01H7J6W4AW:al:JNUX:ntrv:5Q'
2023-08-11 07:49:26.142 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.kitchen_table_light=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=126, icon=phu:pendant-long, friendly_name=Kitchen Table Light, supported_features=32 @ 2023-08-11T07:21:48.576018-04:00>' found for light.kitchen_table_light
2023-08-11 07:49:26.143 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.kitchen_table_light
2023-08-11 07:49:26.155 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Mirror Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4GB:al:JVQX:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.156 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Mirror Lightstrip: filtered_lights: '[]'
2023-08-11 07:49:26.167 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4GQ:al:JVQX:ntrv:5Q' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.169 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom: filtered_lights: '[]'
2023-08-11 07:49:26.169 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Entryway Ceiling Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4GS:al:IVXH:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.170 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Entryway Ceiling Lights: filtered_lights: '[]'
2023-08-11 07:49:26.171 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Upstairs Hallway Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4GV:al:KVYH:ntrv:5P' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.193 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Fan: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W4HH:al:JVQX:ntrv:5O' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:26.195 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bedroom Fan: filtered_lights: '[]'
2023-08-11 07:49:26.491 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.kitchen_ceiling_lights' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6993, 'min_mireds': 143, 'max_mireds': 500, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.HS: 'hs'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 244, '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': 'mdi:light-recessed', 'friendly_name': 'Kitchen Ceiling Lights', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7J6W4CX:al:JNUX:ntrv:5S'
2023-08-11 07:49:26.491 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.kitchen_ceiling_lights=on; min_color_temp_kelvin=2000, max_color_temp_kelvin=6993, min_mireds=143, max_mireds=500, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.HS: 'hs'>, <ColorMode.XY: 'xy'>], color_mode=color_temp, brightness=244, 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=mdi:light-recessed, friendly_name=Kitchen Ceiling Lights, supported_features=40 @ 2023-08-11T06:48:40.695408-04:00>' found for light.kitchen_ceiling_lights
2023-08-11 07:49:26.492 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.kitchen_ceiling_lights
2023-08-11 07:49:29.202 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6W7FJ:al:IJQX:ntrv:IM' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:29.204 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:34.703 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6WCVE:al:IJQX:ntrv:IN' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:34.705 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:36.145 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.kitchen_table_light
2023-08-11 07:49:36.497 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.kitchen_ceiling_lights
2023-08-11 07:49:40.203 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6WJ7B:al:IJQX:ntrv:IO' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:40.205 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:45.704 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6WQK8:al:IJQX:ntrv:IP' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:45.706 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:51.205 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6WWZ5:al:IJQX:ntrv:IQ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:51.207 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:49:52.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6WXTP:al:JVQX:ntrv:JH' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:49:52.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:49:52.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6W01J:al:JVQX:ntrv:JG'
2023-08-11 07:49:52.088 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}) (context.id=01H7J6WXTP:al:JVQX:ntrv:JH)
2023-08-11 07:49:52.088 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6WXTP:al:JVQX:ntrv:JH
2023-08-11 07:49:52.089 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}
2023-08-11 07:49:52.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6WXTP:al:JVQX:ntrv:JH, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:49:52.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114} with context.id='01H7J6WXTP:al:JVQX:ntrv:JH'
2023-08-11 07:49:52.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6WXTP:al:JVQX:ntrv:JH'
2023-08-11 07:49:52.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6WXTP:al:JVQX:ntrv:JH', is_skipped_hash='False'
2023-08-11 07:49:56.706 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6X2B2:al:IJQX:ntrv:IR' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:49:56.708 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:02.207 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6X7PZ:al:IJQX:ntrv:IS' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:02.209 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:07.708 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6XD2W:al:IJQX:ntrv:IT' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:07.710 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:13.208 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6XJER:al:IJQX:ntrv:IU' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:13.209 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:18.709 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6XQTN:al:IJQX:ntrv:IV' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:18.711 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:22.587 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6XVKV:al:JVQX:ntrv:JI' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:50:22.588 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:50:22.589 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6WXTP:al:JVQX:ntrv:JH'
2023-08-11 07:50:22.589 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 113, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 114}) (context.id=01H7J6XVKV:al:JVQX:ntrv:JI)
2023-08-11 07:50:22.589 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6XVKV:al:JVQX:ntrv:JI
2023-08-11 07:50:22.590 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}
2023-08-11 07:50:22.590 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6XVKV:al:JVQX:ntrv:JI, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:50:22.591 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115} with context.id='01H7J6XVKV:al:JVQX:ntrv:JI'
2023-08-11 07:50:22.598 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6XVKV:al:JVQX:ntrv:JI'
2023-08-11 07:50:22.598 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6XVKV:al:JVQX:ntrv:JI', is_skipped_hash='False'
2023-08-11 07:50:22.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.master_bathroom_sink_light' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 116, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01H7J6XVKV:al:JVQX:ntrv:JI'
2023-08-11 07:50:22.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.master_bathroom_sink_light=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=116, icon=mdi:vanity-light, friendly_name=Master Bathroom Sink Light, supported_features=32 @ 2023-08-11T07:01:28.643883-04:00>' found for light.master_bathroom_sink_light
2023-08-11 07:50:22.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 10.0 seconds for light light.master_bathroom_sink_light
2023-08-11 07:50:24.210 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6XX6J:al:IJQX:ntrv:IW' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:24.212 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:27.351 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Closet Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Y08Q:al:INWG:ntrv:3X' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:50:29.710 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Y2JE:al:IJQX:ntrv:IX' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:29.712 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:32.649 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.master_bathroom_sink_light
2023-08-11 07:50:35.211 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Y7YB:al:IJQX:ntrv:IY' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:35.213 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:40.712 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6YDA8:al:IJQX:ntrv:IZ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:40.714 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:46.213 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6YJP5:al:IJQX:ntrv:J0' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:46.215 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:51.714 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6YR22:al:IJQX:ntrv:J1' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:51.724 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:50:53.088 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6YSD0:al:JVQX:ntrv:JJ' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:50:53.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:50:53.089 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6XVKV:al:JVQX:ntrv:JI'
2023-08-11 07:50:53.090 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 116, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}) (context.id=01H7J6YSD0:al:JVQX:ntrv:JJ)
2023-08-11 07:50:53.090 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6YSD0:al:JVQX:ntrv:JJ
2023-08-11 07:50:53.091 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}
2023-08-11 07:50:53.091 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6YSD0:al:JVQX:ntrv:JJ, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:50:53.091 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115} with context.id='01H7J6YSD0:al:JVQX:ntrv:JJ'
2023-08-11 07:50:53.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6YSD0:al:JVQX:ntrv:JJ'
2023-08-11 07:50:53.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6YSD0:al:JVQX:ntrv:JJ', is_skipped_hash='False'
2023-08-11 07:50:57.215 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6YXDZ:al:IJQX:ntrv:J2' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:50:57.217 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:02.717 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Z2SW:al:IJQX:ntrv:J3' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:02.718 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:08.217 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6Z85S:al:IJQX:ntrv:J4' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:08.219 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:13.718 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6ZDHP:al:IJQX:ntrv:J5' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:13.720 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:19.219 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6ZJXK:al:IJQX:ntrv:J6' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:19.221 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:23.589 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6ZQ65:al:JVQX:ntrv:JK' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:51:23.590 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:51:23.591 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6YSD0:al:JVQX:ntrv:JJ'
2023-08-11 07:51:23.591 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 116, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}) (context.id=01H7J6ZQ65:al:JVQX:ntrv:JK)
2023-08-11 07:51:23.591 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J6ZQ65:al:JVQX:ntrv:JK
2023-08-11 07:51:23.592 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}
2023-08-11 07:51:23.592 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J6ZQ65:al:JVQX:ntrv:JK, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:51:23.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115} with context.id='01H7J6ZQ65:al:JVQX:ntrv:JK'
2023-08-11 07:51:23.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J6ZQ65:al:JVQX:ntrv:JK'
2023-08-11 07:51:23.593 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J6ZQ65:al:JVQX:ntrv:JK', is_skipped_hash='False'
2023-08-11 07:51:24.719 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6ZR9F:al:IJQX:ntrv:J7' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:24.721 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:30.221 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J6ZXND:al:IJQX:ntrv:J8' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:30.223 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:35.722 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70319:al:IJQX:ntrv:J9' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:35.724 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:41.222 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J708D6:al:IJQX:ntrv:JA' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:41.224 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:46.723 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70DS3:al:IJQX:ntrv:JB' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:46.725 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:49.646 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70GME:al:J5TG:ntrv:37' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:51:49.650 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: Light 'light.office_corner_lightstrip' was turned just turned off, context.id='01H7J70GME:al:J5TG:ntrv:37'
2023-08-11 07:51:49.651 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office Corner Lightstrip: filtered_lights: '[]'
2023-08-11 07:51:52.224 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70K50:al:IJQX:ntrv:JC' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:52.226 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:51:54.090 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70MZA:al:JVQX:ntrv:JL' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:51:54.091 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:51:54.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J6ZQ65:al:JVQX:ntrv:JK'
2023-08-11 07:51:54.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 116, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}) (context.id=01H7J70MZA:al:JVQX:ntrv:JL)
2023-08-11 07:51:54.092 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J70MZA:al:JVQX:ntrv:JL
2023-08-11 07:51:54.093 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}
2023-08-11 07:51:54.093 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J70MZA:al:JVQX:ntrv:JL, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:51:54.094 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115} with context.id='01H7J70MZA:al:JVQX:ntrv:JL'
2023-08-11 07:51:54.094 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J70MZA:al:JVQX:ntrv:JL'
2023-08-11 07:51:54.095 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J70MZA:al:JVQX:ntrv:JL', is_skipped_hash='False'
2023-08-11 07:51:57.724 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70RGW:al:IJQX:ntrv:JD' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:51:57.726 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:03.224 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J70XWR:al:IJQX:ntrv:JE' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:03.226 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:08.726 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J7138P:al:IJQX:ntrv:JF' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:08.728 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:14.227 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J718MK:al:IJQX:ntrv:JG' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:14.229 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:19.728 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J71E0G:al:IJQX:ntrv:JH' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:19.730 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:24.609 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J71JS1:al:JVQX:ntrv:JM' lights: 'None', transition: '10.0', force: 'False'
2023-08-11 07:52:24.610 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: filtered_lights: '['light.master_bathroom_sink_light']'
2023-08-11 07:52:24.610 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7J70MZA:al:JVQX:ntrv:JL'
2023-08-11 07:52:24.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: State attributes of 'light.master_bathroom_sink_light' did not change ({'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 116, 'icon': 'mdi:vanity-light', 'friendly_name': 'Master Bathroom Sink Light', 'supported_features': <LightEntityFeature.TRANSITION: 32>}) wrt 'last_service_data' ({'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}) (context.id=01H7J71JS1:al:JVQX:ntrv:JM)
2023-08-11 07:52:24.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.master_bathroom_sink_light' with transition 10.0 and context.id=01H7J71JS1:al:JVQX:ntrv:JM
2023-08-11 07:52:24.612 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.master_bathroom_sink_light with service data {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115}
2023-08-11 07:52:24.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.master_bathroom_sink_light, context_id=01H7J71JS1:al:JVQX:ntrv:JM, sleep_time=10.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2023-08-11 07:52:24.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Master Bathroom Sink Light: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.master_bathroom_sink_light', 'transition': 10.0, 'brightness': 115} with context.id='01H7J71JS1:al:JVQX:ntrv:JM'
2023-08-11 07:52:24.613 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.master_bathroom_sink_light']')' event with context.id='01H7J71JS1:al:JVQX:ntrv:JM'
2023-08-11 07:52:24.613 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01H7J71JS1:al:JVQX:ntrv:JM', is_skipped_hash='False'
2023-08-11 07:52:25.229 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J71KCD:al:IJQX:ntrv:JI' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:25.231 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:30.729 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J71RR9:al:IJQX:ntrv:JJ' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:30.731 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
2023-08-11 07:52:36.231 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7J71Y47:al:IJQX:ntrv:JK' lights: 'None', transition: '1.0', force: 'False'
2023-08-11 07:52:36.233 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom Lights: filtered_lights: '[]'
basnijholt commented 1 year ago

Thanks a lot for reporting!

I am reading through the logs now.

I see that for light.office_corner_lightstrip everything is as expected (I stripped some text):

07:41:48.646 Office Corner Lightstrip: filtered_lights: '['light.office_corner_lightstrip']'
07:41:48.647 Office Corner Lightstrip: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.office_corner_lightstrip' with transition 10.0 and context.id=01H7J6E5Q4:al:J5TG:ntrv:35
07:41:48.649 Office Corner Lightstrip: Setting color_temp of light light.office_corner_lightstrip
07:41:48.649 Preparing adaptation data for light.office_corner_lightstrip with service data {'entity_id': 'light.office_corner_lightstrip', 'transition': 10.0, 'brightness': 255, 'color_temp_kelvin': 3615}
07:41:48.649 Office Corner Lightstrip: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.office_corner_lightstrip, context_id=01H7J6E5Q4:al:J5TG:ntrv:35, sleep_time=10.0, force=False, max_length=1, which=both, initial_sleep=False)
07:41:48.649 Office Corner Lightstrip: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_corner_lightstrip', 'transition': 10.0, 'brightness': 255, 'color_temp_kelvin': 3615} with context.id='01H7J6E5Q4:al:J5TG:ntrv:35'
07:41:48.650 Detected an 'light.turn_on('['light.office_corner_lightstrip']')' event with context.id='01H7J6E5Q4:al:J5TG:ntrv:35'
07:41:48.883 Detected a 'light.office_corner_lightstrip' '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.HS: 'hs'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3623, 'color_temp': 276, 'hs_color': (27.059, 42.165), 'rgb_color': (255, 195, 147), 'xy_color': (0.446, 0.371), 'off_with_transition': False, 'off_brightness': None, 'icon': 'mdi:led-strip', 'friendly_name': 'Office Corner Lightstrip Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7J6E5Q4:al:J5TG:ntrv:35'
07:41:48.883 AdaptiveLightingManager: New adapt '<state light.office_corner_lightstrip=on; 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.HS: 'hs'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3623, color_temp=276, hs_color=(27.059, 42.165), rgb_color=(255, 195, 147), xy_color=(0.446, 0.371), off_with_transition=False, off_brightness=None, icon=mdi:led-strip, friendly_name=Office Corner Lightstrip Light, supported_features=40 @ 2023-08-11T07:11:24.747143-04:00>' found for light.office_corner_lightstrip
07:41:48.884 Start transition timer of 10.0 seconds for light light.office_corner_lightstrip
07:41:58.886 Transition finished for light light.office_corner_lightstrip
07:42:46.282 Detected an 'light.turn_off('['light.office_lamp_floor', 'light.office_corner_lightstrip']', transition=30)' event with context.id='01H7J6FY05YN3A21E4GYDV3SA7'
07:42:46.455 Detected an 'on' → 'off' event for 'light.office_corner_lightstrip' with context.id='01H7J6FY05YN3A21E4GYDV3SA7'
07:48:00.761 Detected a 'light.office_corner_lightstrip' '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.HS: 'hs'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 1, 'color_temp_kelvin': 3623, 'color_temp': 276, 'hs_color': (27.059, 42.165), 'rgb_color': (255, 195, 147), 'xy_color': (0.446, 0.371), 'off_with_transition': False, 'off_brightness': None, 'icon': 'mdi:led-strip', 'friendly_name': 'Office Corner Lightstrip Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y'
07:48:00.762 Detected an 'off' → 'on' event for 'light.office_corner_lightstrip' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y'
07:48:00.762 Office Corner Lightstrip: Ignoring 'off' → 'on' event for 'light.office_corner_lightstrip' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False
07:48:00.763 Marking 'light.office_corner_lightstrip' as manually controlled.
07:51:49.650 Office Corner Lightstrip: Light 'light.office_corner_lightstrip' was turned just turned off, context.id='01H7J70GME:al:J5TG:ntrv:37'

Note here it detected a off -> on state: Detected an 'off' → 'on' event for 'light.office_corner_lightstrip' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y'

and then AL correctly ignores that event:

07:48:00.762 Office Corner Lightstrip: Ignoring 'off' → 'on' event for 'light.office_corner_lightstrip' with context.id='01H7J6SH3Q3HECVMPDHTMEM30Y' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False
07:48:00.763 Marking 'light.office_corner_lightstrip' as manually controlled.

It is possible that something else turns on the light?

AL certainly didn't call a light.turn_on here. However, perhaps it is possible that just checking the state (which it incorrectly reports) results in HA turning it on?

broyuken commented 1 year ago

Who knows, I could try deleting the AL switch for this light and see if it randomly comes back on or not. I did have some other lights randomly come on as well a few days before 1.19 came out but I don't think any others have done it since. Will keep an eye out.

broyuken commented 1 year ago

Also unrelated but manual control doesn’t work in night mode. My lights were set to 1%, I changed them to 50%, and AL put them back to 1%

Very annoying

basnijholt commented 1 year ago

Do you change them from within HA?

It works for me.

broyuken commented 1 year ago

Yes, right from Lovelace

broyuken commented 1 year ago

It worked for me on another set of lights, but not in my kitchen for some reason

basnijholt commented 1 year ago

Do they register manually controlled when not in sleeping mode though?

basnijholt commented 1 year ago

And debugging logs would help 😄