Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flash on update #44

Open
nickg90 opened this issue Nov 16, 2020 · 20 comments
Open

flash on update #44

nickg90 opened this issue Nov 16, 2020 · 20 comments
Assignees
Milestone

Comments

@nickg90
Copy link

nickg90 commented Nov 16, 2020

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

@basnijholt
Copy link
Owner

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

@nickg90
Copy link
Author

nickg90 commented Nov 23, 2020

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

@EmatraDev
Copy link

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
Copy link

EmatraDev commented Dec 8, 2020

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
Copy link

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.

@basnijholt
Copy link
Owner

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?

@EmatraDev
Copy link

EmatraDev commented Dec 10, 2020

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).

@nickg90
Copy link
Author

nickg90 commented Dec 10, 2020

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
Copy link
Author

nickg90 commented Dec 10, 2020

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
Copy link
Author

nickg90 commented Jan 5, 2021

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.

@pete-leese
Copy link

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?

@LEJOUI
Copy link
Contributor

LEJOUI commented Jan 19, 2021

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

@pete-leese
Copy link

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

@EmatraDev
Copy link

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?

@bcutter
Copy link

bcutter commented Mar 24, 2021

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?

@RubenKelevra RubenKelevra changed the title [bug] flash on update flash on update Jul 31, 2021
@RubenKelevra
Copy link
Collaborator

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 RubenKelevra self-assigned this Jan 8, 2022
@RubenKelevra RubenKelevra added this to the v2.0 milestone Jan 8, 2022
@nickg90
Copy link
Author

nickg90 commented May 30, 2022

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.

@bcutter
Copy link

bcutter commented May 30, 2022

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).

@nickg90
Copy link
Author

nickg90 commented May 30, 2022

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.

@basnijholt
Copy link
Owner

[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! 🌞🏠🌙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Inbox
Development

No branches or pull requests

8 participants