You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):
devices.yaml
groups.yaml
configuration.yaml⚠️; WarningREMOVE ALL of the PERSONAL INFORMATION BELOW before posting⚠️;
mqtt: server:
mqtt: user:
mqtt: password:
advanced: pan_id:
advanced: network_key:
anything in log_syslog if you use this
Brand and model number of problematic light(s)
Describe the bug and how to reproduce it:
Take over of manual control does not work for me. The state change is detected when increasing the brightness, but there is no event triggered for manual control. Every interval, the light adapts and darkens again ignoring the manual input.
Steps to reproduce the behavior:
Turn light on, change brightness, wait until next interval.
The text was updated successfully, but these errors were encountered:
Home Assistant Adaptive Lighting Issue Template
Bug Reports
If you need help with using or configuring Adaptive Lighting, please open a Q&A discussion thread here instead.
Before submitting a bug report, please follow these troubleshooting steps:
Please confirm that you have completed the following steps:
Required information for bug reports:
Please include the following information in your issue.
Issues missing this information may not be addressed.
2024-11-15 20:58:57.639 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.upstairs_bathroom_sconces' with context.id='01JCSB3Q9X2JFKNZHD14XNX6KX'
2024-11-15 20:59:40.627 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_sconces']')' event with context.id='01JCSB51AKF87PNMCQQ8DED5Q8'
2024-11-15 20:59:40.628 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01JCSB51AKF87PNMCQQ8DED5Q8', is_skipped_hash='False'
2024-11-15 20:59:40.628 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.turn_on (c:01JCSB51AKF87PNMCQQ8DED5Q8): entity_id=['light.upstairs_bathroom_sconces'], params=>', service_data='{'entity_id': ['light.upstairs_bathroom_sconces'], 'params': {}}'
2024-11-15 20:59:40.628 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{'Adaptive Lighting: Bathroom': ['light.upstairs_bathroom_sconces']}', skipped='[]'
2024-11-15 20:59:40.628 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (3) service_interceptor_turn_on_handler: intercepting entity_ids='['light.upstairs_bathroom_sconces']'
2024-11-15 20:59:40.628 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Intercepted TURN_ON call with data {'params': {}, 'entity_id': ['light.upstairs_bathroom_sconces']} (01JCSB51AKF87PNMCQQ8DED5Q8)
2024-11-15 20:59:40.628 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.upstairs_bathroom_sconces with service data {'entity_id': 'light.upstairs_bathroom_sconces', 'transition': 1.0, 'brightness': 10}
2024-11-15 20:59:40.630 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.upstairs_bathroom_sconces, context_id=01JCSB51AM:al:IJQX:dpt:07, sleep_time=1.0, force=False, max_length=1, which=brightness, initial_sleep=True)
2024-11-15 20:59:40.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.upstairs_bathroom_sconces' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 10, 'device_id': '7', 'zone_id': '4', 'icon': 'mdi:wall-sconce', 'friendly_name': 'Bathroom Lights', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01JCSB51AKF87PNMCQQ8DED5Q8'
2024-11-15 20:59:40.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.upstairs_bathroom_sconces' with context.id='01JCSB51AKF87PNMCQQ8DED5Q8'
2024-11-15 20:59:40.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01JCSB51AKF87PNMCQQ8DED5Q8'
2024-11-15 20:59:40.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.upstairs_bathroom_sconces' with context.id='01JCSB51AKF87PNMCQQ8DED5Q8' because we are already proactively adapting
2024-11-15 21:00:15.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: '_update_attrs_and_maybe_adapt_lights' called with context.id='01JCSB62ZA:al:IJQX:ntrv:08' lights: 'None', transition: '5.0', force: 'False'
2024-11-15 21:00:15.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: filtered_lights: '['light.upstairs_bathroom_sconces']'
2024-11-15 21:00:15.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01JCSB51AKF87PNMCQQ8DED5Q8'
2024-11-15 21:00:15.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.upstairs_bathroom_sconces' with transition 5.0 and context.id=01JCSB62ZA:al:IJQX:ntrv:08
2024-11-15 21:00:15.083 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.upstairs_bathroom_sconces with service data {'entity_id': 'light.upstairs_bathroom_sconces', 'transition': 5.0, 'brightness': 10}
2024-11-15 21:00:15.083 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.upstairs_bathroom_sconces, context_id=01JCSB62ZA:al:IJQX:ntrv:08, sleep_time=5.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2024-11-15 21:00:36.326 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.upstairs_bathroom_sconces' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 68, 'device_id': '7', 'zone_id': '4', 'icon': 'mdi:wall-sconce', 'friendly_name': 'Bathroom Lights', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01JCSB6QQ6STPKKD2ZRFKC0FQE'
2024-11-15 21:03:15.584 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: '_update_attrs_and_maybe_adapt_lights' called with context.id='01JCSBBK80:al:IJQX:ntrv:09' lights: 'None', transition: '5.0', force: 'False'
2024-11-15 21:03:15.585 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: filtered_lights: '['light.upstairs_bathroom_sconces']'
2024-11-15 21:03:15.585 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01JCSB51AKF87PNMCQQ8DED5Q8'
2024-11-15 21:03:15.585 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.upstairs_bathroom_sconces' with transition 5.0 and context.id=01JCSBBK80:al:IJQX:ntrv:09
2024-11-15 21:03:15.585 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.upstairs_bathroom_sconces with service data {'entity_id': 'light.upstairs_bathroom_sconces', 'transition': 5.0, 'brightness': 10}
2024-11-15 21:03:15.585 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id=light.upstairs_bathroom_sconces, context_id=01JCSBBK80:al:IJQX:ntrv:09, sleep_time=5.0, force=False, max_length=1, which=brightness, initial_sleep=False)
2024-11-15 21:03:15.586 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bathroom: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.upstairs_bathroom_sconces', 'transition': 5.0, 'brightness': 10} with context.id='01JCSBBK80:al:IJQX:ntrv:09'
2024-11-15 21:03:15.586 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.upstairs_bathroom_sconces']')' event with context.id='01JCSBBK80:al:IJQX:ntrv:09'
2024-11-15 21:03:15.586 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01JCSBBK80:al:IJQX:ntrv:09', is_skipped_hash='False'
2024-11-15 21:03:15.655 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.upstairs_bathroom_sconces' 'state_changed' event: '{'supported_color_modes': [<ColorMode.BRIGHTNESS: 'brightness'>], 'color_mode': <ColorMode.BRIGHTNESS: 'brightness'>, 'brightness': 10, 'device_id': '7', 'zone_id': '4', 'icon': 'mdi:wall-sconce', 'friendly_name': 'Bathroom Lights', 'supported_features': <LightEntityFeature.TRANSITION: 32>}' with context.id='01JCSBBK80:al:IJQX:ntrv:09'
2024-11-15 21:03:15.655 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.upstairs_bathroom_sconces=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=10, device_id=7, zone_id=4, icon=mdi:wall-sconce, friendly_name=Bathroom Lights, supported_features=32 @ 2024-11-15T20:59:40.697948-05:00>' found for light.upstairs_bathroom_sconces
2024-11-15 21:03:15.655 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 5.0 seconds for light light.upstairs_bathroom_sconces
2024-11-15 21:03:20.656 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.upstairs_bathroom_sconces
2024-11-15 21:05:27.915 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.upstairs_bathroom_sconces' with context.id='01JCSBFMFB9B3EYVGW77Z6ZC6H'
Configuration
lights:
interval: 180
transition: 5
initial_transition: 1
min_brightness: 4
max_brightness: 75
min_color_temp: 2000
max_color_temp: 5500
prefer_rgb_color: false
sleep_brightness: 5
sleep_rgb_or_color_temp: color_temp
sleep_color_temp: 1000
sleep_rgb_color:
sleep_transition: 1
transition_until_sleep: false
sunrise_time: '07:35:00'
min_sunrise_time: null
max_sunrise_time: null
sunrise_offset: 0
sunset_time: null
min_sunset_time: null
max_sunset_time: '19:00:00'
sunset_offset: 3600
brightness_mode: linear
brightness_mode_time_dark: 8000
brightness_mode_time_light: 5400
take_over_control: true
detect_non_ha_changes: true
autoreset_control_seconds: 3600
only_once: false
adapt_only_on_bare_turn_on: false
separate_turn_on_commands: false
send_split_delay: 0
adapt_delay: 0
skip_redundant_commands: true
intercept: true
multi_light_intercept: true
include_config_in_attributes: true
name: Bathroom
devices.yaml
groups.yaml
configuration.yaml
server
:user
:password
:pan_id
:network_key
:log_syslog
if you use thisTake over of manual control does not work for me. The state change is detected when increasing the brightness, but there is no event triggered for manual control. Every interval, the light adapts and darkens again ignoring the manual input.
Turn light on, change brightness, wait until next interval.
The text was updated successfully, but these errors were encountered: