adaptive-lighting icon indicating copy to clipboard operation
adaptive-lighting copied to clipboard

Tuya light using Tuya v2 integration not being controlled by Adaptive Lighting

Open sambarlick opened this issue 3 years ago • 4 comments

Version information:

Description:

I have some lights that are Tuya based. Using the new Tuya v2 integration I can change the RGB colour and colour temperature manually in HA, but the colour temperature and RGB colours are not being changed by Adaptive Lighting.

I have other Tuya lights from a different brand that work fine, it seems to be this specific lights from this specific brand.

It doesn't appear to be a Tuya integration issue as i can control them manually in HA.

What could be causing the issue?

Thanks, Sam

sambarlick avatar Aug 16 '21 11:08 sambarlick

Same here. Any thoughts?

I changed from LocalTuya to TuyaV2 (For some reason, I lost about 80% of my devices after a recent reboot... spent a day troubleshooting, but could not get them to work - even reverting back did nothing. I could see and ping the devices directly from the HA computer)

Lights turn on full white and 100% bright in my house now. Notice on all my brands of lights (Mostly Sunco)

Akshue avatar Sep 28 '21 20:09 Akshue

I tried out V2 in beta, and it's broken in that you can't change brightness and color at the same time: https://github.com/tuya/tuya-home-assistant/pull/413

It should work if you check the box to change color and brightness separately.

hoffbaked avatar Oct 20 '21 19:10 hoffbaked

same issue - using Tuya v2 & Govee has integration

