Version information:
adaptive_lighting: 1.0.14
Home Assistant Core: core-2021.8.4
Description:
I have the following yaml config with transition: 5 and initial_transition: 5 However the lights transition immediately when turned on. The lights also transition immediately when the adaptive_lighting switch is turned on.
I don't know what I'm doing wrong or how to figure out why it isn't working as it should.
adaptive_lighting: - name: Spare transition: 5 initial_transition: 5 interval: 300 min_brightness: 1 max_brightness: 100 min_color_temp: 2700 max_color_temp: 6500 sunrise_time: "08:00:00" # override the sunrise time sunset_time: "18:30:00" take_over_control: true separate_turn_on_commands: true interval: 180 lights: - light.spare_bedroom_lights_template
This is the log right after I turn on the adaptive_lighting switch:
2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Called 'async_turn_on', current state is 'False' 2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Called '_setup_listeners' 2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ffff_turn_on_2' 2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Spare: '_adapt_lights(['light.spare_bedroom_lights_template'], 5.0, force=True, context.id=adapt_lgt_ffff_turn_on_2)' called 2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.spare_bedroom_lights_template', 'color_temp': 201} with context.id='adapt_lgt_ffff_turn_on_2' 2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.spare_bedroom_lights_template', 'brightness': 255} with context.id='adapt_lgt_ffff_turn_on_2' 2021-08-10 16:36:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.spare_bedroom_lights_template']')' event with context.id='adapt_lgt_ffff_turn_on_2'
This is the log after I turn on a light while the adaptive_lighting switch is on:
2021-08-10 16:38:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.spare_bedroom_lights_template']')' event with context.id='7d358f0d54a938f95f50ca4f065918e1' 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.helpers.script.spare_bedroom_lights] Spare Bedroom Lights: Running template script 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.helpers.script.spare_bedroom_lights] Spare Bedroom Lights: Executing step call service 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.components.script.zha_group_turn_on] zha_group_turn_on: Running script sequence 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.components.script.zha_group_turn_on] zha_group_turn_on: Executing step call service 2021-08-10 16:38:23 WARNING (MainThread) [homeassistant.components.system_log.external] "Spare Bedroom Brightness: 255.0 Color_Temp: 200 Transition: 1" 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.components.script.zha_group_on_with_level_cluster] zha_group_on_with_level_cluster: Running script sequence 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.components.script.zha_group_on_with_level_cluster] zha_group_on_with_level_cluster: Executing step call service 2021-08-10 16:38:23 DEBUG (MainThread) [homeassistant.components.zha.api] Issued group command for: cluster_id: [8] command: [4] args: [255.0, 10] manufacturer: [None] response: [4, <Status.SUCCESS: 0>] 2021-08-10 16:38:23 WARNING (MainThread) [homeassistant.components.system_log.external] "Spare Bedroom Brightness: 255.0 Transition: 1" 2021-08-10 16:38:23 INFO (MainThread) [homeassistant.components.script.zha_group_turn_on] zha_group_turn_on: Executing step delay 0:00:00.500000 2021-08-10 16:38:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x676F:1:0x0008]: received attribute: 0 update with value: 27 2021-08-10 16:38:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.spare_bedroom_lights_template' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 370, 'supported_color_modes': ['color_temp'], 'color_mode': 'color_temp', 'brightness': 1, 'color_temp': 197, 'friendly_name': 'Spare Bedroom Lights', 'supported_features': 3}' with context.id='ef99241eeb1e9fd72e27fe6f5cdd1526' 2021-08-10 16:38:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2CEC:1:0x0008]: received attribute: 0 update with value: 27 2021-08-10 16:38:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Detected an 'off' → 'on' event for 'light.spare_bedroom_lights_template' with context.id='ef99241eeb1e9fd72e27fe6f5cdd1526' 2021-08-10 16:38:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_ffff_light_event_3' 2021-08-10 16:38:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Spare: '_adapt_lights(['light.spare_bedroom_lights_template'], 5.0, force=True, context.id=adapt_lgt_ffff_light_event_3)' called 2021-08-10 16:38:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.spare_bedroom_lights_template', 'color_temp': 203} with context.id='adapt_lgt_ffff_light_event_3' 2021-08-10 16:38:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Spare: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.spare_bedroom_lights_template', 'brightness': 255} with context.id='adapt_lgt_ffff_light_event_3' 2021-08-10 16:38:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.spare_bedroom_lights_template']')' event with context.id='adapt_lgt_ffff_light_event_3' 2021-08-10 16:38:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x7F67:1:0x0008]: received attribute: 0 update with value: 27
Version information:
adaptive_lighting: 1.0.14
Home Assistant Core: core-2021.8.4
Description:
I have the following yaml config with
transition: 5andinitial_transition: 5However the lights transition immediately when turned on. The lights also transition immediately when the adaptive_lighting switch is turned on.I don't know what I'm doing wrong or how to figure out why it isn't working as it should.
This is the log right after I turn on the adaptive_lighting switch:
This is the log after I turn on a light while the adaptive_lighting switch is on: