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

flash on update

Open nickg90 opened this issue 4 years ago • 20 comments

Ive noticed that when adaptive lighting changes my lights settings, there is a fraction of a second where it flashes with a cold white before changing to the set white level. it is as the brightness update command is sent first which resets the color temp and then in the next instant the color is updated. This is particularly visible when the lights are updating to a dim warm colour.

I only have the 'take over control' checkbox ticked in the config settings

nickg90 avatar Nov 16 '20 23:11 nickg90

Please read the instructions here https://github.com/basnijholt/adaptive-lighting#having-problems

basnijholt avatar Nov 23 '20 13:11 basnijholt

brightness dosnt change, just the colour flashes cold white before setting to the warm white. I tried the setting which seperates brightness and colour commands however my lights kept resetting when I tried that.

A couple of minutes of the log:

2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_46)' called
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 52, 'white_value': 52, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 52, 'white_value': 52, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 52, 'white_value': 52, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 52, 'white_value': 52, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr2' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 54, 'effect': '4', 'friendly_name': 'LR2', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr2' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 51, 'effect': '4', 'friendly_name': 'LR2', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.lr2' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_46) adding this state also
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 54, 'effect': '4', 'friendly_name': 'LR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 51, 'effect': '4', 'friendly_name': 'LR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.lr' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_46) adding this state also
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sl' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 54, 'effect': '4', 'friendly_name': 'SL', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sl' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 51, 'effect': '4', 'friendly_name': 'SL', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:47 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.sl' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_46) adding this state also
2020-11-23 23:15:48 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.dr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 54, 'effect': '0', 'friendly_name': 'DR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:48 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.dr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 51, 'color_temp': 500, 'white_value': 51, 'effect': '0', 'friendly_name': 'DR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_46'
2020-11-23 23:15:48 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.dr' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_46) adding this state also
2020-11-23 23:16:03 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:16:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:16:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_47)' called
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 51, 'white_value': 51, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 51, 'white_value': 51, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 51, 'white_value': 51, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 51, 'white_value': 51, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:13 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_47'
2020-11-23 23:17:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:17:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:18:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_48)' called
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:39 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_48'
2020-11-23 23:18:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:19:03 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:19:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:20:03 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_49)' called
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 50, 'white_value': 50, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_49'
2020-11-23 23:20:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:20:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:21:15 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_50)' called
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 49, 'white_value': 49, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 49, 'white_value': 49, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 49, 'white_value': 49, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 49, 'white_value': 49, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sl' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 51, 'effect': '4', 'friendly_name': 'SL', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sl' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 48, 'effect': '4', 'friendly_name': 'SL', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.sl' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_50) adding this state also
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr2' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 51, 'effect': '4', 'friendly_name': 'LR2', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr2' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 48, 'effect': '4', 'friendly_name': 'LR2', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.lr2' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_50) adding this state also
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.dr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 51, 'effect': '0', 'friendly_name': 'DR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.dr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 48, 'effect': '0', 'friendly_name': 'DR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.dr' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_50) adding this state also
2020-11-23 23:21:32 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 51, 'effect': '4', 'friendly_name': 'LR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:32 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 48, 'color_temp': 500, 'white_value': 48, 'effect': '4', 'friendly_name': 'LR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_50'
2020-11-23 23:21:32 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.lr' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_50) adding this state also
2020-11-23 23:21:39 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:22:03 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:22:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_51)' called
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 48, 'white_value': 48, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 48, 'white_value': 48, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 48, 'white_value': 48, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 48, 'white_value': 48, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:22:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_51'
2020-11-23 23:23:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:23:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:24:15 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_52)' called
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr2' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 48, 'effect': '4', 'friendly_name': 'LR2', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr2' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 46, 'effect': '4', 'friendly_name': 'LR2', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.lr2' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_52) adding this state also
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sl' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 48, 'effect': '4', 'friendly_name': 'SL', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sl' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 46, 'effect': '4', 'friendly_name': 'SL', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.sl' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_52) adding this state also
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.dr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 48, 'effect': '0', 'friendly_name': 'DR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.dr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 46, 'effect': '0', 'friendly_name': 'DR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.dr' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_52) adding this state also
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 48, 'effect': '4', 'friendly_name': 'LR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lr' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['0', '1', '2', '3', '4'], 'brightness': 46, 'color_temp': 500, 'white_value': 46, 'effect': '4', 'friendly_name': 'LR', 'supported_features': 151}' with context.id='adapt_lgt_fe0d_interval_52'
2020-11-23 23:24:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.lr' is already in 'self.last_state_change' (adapt_lgt_fe0d_interval_52) adding this state also
2020-11-23 23:24:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:25:15 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:25:39 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_53)' called
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 47, 'white_value': 47, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:25:49 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_53'
2020-11-23 23:26:03 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:26:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:26:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Sunlights: '_adapt_lights(['light.lr2', 'light.su', 'light.sl', 'light.dr', 'light.ba', 'light.lr'], None, force=False, context.id=adapt_lgt_fe0d_interval_54)' called
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr2', 'brightness': 46, 'white_value': 46, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.sl', 'brightness': 46, 'white_value': 46, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.dr', 'brightness': 46, 'white_value': 46, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Sunlights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lr', 'brightness': 46, 'white_value': 46, 'color_temp': 500} with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr2']')' event with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sl']')' event with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.dr']')' event with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lr']')' event with context.id='adapt_lgt_fe0d_interval_54'
2020-11-23 23:27:15 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12

nickg90 avatar Nov 23 '20 23:11 nickg90

Hi, thank you for your amazing job.

Unfortunately I am experiencing the same issue. Basically every "interval" seconds (e.g. 90 seconds) the lights flash briefly. I am using innr gu10 bulbs only.

I will post my log as soon as possible.

EmatraDev avatar Dec 07 '20 19:12 EmatraDev

A short video of the flashing effect. 20201207_202757_1.mp4.zip

Here is my log:

2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): Setting up with '['light.camera']', config_entry.data: '{'name': 'Camera (Adaptive Ligthing)'}', config_entry.options: '{'lights': ['light.camera'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2200, 'max_color_temp': 5000, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 7200, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False}', converted to '{'lights': ['light.camera'], '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': 2200, 'max_color_temp': 5000, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(seconds=7200), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False, 'name': 'Camera (Adaptive Ligthing)'}'. 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): Setting up with '['light.bagno_camera']', config_entry.data: '{'name': 'Bagno-camera (Adaptive Lighting)'}', config_entry.options: '{'lights': ['light.bagno_camera'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 45.0, 'interval': 90, 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2200, 'max_color_temp': 5000, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': 'None', 'sunrise_offset': 0, 'sunset_time': 'None', 'sunset_offset': 7200, 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False}', converted to '{'lights': ['light.bagno_camera'], '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': 2200, 'max_color_temp': 5000, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(seconds=7200), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False, 'name': 'Bagno-camera (Adaptive Lighting)'}'. 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): Called 'async_turn_on', current state is 'None' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): Called '_setup_listeners' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): Cancelled '_setup_listeners' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_aec4_turn_on_0' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Camera (Adaptive Ligthing): '_adapt_lights(['light.camera'], 1.0, force=True, context.id=adapt_lgt_aec4_turn_on_0)' called 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Camera (Adaptive Ligthing): last state is <state switch.adaptive_lighting_sleep_mode_camera_adaptive_ligthing=off; friendly_name=Adaptive Lighting Sleep Mode: Camera (Adaptive Ligthing), icon=mdi:theme-light-dark @ 2020-12-08T10:53:01.301034+01:00> 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: Camera (Adaptive Ligthing): last state is <state switch.adaptive_lighting_adapt_color_camera_adaptive_ligthing=on; friendly_name=Adaptive Lighting Adapt Color: Camera (Adaptive Ligthing), icon=mdi:theme-light-dark @ 2020-12-08T10:53:01.301446+01:00> 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: Camera (Adaptive Ligthing): last state is <state switch.adaptive_lighting_adapt_brightness_camera_adaptive_ligthing=on; friendly_name=Adaptive Lighting Adapt Brightness: Camera (Adaptive Ligthing), icon=mdi:theme-light-dark @ 2020-12-08T10:53:01.301813+01:00> 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): Called 'async_turn_on', current state is 'None' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): Called '_setup_listeners' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): Cancelled '_setup_listeners' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_360a_turn_on_0' 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Bagno-camera (Adaptive Lighting): '_adapt_lights(['light.bagno_camera'], 1.0, force=True, context.id=adapt_lgt_360a_turn_on_0)' called 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Bagno-camera (Adaptive Lighting): last state is <state switch.adaptive_lighting_sleep_mode_bagno_camera_adaptive_lighting=off; friendly_name=Adaptive Lighting Sleep Mode: Bagno-camera (Adaptive Lighting), icon=mdi:theme-light-dark @ 2020-12-08T10:53:47.291022+01:00> 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: Bagno-camera (Adaptive Lighting): last state is <state switch.adaptive_lighting_adapt_color_bagno_camera_adaptive_lighting=on; friendly_name=Adaptive Lighting Adapt Color: Bagno-camera (Adaptive Lighting), icon=mdi:theme-light-dark @ 2020-12-08T10:53:47.291352+01:00> 2020-12-08 10:56:50 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: Bagno-camera (Adaptive Lighting): last state is <state switch.adaptive_lighting_adapt_brightness_bagno_camera_adaptive_lighting=on; friendly_name=Adaptive Lighting Adapt Brightness: Bagno-camera (Adaptive Lighting), icon=mdi:theme-light-dark @ 2020-12-08T10:53:47.291617+01:00> 2020-12-08 10:56:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): Called '_setup_listeners' 2020-12-08 10:56:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): Called '_setup_listeners' 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_aec4_interval_1' 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Camera (Adaptive Ligthing): '_adapt_lights(['light.camera'], None, force=False, context.id=adapt_lgt_aec4_interval_1)' called 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Camera (Adaptive Ligthing): Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.camera', 'transition': 45.0, 'brightness': 255, 'color_temp': 206} with context.id='adapt_lgt_aec4_interval_1' 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_360a_interval_1' 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Bagno-camera (Adaptive Lighting): '_adapt_lights(['light.bagno_camera'], None, force=False, context.id=adapt_lgt_360a_interval_1)' called 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bagno-camera (Adaptive Lighting): Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bagno_camera', 'transition': 45.0, 'brightness': 255, 'color_temp': 206} with context.id='adapt_lgt_360a_interval_1' 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.camera']')' event with context.id='adapt_lgt_aec4_interval_1' 2020-12-08 10:58:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bagno_camera']')' event with context.id='adapt_lgt_360a_interval_1'

EmatraDev avatar Dec 08 '20 10:12 EmatraDev

Hi,

good news! Flashing effect is now gone. Instead of using the default group of lights (e.g. light.camera which includes light.camera_1 to light.camera_n) I specified all the single lights.

My configuration is now the following:

image

Hope this helps.

EmatraDev avatar Dec 09 '20 08:12 EmatraDev

I am happy that it's solved for you!

Were you using a light group? As in you specified it like https://www.home-assistant.io/integrations/light.group/ ?

Or did you use a ZHA/deCONZ light group for example?

basnijholt avatar Dec 09 '20 13:12 basnijholt

Were you using a light group? As in you specified it like https://www.home-assistant.io/integrations/light.group/ ?

Or did you use a ZHA/deCONZ light group for example?

I used the Philips Hue light group (the one I created in the Hue app and that was already present when I installed Home Assistant and linked to my Hue hub).

EmatraDev avatar Dec 10 '20 19:12 EmatraDev

I have light.lr, light.lr2 and light.sl grouped as light.liv in hassio however in adaptive lighting they are already individually specified. These are the lights where I see the flashing behaviour it is most visible at low brightness.

Other lights I have set to be controlled by adaptive lighting which are not part of a group do not seem to have this behaviour now that I think about it so it does seem to be something to do with the way the groups work which causes the issue.

will keep my fingers crossed that there is a solution in future which will allow me to keep my light grouping!

nickg90 avatar Dec 10 '20 21:12 nickg90

watching them at a medium brightness now, there is no visible colour change but the light seems to breifly dim then bounce back each time the light updates

light.zip

nickg90 avatar Dec 10 '20 21:12 nickg90

ive updated interval time between switch updates to 10 seconds so the flashing behaviour occurs more frequently. ive noticed that if prefer_rgb_color is checked, the lights flashes off every 10 seconds. if it is unchecked, the lights stay on but the colour flashes to white.

this seems to have stopped now, maybe because color level has now dropped below a certain threshold. If I check prefer_rgb_color again, the lights contnue to flash off every 10 seconds.

nickg90 avatar Jan 05 '21 23:01 nickg90

I also have this bug.

Philips hue hub and LIDL light strips. I've tried setting against individual entities as opposed to a group and still happens.

Is there anything you need to help pinpoint this down?

pete-leese avatar Jan 17 '21 22:01 pete-leese

I've also experienced some flashing during updates. Turning the detect_non_ha_changes off fixed it for me.

