basnijholt / adaptive-lighting

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

<delete> #805

Closed Coder84619 closed 9 months ago

Coder84619 commented 9 months ago

Home Assistant Adaptive Lighting Issue Template

Starting with HA 2023.10 I'm seeing this error in the HA logs when I turn on a group of Hue lights under it's control:

'NoneType' object has no attribute 'attributes''

Bug Reports

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

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

2023-10-04 21:01:55.849 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration weatherdotcom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration watchman which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hubitat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tesla_custom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ical which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration proxmoxve which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.850 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration healthchecksio which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.851 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.851 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.851 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration enphase_envoy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.851 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration versatile_thermostat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-10-04 21:01:55.905 WARNING (MainThread) [homeassistant.components.lovelace] Lovelace is running in storage mode. Define resources via user interface 2023-10-04 21:02:29.463 WARNING (MainThread) [homeassistant.components.homekit.accessories] cover.garage_door: Battery sensor state missing: sensor.garage_door_battery_level 2023-10-04 21:02:59.455 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.eve_energy_office_benq are missing or not currently available 2023-10-04 21:03:04.531 ERROR (MainThread) [custom_components.adaptive_lighting.hass_utils] Error for call '{'entity_id': ['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights'], 'params': {}}' in service_func_proxy: ''NoneType' object has no attribute 'attributes'' 2023-10-04 21:03:04.531 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.eve_energy_office_benq are missing or not currently available 2023-10-04 21:04:33.271 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.eve_energy_office_benq are missing or not currently available 2023-10-04 21:04:33.273 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights']', transition=None)' event with context.id='01HBZ04EBFQDN8RN09W49NTBWE' 2023-10-04 21:04:34.615 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.hue_office_floor_lamp' with context.id='01HBZ04EBFQDN8RN09W49NTBWE' 2023-10-04 21:04:34.616 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.hue_office_ceiling_lights' with context.id='01HBZ04EBFQDN8RN09W49NTBWE' 2023-10-04 21:04:34.616 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.hue_office_desk_led_strip' with context.id='01HBZ04EBFQDN8RN09W49NTBWE' 2023-10-04 21:04:38.303 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HBZ04K8ZQ9PC682P0SDYN882', is_skipped_hash='False' 2023-10-04 21:04:38.303 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.toggle (c:01HBZ04K8ZQ9PC682P0SDYN882): entity_id=['light.eve_energy_outlet_office_monitor_light'], params=>', service_data='{'entity_id': ['light.eve_energy_outlet_office_monitor_light'], 'params': {}}' 2023-10-04 21:04:38.304 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.eve_energy_office_benq is None 2023-10-04 21:04:38.304 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.hue_master_bedroom is None 2023-10-04 21:04:38.304 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] No switch found for entity_id='light.eve_energy_outlet_office_monitor_light', skipped='['light.eve_energy_outlet_office_monitor_light']' 2023-10-04 21:04:38.304 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{}', skipped='['light.eve_energy_outlet_office_monitor_light']' 2023-10-04 21:04:39.173 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HBZ04M445S0CNPTZH39CMVA8', is_skipped_hash='False' 2023-10-04 21:04:39.173 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.toggle (c:01HBZ04M445S0CNPTZH39CMVA8): entity_id=['light.office_all_lights'], params=>', service_data='{'entity_id': ['light.office_all_lights'], 'params': {}}' 2023-10-04 21:04:39.173 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.eve_energy_office_benq is None 2023-10-04 21:04:39.173 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.hue_master_bedroom is None 2023-10-04 21:04:39.174 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] No switch found for entity_id='light.office_all_lights', skipped='['light.office_all_lights']' 2023-10-04 21:04:39.174 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{}', skipped='['light.office_all_lights']' 2023-10-04 21:04:39.176 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HBZ04M445S0CNPTZH39CMVA8', is_skipped_hash='False' 2023-10-04 21:04:39.176 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.turn_on (c:01HBZ04M445S0CNPTZH39CMVA8): entity_id=['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights'], params=>', service_data='{'entity_id': ['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights'], 'params': {}}' 2023-10-04 21:04:39.176 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.eve_energy_office_benq is None 2023-10-04 21:04:39.176 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.hue_master_bedroom is None 2023-10-04 21:04:39.176 ERROR (MainThread) [custom_components.adaptive_lighting.hass_utils] Error for call '{'entity_id': ['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights'], 'params': {}}' in service_func_proxy: ''NoneType' object has no attribute 'attributes'' 2023-10-04 21:04:39.176 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.eve_energy_office_benq are missing or not currently available 2023-10-04 21:04:39.176 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights']')' event with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hue_office_floor_lamp' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'candle', 'fire', 'prism'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 103, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'effect': 'None', 'mode': 'normal', 'dynamics': 'none', 'icon': 'mdi:floor-lamp', 'friendly_name': 'Office Floor Lamp', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.hue_office_floor_lamp' with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: State change 'off' → 'on' triggered by 'light.turn_on' 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.eve_energy_office_benq is None 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.hue_master_bedroom is None 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.322 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='01HBZ04N82:al:J5TG:lght:05' lights: '['light.hue_office_floor_lamp']', transition: '1.0', force: 'True' 2023-10-04 21:04:40.323 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: filtered_lights: '['light.hue_office_floor_lamp']' 2023-10-04 21:04:40.323 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.323 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.hue_office_floor_lamp' with transition 1.0 and context.id=01HBZ04N82:al:J5TG:lght:05 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hue_office_ceiling_lights' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 103, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'is_hue_group': True, 'hue_scenes': set(), 'hue_type': 'zone', 'lights': {'Office front left', 'Office front right', 'Office rear right', 'Office rear left'}, 'dynamics': False, 'icon': 'mdi:light-recessed', 'friendly_name': 'Office Ceiling Lights', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.hue_office_ceiling_lights' with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: State change 'off' → 'on' triggered by 'light.turn_on' 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.eve_energy_office_benq is None 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.hue_master_bedroom is None 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='01HBZ04N84:al:J5TG:lght:06' lights: '['light.hue_office_ceiling_lights']', transition: '1.0', force: 'True' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: filtered_lights: '['light.hue_office_ceiling_lights']' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.hue_office_ceiling_lights' with transition 1.0 and context.id=01HBZ04N84:al:J5TG:lght:06 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hue_office_desk_led_strip' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'candle', 'fire', 'prism'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 102, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'effect': 'None', 'mode': 'normal', 'dynamics': 'none', 'icon': 'phu:light-strip', 'friendly_name': 'Office Desk LED Strip', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.hue_office_desk_led_strip' with context.id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: State change 'off' → 'on' triggered by 'light.turn_on' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.eve_energy_office_benq is None 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of light.hue_master_bedroom is None 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.325 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='01HBZ04N85:al:J5TG:lght:07' lights: '['light.hue_office_desk_led_strip']', transition: '1.0', force: 'True' 2023-10-04 21:04:40.326 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: filtered_lights: '['light.hue_office_desk_led_strip']' 2023-10-04 21:04:40.326 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HBZ04M445S0CNPTZH39CMVA8' 2023-10-04 21:04:40.326 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.hue_office_desk_led_strip' with transition 1.0 and context.id=01HBZ04N85:al:J5TG:lght:07 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Setting color_temp of light light.hue_office_floor_lamp 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.hue_office_floor_lamp with service data {'entity_id': 'light.hue_office_floor_lamp', 'transition': 1.0, 'brightness': 102, 'color_temp_kelvin': 2000} 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.hue_office_floor_lamp, context_id=01HBZ04N82:al:J5TG:lght:05, sleep_time=1.0, force=True, max_length=1, which=both, initial_sleep=False) 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Setting color_temp of light light.hue_office_ceiling_lights 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.hue_office_ceiling_lights with service data {'entity_id': 'light.hue_office_ceiling_lights', 'transition': 1.0, 'brightness': 102, 'color_temp_kelvin': 2000} 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.hue_office_ceiling_lights, context_id=01HBZ04N84:al:J5TG:lght:06, sleep_time=1.0, force=True, max_length=1, which=both, initial_sleep=False) 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Setting color_temp of light light.hue_office_desk_led_strip 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.hue_office_desk_led_strip with service data {'entity_id': 'light.hue_office_desk_led_strip', 'transition': 1.0, 'brightness': 102, 'color_temp_kelvin': 2000} 2023-10-04 21:04:40.331 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.hue_office_desk_led_strip, context_id=01HBZ04N85:al:J5TG:lght:07, sleep_time=1.0, force=True, max_length=1, which=both, initial_sleep=False) 2023-10-04 21:04:40.332 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hue_office_floor_lamp', 'transition': 1.0, 'brightness': 102, 'color_temp_kelvin': 2000} with context.id='01HBZ04N82:al:J5TG:lght:05' 2023-10-04 21:04:40.332 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hue_office_ceiling_lights', 'transition': 1.0, 'brightness': 102, 'color_temp_kelvin': 2000} with context.id='01HBZ04N84:al:J5TG:lght:06' 2023-10-04 21:04:40.332 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hue_office_desk_led_strip', 'transition': 1.0, 'brightness': 102, 'color_temp_kelvin': 2000} with context.id='01HBZ04N85:al:J5TG:lght:07' 2023-10-04 21:04:40.332 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hue_office_floor_lamp']')' event with context.id='01HBZ04N82:al:J5TG:lght:05' 2023-10-04 21:04:40.332 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HBZ04N82:al:J5TG:lght:05', is_skipped_hash='False' 2023-10-04 21:04:40.333 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hue_office_ceiling_lights']')' event with context.id='01HBZ04N84:al:J5TG:lght:06' 2023-10-04 21:04:40.333 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HBZ04N84:al:J5TG:lght:06', is_skipped_hash='False' 2023-10-04 21:04:40.333 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hue_office_desk_led_strip']')' event with context.id='01HBZ04N85:al:J5TG:lght:07' 2023-10-04 21:04:40.333 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HBZ04N85:al:J5TG:lght:07', is_skipped_hash='False' 2023-10-04 21:04:41.340 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hue_office_floor_lamp' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'candle', 'fire', 'prism'], 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 102, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'effect': 'None', 'mode': 'normal', 'dynamics': 'none', 'icon': 'mdi:floor-lamp', 'friendly_name': 'Office Floor Lamp', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HBZ04N82:al:J5TG:lght:05' 2023-10-04 21:04:41.340 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.hue_office_floor_lamp=on; min_color_temp_kelvin=2000, max_color_temp_kelvin=6535, min_mireds=153, max_mireds=500, effect_list=['None', 'candle', 'fire', 'prism'], supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], color_mode=color_temp, brightness=102, color_temp_kelvin=2000, color_temp=500, hs_color=(30.601, 94.547), rgb_color=(255, 136, 13), xy_color=(0.599, 0.382), effect=None, mode=normal, dynamics=none, icon=mdi:floor-lamp, friendly_name=Office Floor Lamp, supported_features=44 @ 2023-10-04T21:04:40.317877-07:00>' found for light.hue_office_floor_lamp 2023-10-04 21:04:41.342 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 1.0 seconds for light light.hue_office_floor_lamp 2023-10-04 21:04:41.342 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hue_office_ceiling_lights' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.XY: 'xy'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 102, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'is_hue_group': True, 'hue_scenes': set(), 'hue_type': 'zone', 'lights': {'Office front left', 'Office front right', 'Office rear right', 'Office rear left'}, 'dynamics': False, 'icon': 'mdi:light-recessed', 'friendly_name': 'Office Ceiling Lights', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01HBZ04N84:al:J5TG:lght:06' 2023-10-04 21:04:41.342 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.hue_office_ceiling_lights=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.XY: 'xy'>], color_mode=color_temp, brightness=102, color_temp_kelvin=2000, color_temp=500, hs_color=(30.601, 94.547), rgb_color=(255, 136, 13), xy_color=(0.599, 0.382), is_hue_group=True, hue_scenes=set(), hue_type=zone, lights={'Office front left', 'Office front right', 'Office rear right', 'Office rear left'}, dynamics=False, icon=mdi:light-recessed, friendly_name=Office Ceiling Lights, supported_features=40 @ 2023-10-04T21:04:40.318688-07:00>' found for light.hue_office_ceiling_lights 2023-10-04 21:04:41.342 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 1.0 seconds for light light.hue_office_ceiling_lights 2023-10-04 21:04:42.344 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.hue_office_floor_lamp 2023-10-04 21:04:42.344 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.hue_office_ceiling_lights 2023-10-04 21:04:44.997 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.hue_office_desk_led_strip

  1. Your Adaptive Lighting configuration:
  1. (If using Zigbee2MQTT), provide your configuration files

Not using MQTT

  1. Describe the bug and how to reproduce it:

I have a group of office lights which are under adaptive lighting control. They are mostly Hue. Starting with HA 2023.10, now when I turn on the office lights I see the following error log entry. However, adaptive lighting still seems to function.

This error originated from a custom integration.

Logger: custom_components.adaptive_lighting.hass_utils Source: custom_components/adaptive_lighting/hass_utils.py:56 Integration: Adaptive Lighting (documentation, issues) First occurred: 9:03:04 PM (3 occurrences) Last logged: 9:06:58 PM

Error for call '{'entity_id': ['light.eve_energy_office_benq', 'light.hue_office_floor_lamp', 'light.hue_office_desk_led_strip', 'light.hue_office_ceiling_lights'], 'params': {}}' in service_func_proxy: ''NoneType' object has no attribute 'attributes''

  1. Steps to reproduce the behavior:

  2. Turn off my group of hue lights

  3. Turn on my group of hue lights