2021-11-22 22:17:54 WARNING (SyncWorker_5) [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 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Setting up with '['light.basement_game_area_main_lights', 'light.basement_lights', 'light.basement_sitting_area_main_lights', 'light.bedroom_j', 'light.bedroom_k', 'light.bedroom_lights', 'light.kids_room_main_lights', 'light.kitchen_table_chandelier', 'light.livingroom', 'light.livingroom1', 'light.livingroom2', 'light.livingroom3', 'light.master_bedroom_main_lights', 'light.office_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf']', config_entry.data: '{'name': 'Henry House'}', config_entry.options: '{'lights': ['light.basement_game_area_main_lights', 'light.basement_lights', 'light.basement_sitting_area_main_lights', 'light.bedroom_j', 'light.bedroom_k', 'light.bedroom_lights', 'light.kids_room_main_lights', 'light.kitchen_table_chandelier', 'light.livingroom', 'light.livingroom1', 'light.livingroom2', 'light.livingroom3', 'light.master_bedroom_main_lights', 'light.office_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 0, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False}', converted to '{'lights': ['light.basement_game_area_main_lights', 'light.basement_lights', 'light.basement_sitting_area_main_lights', 'light.bedroom_j', 'light.bedroom_k', 'light.bedroom_lights', 'light.kids_room_main_lights', 'light.kitchen_table_chandelier', 'light.livingroom', 'light.livingroom1', 'light.livingroom2', 'light.livingroom3', 'light.master_bedroom_main_lights', 'light.office_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False, 'name': 'Henry House'}'. 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Setting up with '['light.office_lamps', 'light.office_desk', 'light.floor_lamp']', config_entry.data: '{'name': 'office lamps'}', config_entry.options: '{'lights': ['light.office_lamps', 'light.office_desk', 'light.floor_lamp'], 'prefer_rgb_color': True, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 0, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False}', converted to '{'lights': ['light.office_lamps', 'light.office_desk', 'light.floor_lamp'], 'prefer_rgb_color': True, 'initial_transition': 1.0, 'transition': 45.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False, 'name': 'office lamps'}'. 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Setting up with '['light.hugo', 'light.strip_light']', config_entry.data: '{'name': 'kids room'}', config_entry.options: '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 0, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': True}', converted to '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': True, 'name': 'kids room'}'. 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Called 'async_turn_on', current state is 'None' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Called '_setup_listeners' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Cancelled '_setup_listeners' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_turn_on_0' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.basement_game_area_main_lights', 'light.basement_lights', 'light.basement_sitting_area_main_lights', 'light.bedroom_j', 'light.bedroom_k', 'light.bedroom_lights', 'light.kids_room_main_lights', 'light.kitchen_table_chandelier', 'light.livingroom', 'light.livingroom1', 'light.livingroom2', 'light.livingroom3', 'light.master_bedroom_main_lights', 'light.office_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf'], 1.0, force=True, context.id=adapt_lgt_d096_turn_on_0)' called 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Henry House: last state is <state switch.adaptive_lighting_sleep_mode_henry_house=on; friendly_name=Adaptive Lighting Sleep Mode: Henry House, icon=mdi:theme-light-dark @ 2021-11-22T21:31:53.098406-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: Henry House: last state is <state switch.adaptive_lighting_adapt_color_henry_house=on; friendly_name=Adaptive Lighting Adapt Color: Henry House, icon=mdi:theme-light-dark @ 2021-11-22T21:31:53.098476-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: Henry House: last state is <state switch.adaptive_lighting_adapt_brightness_henry_house=on; friendly_name=Adaptive Lighting Adapt Brightness: Henry House, icon=mdi:theme-light-dark @ 2021-11-22T21:31:53.098537-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called 'async_turn_on', current state is 'None' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called '_setup_listeners' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Cancelled '_setup_listeners' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_turn_on_0' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_lamps', 'light.office_desk', 'light.floor_lamp'], 1.0, force=True, context.id=adapt_lgt_534a_turn_on_0)' called 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: office lamps: last state is <state switch.adaptive_lighting_sleep_mode_office_lamps=on; friendly_name=Adaptive Lighting Sleep Mode: office lamps, icon=mdi:theme-light-dark @ 2021-11-22T21:31:53.106419-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: office lamps: last state is <state switch.adaptive_lighting_adapt_color_office_lamps=on; friendly_name=Adaptive Lighting Adapt Color: office lamps, icon=mdi:theme-light-dark @ 2021-11-22T21:31:53.106488-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: office lamps: last state is <state switch.adaptive_lighting_adapt_brightness_office_lamps=on; friendly_name=Adaptive Lighting Adapt Brightness: office lamps, icon=mdi:theme-light-dark @ 2021-11-22T21:31:53.106549-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'None' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Cancelled '_setup_listeners' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_0' 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.hugo', 'light.strip_light'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_0)' called 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: kids room: last state is <state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:09:28.006582-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: kids room: last state is <state switch.adaptive_lighting_adapt_color_kids_room=on; friendly_name=Adaptive Lighting Adapt Color: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:09:13.038767-05:00> 2021-11-22 22:17:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: kids room: last state is <state switch.adaptive_lighting_adapt_brightness_kids_room=on; friendly_name=Adaptive Lighting Adapt Brightness: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:09:12.591748-05:00> 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Called '_setup_listeners' 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.basement_lights to ['light.basement_sitting_area_main_lights', 'light.basement_game_area_main_lights'] 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.bedroom_lights to ['light.bedroom_k', 'light.bedroom_j', 'light.master_bedroom_main_lights'] 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.livingroom to ['light.livingroom1', 'light.livingroom2', 'light.livingroom3'] 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called '_setup_listeners' 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.office_lamps to ['light.office_desk', 'light.floor_lamp'] 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:19:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (270, 100.0), 'rgb_color': (127, 0, 255), 'xy_color': (0.217, 0.077), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='5cfd089625ab13ce7cb3a7da9dfe8315' 2021-11-22 22:19:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (246, 100.0), 'rgb_color': (25, 0, 255), 'xy_color': (0.14, 0.042), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='6d52297bb080f15b33baa978d2a18827' 2021-11-22 22:19:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='5ef538120075e3a85b71553dafbb91ae' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_1)' called 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kids_room_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kids_room_main_lights']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_1)' called 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_1)' called 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_1' 2021-11-22 22:21:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_1' 2021-11-22 22:21:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.kitchen_table_chandelier' 'state_changed' event: '{'supported_color_modes': ['brightness'], 'color_mode': 'brightness', 'brightness': 2, 'device_id': '8', 'zone_id': '4', 'friendly_name': 'Kitchen_Table Chandelier', 'supported_features': 33}' with context.id='adapt_lgt_d096_interval_1' 2021-11-22 22:21:08 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_1' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_2)' called 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kids_room_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kids_room_main_lights']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_2)' called 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_2) 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_2)' called 2021-11-22 22:22:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.hugo' didn't change wrt change event nr. 0 (context.id=adapt_lgt_ea31_interval_2) 2021-11-22 22:22:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_2' 2021-11-22 22:22:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_interval_2) adding this state also 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_3)' called 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kids_room_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kids_room_main_lights']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_3) 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_3)' called 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_3)' called 2021-11-22 22:24:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.hugo' didn't change wrt change event nr. 0 (context.id=adapt_lgt_ea31_interval_3) 2021-11-22 22:24:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:08 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_3' 2021-11-22 22:24:08 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_interval_3) adding this state also 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_4)' called 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kids_room_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kids_room_main_lights']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_4) 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_4)' called 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_4)' called 2021-11-22 22:25:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.hugo' didn't change wrt change event nr. 0 (context.id=adapt_lgt_ea31_interval_4) 2021-11-22 22:25:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:37 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_4' 2021-11-22 22:25:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_interval_4) adding this state also 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_5)' called 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kids_room_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kids_room_main_lights']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_5) 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_5)' called 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_5)' called 2021-11-22 22:27:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.hugo' didn't change wrt change event nr. 0 (context.id=adapt_lgt_ea31_interval_5) 2021-11-22 22:27:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:08 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:27:08 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_interval_5) adding this state also 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Setting up with '['light.hugo', 'light.strip_light']', config_entry.data: '{'name': 'kids room'}', config_entry.options: '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': True, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 0, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': True}', converted to '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': True, 'initial_transition': 1.0, 'transition': 45.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': True, 'name': 'kids room'}'. 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Cancelled '_setup_listeners' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'None' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_0' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_0)' called 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: kids room: last state is <state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:17:59.971616-05:00> 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: kids room: last state is <state switch.adaptive_lighting_adapt_color_kids_room=on; friendly_name=Adaptive Lighting Adapt Color: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:17:59.971742-05:00> 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: kids room: last state is <state switch.adaptive_lighting_adapt_brightness_kids_room=on; friendly_name=Adaptive Lighting Adapt Brightness: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:17:59.971862-05:00> 2021-11-22 22:27:20 ERROR (MainThread) [homeassistant.components.switch] Error adding entities for domain switch with platform adaptive_lighting File "/config/custom_components/adaptive_lighting/switch.py", line 642, in async_added_to_hass File "/config/custom_components/adaptive_lighting/switch.py", line 731, in async_turn_on File "/config/custom_components/adaptive_lighting/switch.py", line 867, in _update_attrs_and_maybe_adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 905, in _adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 838, in _adapt_light 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=unavailable; restored=True, supported_features=0, friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:20.105167-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:20.122447-05:00>>' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_1)' called 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 ERROR (MainThread) [homeassistant.components.switch] Error while setting up adaptive_lighting platform for switch File "/config/custom_components/adaptive_lighting/switch.py", line 642, in async_added_to_hass File "/config/custom_components/adaptive_lighting/switch.py", line 731, in async_turn_on File "/config/custom_components/adaptive_lighting/switch.py", line 867, in _update_attrs_and_maybe_adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 905, in _adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 838, in _adapt_light 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:27:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_1) adding this state also 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:20.122447-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:33.573132-05:00>>' 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_2)' called 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 136.86832541739756, 13.904070298965905)} with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 20} with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (30, 94.9), 'rgb_color': (255, 134, 13), 'xy_color': (0.602, 0.38), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 19, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_2' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_3)' called 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 136.86832541739756, 13.904070298965905)} with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 20} with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:34 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:35 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 18, 'hs_color': (30, 94.9), 'rgb_color': (255, 134, 13), 'xy_color': (0.602, 0.38), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:35 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 19, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_3' 2021-11-22 22:27:35 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_turn_on_3) adding this state also 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:33.573132-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:36.249039-05:00>>' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_4)' called 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 18, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:27:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_4) adding this state also 2021-11-22 22:27:44 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_desk', 'light.floor_lamp']', transition=None)' event with context.id='dbf67982b4cfd1309869a27df9944529' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk', 'light.floor_lamp']')' event with context.id='63ca9f84dcfd8ee79b3f66692e00673e' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_desk' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (15.0, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Desk lamp', 'supported_features': 0}' with context.id='63ca9f84dcfd8ee79b3f66692e00673e' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Detected an 'off' → 'on' event for 'light.office_desk' with context.id='63ca9f84dcfd8ee79b3f66692e00673e' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_light_event_6' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk'], 1.0, force=True, context.id=adapt_lgt_534a_light_event_6)' called 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_light_event_6' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_light_event_6' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.floor_lamp' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (15.0, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'floor lamp', 'supported_features': 0}' with context.id='63ca9f84dcfd8ee79b3f66692e00673e' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Detected an 'off' → 'on' event for 'light.floor_lamp' with context.id='63ca9f84dcfd8ee79b3f66692e00673e' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_light_event_7' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.floor_lamp'], 1.0, force=True, context.id=adapt_lgt_534a_light_event_7)' called 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_light_event_7' 2021-11-22 22:27:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_light_event_7' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called 'async_turn_on', current state is 'False' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called '_setup_listeners' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_turn_on_8' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], 1.0, force=True, context.id=adapt_lgt_534a_turn_on_8)' called 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_turn_on_8' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_turn_on_8' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_turn_on_8' 2021-11-22 22:27:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_turn_on_8' 2021-11-22 22:27:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk', 'light.floor_lamp']')' event with context.id='9f2850f355c25b60f7ab286b2a71109d' 2021-11-22 22:27:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_desk' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (270.0, 100.0), 'rgb_color': (127, 0, 255), 'xy_color': (0.217, 0.077), 'friendly_name': 'Desk lamp', 'supported_features': 0}' with context.id='9f2850f355c25b60f7ab286b2a71109d' 2021-11-22 22:27:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.floor_lamp' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (270.0, 100.0), 'rgb_color': (127, 0, 255), 'xy_color': (0.217, 0.077), 'friendly_name': 'floor lamp', 'supported_features': 0}' with context.id='9f2850f355c25b60f7ab286b2a71109d' 2021-11-22 22:27:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk', 'light.floor_lamp']')' event with context.id='33a91f3af8e6c0cc8083df42d6250f16' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called 'async_turn_on', current state is 'False' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Called '_setup_listeners' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], 1.0, force=True, context.id=adapt_lgt_534a_turn_on_9)' called 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_desk' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (15.0, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Desk lamp', 'supported_features': 0}' with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.floor_lamp' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 255, 'hs_color': (15.0, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'floor lamp', 'supported_features': 0}' with context.id='adapt_lgt_534a_turn_on_9' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_5)' called 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:27:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:28:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_5' 2021-11-22 22:28:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_turn_on_5) adding this state also 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_6)' called 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_turn_on_6) adding this state also 2021-11-22 22:28:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:28:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_7' 2021-11-22 22:28:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_7)' called File "/config/custom_components/adaptive_lighting/switch.py", line 731, in async_turn_on File "/config/custom_components/adaptive_lighting/switch.py", line 867, in _update_attrs_and_maybe_adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 905, in _adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 838, in _adapt_light 2021-11-22 22:28:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.kids_room_main_lights']', transition=None)' event with context.id='5ca57c82e71a55b46f6d05865c8cbd0e' 2021-11-22 22:28:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.hugo']', transition=None)' event with context.id='80661e30205b51a878dd3765b3f5fd3b' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='0f7aa1c7382f1410372cad4d41a4160d' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='0f7aa1c7382f1410372cad4d41a4160d' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Detected an 'off' → 'on' event for 'light.hugo' with context.id='0f7aa1c7382f1410372cad4d41a4160d' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_light_event_8)' called 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_light_event_8' 2021-11-22 22:28:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_light_event_8) adding this state also 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_9)' called 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_9' 2021-11-22 22:28:16 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_turn_on_9) adding this state also 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:27:36.249039-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:19.831080-05:00>>' 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_10)' called 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 136.86832541739756, 13.904070298965905)} with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 20} with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:19 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (30, 94.9), 'rgb_color': (255, 134, 13), 'xy_color': (0.602, 0.38), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 19, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_10' 2021-11-22 22:28:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_10) adding this state also 2021-11-22 22:28:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:28:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_11' 2021-11-22 22:28:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_11)' called File "/config/custom_components/adaptive_lighting/switch.py", line 731, in async_turn_on File "/config/custom_components/adaptive_lighting/switch.py", line 867, in _update_attrs_and_maybe_adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 905, in _adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 838, in _adapt_light 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:19.831080-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:23.218768-05:00>>' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_12)' called 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 18, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_12' 2021-11-22 22:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_12) adding this state also 2021-11-22 22:28:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.hugo']', transition=None)' event with context.id='894144211ba2262f0e30150fef577b21' 2021-11-22 22:28:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='cd3b65dd092e039c7eebd7be6f3a80d3' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='cd3b65dd092e039c7eebd7be6f3a80d3' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Detected an 'off' → 'on' event for 'light.hugo' with context.id='cd3b65dd092e039c7eebd7be6f3a80d3' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_light_event_13)' called 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (15, 100.0), 'rgb_color': (255, 63, 0), 'xy_color': (0.677, 0.319), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_light_event_13' 2021-11-22 22:28:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_light_event_13) adding this state also 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_6)' called 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_6) 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_6' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Setting up with '['light.hugo', 'light.strip_light']', config_entry.data: '{'name': 'kids room'}', config_entry.options: '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 0, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': True}', converted to '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': True, 'name': 'kids room'}'. 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Cancelled '_setup_listeners' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'None' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_0' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_0)' called 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: kids room: last state is <state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:23.218768-05:00> 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: kids room: last state is <state switch.adaptive_lighting_adapt_color_kids_room=on; friendly_name=Adaptive Lighting Adapt Color: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:22.645101-05:00> 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: kids room: last state is <state switch.adaptive_lighting_adapt_brightness_kids_room=on; friendly_name=Adaptive Lighting Adapt Brightness: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:22.196808-05:00> 2021-11-22 22:28:38 ERROR (MainThread) [homeassistant.components.switch] Error adding entities for domain switch with platform adaptive_lighting File "/config/custom_components/adaptive_lighting/switch.py", line 642, in async_added_to_hass File "/config/custom_components/adaptive_lighting/switch.py", line 731, in async_turn_on File "/config/custom_components/adaptive_lighting/switch.py", line 867, in _update_attrs_and_maybe_adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 905, in _adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 838, in _adapt_light 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=unavailable; restored=True, supported_features=0, friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:38.825938-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:38.841320-05:00>>' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_1)' called 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:38 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:38 ERROR (MainThread) [homeassistant.components.switch] Error while setting up adaptive_lighting platform for switch File "/config/custom_components/adaptive_lighting/switch.py", line 642, in async_added_to_hass File "/config/custom_components/adaptive_lighting/switch.py", line 731, in async_turn_on File "/config/custom_components/adaptive_lighting/switch.py", line 867, in _update_attrs_and_maybe_adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 905, in _adapt_lights File "/config/custom_components/adaptive_lighting/switch.py", line 838, in _adapt_light 2021-11-22 22:28:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:28:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_1) adding this state also 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_2)' called 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_turn_on_2) adding this state also 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:38.841320-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:50.974898-05:00>>' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_3)' called 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 20} with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:28:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:50.974898-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:51.568915-05:00>>' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_4)' called 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 19, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 0, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:51 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_4) adding this state also 2021-11-22 22:28:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:28:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_sleep_4) adding this state also 2021-11-22 22:28:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.hugo']', transition=None)' event with context.id='2b15b1e39f9c70b2dc4ba373f55f5953' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='ea446d56eced7311ef062f59aa9d8971' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='ea446d56eced7311ef062f59aa9d8971' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Detected an 'off' → 'on' event for 'light.hugo' with context.id='ea446d56eced7311ef062f59aa9d8971' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_light_event_5)' called 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_light_event_5' 2021-11-22 22:28:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_light_event_5) adding this state also 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_6)' called 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'color_temp': 500} with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3} with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_6' 2021-11-22 22:28:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_turn_on_6) adding this state also 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Setting up with '['light.hugo', 'light.strip_light']', config_entry.data: '{'name': 'kids room'}', config_entry.options: '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 0, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False}', converted to '{'lights': ['light.hugo', 'light.strip_light'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False, 'name': 'kids room'}'. 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Cancelled '_setup_listeners' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'None' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_0' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_0)' called 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo'} with context.id='adapt_lgt_ea31_turn_on_0' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: kids room: last state is <state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:51.568915-05:00> 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: kids room: last state is <state switch.adaptive_lighting_adapt_color_kids_room=on; friendly_name=Adaptive Lighting Adapt Color: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:38.841807-05:00> 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: kids room: last state is <state switch.adaptive_lighting_adapt_brightness_kids_room=on; friendly_name=Adaptive Lighting Adapt Brightness: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:28:38.842280-05:00> 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_0' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=unavailable; restored=True, supported_features=0, friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:29:11.861207-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:29:11.880452-05:00>>' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_1)' called 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:29:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:29:12 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_sleep_1' 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called 'async_turn_on', current state is 'False' 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Called '_setup_listeners' 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_turn_on_2)' called 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:29:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 0, 'hs_color': (198, 100.0), 'rgb_color': (0, 178, 255), 'xy_color': (0.145, 0.217), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_turn_on_2' 2021-11-22 22:29:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:29:11.880452-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:29:23.877899-05:00>>' 2021-11-22 22:29:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:29:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_3)' called 2021-11-22 22:29:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 19, 'color_temp': 500} with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:29:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_3' 2021-11-22 22:29:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: _sleep_mode_switch_state_event, event: '<Event state_changed[L]: entity_id=switch.adaptive_lighting_sleep_mode_kids_room, old_state=<state switch.adaptive_lighting_sleep_mode_kids_room=off; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:29:23.877899-05:00>, new_state=<state switch.adaptive_lighting_sleep_mode_kids_room=on; friendly_name=Adaptive Lighting Sleep Mode: kids room, icon=mdi:theme-light-dark @ 2021-11-22T22:29:24.395908-05:00>>' 2021-11-22 22:29:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:29:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], 1.0, force=True, context.id=adapt_lgt_ea31_sleep_4)' called 2021-11-22 22:29:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:29:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_sleep_4' 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_10' 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_10)' called 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.office_desk' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_10) 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_10' 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.floor_lamp' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_10) 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_10' 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_10' 2021-11-22 22:29:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_10' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_7)' called 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_7) 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_7' 2021-11-22 22:30:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:30:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_5)' called 2021-11-22 22:30:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:30:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_5' 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_11' 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_11)' called 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.office_desk' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_11) 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_11' 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.floor_lamp' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_11) 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_11' 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_11' 2021-11-22 22:30:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_11' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_8)' called 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_8) 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:31:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_8' 2021-11-22 22:32:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_6' 2021-11-22 22:32:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_6)' called 2021-11-22 22:32:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_6' 2021-11-22 22:32:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_6' 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_12' 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_12)' called 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.office_desk' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_12) 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_12' 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.floor_lamp' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_12) 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_12' 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_12' 2021-11-22 22:32:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_12' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_9)' called 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_j', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_k', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_j']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_k']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_9) 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:06 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_9' 2021-11-22 22:33:18 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 0, 'hs_color': (0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='ab954d4f89169e563f31a08706e66194' 2021-11-22 22:33:18 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='b0df4242f987ad71620e648c6192153d' 2021-11-22 22:33:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_7' 2021-11-22 22:33:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_7)' called 2021-11-22 22:33:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_7' 2021-11-22 22:33:52 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_7' 2021-11-22 22:33:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_7' 2021-11-22 22:33:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 2, 'hs_color': (0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_7' 2021-11-22 22:33:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_interval_7) adding this state also 2021-11-22 22:33:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 1, 'hs_color': (0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_7' 2021-11-22 22:33:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.hugo' is already in 'self.last_state_change' (adapt_lgt_ea31_interval_7) adding this state also 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_13' 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_13)' called 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.office_desk' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_13) 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_13' 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.floor_lamp' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_13) 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_13' 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_13' 2021-11-22 22:33:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_13' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Henry House: '_adapt_lights(['light.livingroom3', 'light.bedroom_j', 'light.livingroom1', 'light.bedroom_k', 'light.kids_room_main_lights', 'light.upstairs_bathroom_main_lights', 'light.bookshelf', 'light.office_main_lights', 'light.basement_game_area_main_lights', 'light.livingroom2', 'light.kitchen_table_chandelier', 'light.master_bedroom_main_lights', 'light.basement_sitting_area_main_lights'], None, force=False, context.id=adapt_lgt_d096_interval_10)' called 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom3', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bookshelf', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_game_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.livingroom2', 'transition': 45.0, 'brightness': 3, 'color_temp': 370} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom3']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_main_lights']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bookshelf']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_main_lights']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_game_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.livingroom2']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.kitchen_table_chandelier' didn't change wrt change event nr. 0 (context.id=adapt_lgt_d096_interval_10) 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.kitchen_table_chandelier', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Henry House: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.basement_sitting_area_main_lights', 'transition': 45.0, 'brightness': 3} with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.kitchen_table_chandelier']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:34:36 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.basement_sitting_area_main_lights']')' event with context.id='adapt_lgt_d096_interval_10' 2021-11-22 22:35:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ea31_interval_8' 2021-11-22 22:35:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: kids room: '_adapt_lights(['light.strip_light', 'light.hugo'], None, force=False, context.id=adapt_lgt_ea31_interval_8)' called 2021-11-22 22:35:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.hugo' didn't change wrt change event nr. 0 (context.id=adapt_lgt_ea31_interval_8) 2021-11-22 22:35:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] kids room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.hugo', 'brightness': 3, 'color_temp': 500} with context.id='adapt_lgt_ea31_interval_8' 2021-11-22 22:35:22 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.hugo']')' event with context.id='adapt_lgt_ea31_interval_8' 2021-11-22 22:35:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.hugo' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'supported_color_modes': ['brightness', 'color_temp', 'hs', 'onoff'], 'color_mode': 'hs', 'brightness': 0, 'hs_color': (0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'friendly_name': 'Table Lamp - Hugo', 'supported_features': 0}' with context.id='adapt_lgt_ea31_interval_8' 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_534a_interval_14' 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: office lamps: '_adapt_lights(['light.office_desk', 'light.floor_lamp'], None, force=False, context.id=adapt_lgt_534a_interval_14)' called 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.office_desk' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_14) 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_desk', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_14' 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.floor_lamp' didn't change wrt change event nr. 0 (context.id=adapt_lgt_534a_interval_14) 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] office lamps: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.floor_lamp', 'brightness': 3, 'rgb_color': (255, 67.92041905680745, 0)} with context.id='adapt_lgt_534a_interval_14' 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_desk']')' event with context.id='adapt_lgt_534a_interval_14' 2021-11-22 22:35:26 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.floor_lamp']')' event with context.id='adapt_lgt_534a_interval_14'

k-rock avatar Nov 23 '21 03:11 k-rock

@sambarlick sounds more like an issue with the TuYa integration. Have you tried doing a color temperature and brightness change with the light turn on service call?

RubenKelevra avatar Jun 14 '22 20:06 RubenKelevra

separate_turn_on_commands most likely solves this, please comment back here if the problem still persists

th3w1zard1 avatar Apr 01 '23 04:04 th3w1zard1