LEJOUI avatar Jan 19 '21 10:01 LEJOUI

I think mine is a different issue, I've created a post in HA community - https://community.home-assistant.io/t/strip-lights-flash-once-when-turning-on-or-changing-brightness-colour-settings/269942

pete-leese avatar Jan 19 '21 11:01 pete-leese

I did some research on the flashing bug on my innr lights and found this thread on hassio community (https://community.home-assistant.io/t/innr-gu10s-with-hue-flashing-and-random-weirdness/119526/11). Basically what they say is when innr light is part of a hue group the flashing bulb problem occurs. They suggest to comment out some lines on light.py but as far as I can understand this is not the most correct thing to do. Any ideas? Unfortunately if I don't use the hue group my lights don't reach the right temperature at the same time (some are lighter and some are darker). Any ideas?

EmatraDev avatar Mar 10 '21 08:03 EmatraDev

Add me to the list. I experience this quick but annoying flashing too when light settings are being changed.

I have all lights individually selected (not using deCONZ or HA light groups) in the AL config and also tested every option step by step, including turning lights off and on and reloading the AL integration between the config changes:

image

image

No config option changed this behavior.

I'm not 100 % sure but it might be possible this behavior wasn't there in the beginning.

As some users already provided debug logs and this issue stemmed to have some attention:

what can I/we do to help fixing this issue?

bcutter avatar Mar 24 '21 19:03 bcutter

I hope this bug can be resolved with v2, as I have to touch the code anyway. So I'm adding this to the milestone.

Keep this ticket open until you can verify that it's properly working in the upcoming version 2.

RubenKelevra avatar Jan 08 '22 02:01 RubenKelevra

My lights are flashed with Tasmota and from my own investigations this seemed to be related to the actual values of color, color_temp and brightness. If this integration hits on one of the dodgy combinations is causes a boot loop.

I tried taking the color/colour_temp/brightness values from a light which was seeing this effect and set another light to those values and it caused the same boot loop. A recent tasmota update seems to have mostly stopped this from happening to my lights.

I recommend if this is happening to you, find out what values the light is set to and try to set another light to the same values to see if it causes this to happen.

nickg90 avatar May 30 '22 17:05 nickg90

Good observation. But thinking it to the end: not every hardware can be flashed, there are bulbs with fixed factory firmware and there isn't even an update option nor updates available (pretty common in the ZigBee area afai experienced over the years).

So I still believe in a software based solution for this Software based bug (as the lights work flawlessly without AL).

bcutter avatar May 30 '22 18:05 bcutter

you might be right but I thought for over a year adaptive lighting was the cause of my issues. I since discovered that it was only because adaptive lighting scrolls through many color/brightness combinations through each day and happened to hit a couple the combinations it didnt like when the light then got stuck in a boot loop.

up to you if you want to assume its not the light but it couldnt hurt to take note of the exact color, color temp and brightness settings next time it flashes and confirm on another light / adaptive lighting turned off to see if it still flashes.

As far as I know the flashing has not been linked to specifc code or log reports in adaptive lighting.

nickg90 avatar May 30 '22 19:05 nickg90

[Copy pasting this message in a few recent open issues]

I just wanted to take a moment to express my heartfelt thanks to everyone that is active in this repo. Your contributions, from answering questions to addressing issues, have been invaluable. It's amazing to see how supportive and helpful our community is!

Adaptive Lighting is all about enhancing your living spaces with smart, sunlight-responsive lighting. We've had quite a few discussions and open issues recently, and I see this as a positive sign of our community's engagement and growth. If you come across anything in the documentation that's unclear or if you have suggestions for improvement, please don't hesitate to share!. Your feedback is crucial for making Adaptive Lighting better for everyone.

On a personal note, I've recently welcomed twin boys into my family, which has been an incredible and life-changing experience. As you can imagine, my time is now more limited, and while I'm doing my best to keep up with the project, there may be delays in my responses. I appreciate your understanding and patience during this time.

Rest assured, I'm fully committed to addressing any bugs, especially those related to new Home Assistant updates, as swiftly as possible. I understand that many issues may stem from hardware limitations or misunderstandings about things like Zigbee groups. Your continued support and collaboration in helping each other out not only strengthen our community but also enhance the Adaptive Lighting experience for all.

Thank you once again for your understanding, patience, and support. Let's keep our houses well lit and adaptive for maximal enjoyment of life! 🌞🏠🌙

basnijholt avatar Mar 03 '24 19:03 basnijholt