adaptive-lighting
adaptive-lighting copied to clipboard
Manual Control is not engaged if light brighness changed on a Tasmota light
Version information:
adaptive-lighting: master (2ddb8e1) home assistant 2021.9.5
Description:
I have tasmota lights controlled via home assistant via tasmota integration. When I change the brightness in the UI (or with a physical button) the manual control mode is not engaged. The brightness slider changes in the home assistant UI with the change on the tasmota device, but then jumps back.
Here is the relevant log:
2021-09-10 22:46:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Bedroom Ceiling Lights: '_adapt_lights(['light.bedroom_ceiling_nw', 'light.bedroom_ceiling_se', 'light.bedroom_ceiling_ne', 'light.bedroom_ceiling_sw'], None, force=False, context.id=adapt_lgt_74f0_interval_26)' called
2021-09-10 22:46:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bedroom Ceiling Lights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_ceiling_sw', 'transition': 5.0, 'brightness': 97, 'color_temp': 500} with context.id='adapt_lgt_74f0_interval_26'
2021-09-10 22:46:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_ceiling_sw']')' event with context.id='adapt_lgt_74f0_interval_26'
Here I change the brightness manually:
2021-09-10 22:46:20 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.bedroom_ceiling_sw' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'Wake up', 'Cycle up', 'Cycle down', 'Random'], 'supported_color_modes': ['color_temp', 'hs'], 'color_mode': 'color_temp', 'brightness': 196, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'effect': 'None', 'friendly_name': 'Bedroom Ceiling SW', 'supported_features': 36}' with context.id='a900b11833965484174b00c1b2d5b2fd'
but adaptive lighting changes it back
2021-09-10 22:46:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Bedroom Ceiling Lights: '_adapt_lights(['light.bedroom_ceiling_nw', 'light.bedroom_ceiling_se', 'light.bedroom_ceiling_ne', 'light.bedroom_ceiling_sw'], None, force=False, context.id=adapt_lgt_74f0_interval_27)' called
2021-09-10 22:46:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bedroom Ceiling Lights: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.bedroom_ceiling_sw', 'transition': 5.0, 'brightness': 97, 'color_temp': 500} with context.id='adapt_lgt_74f0_interval_27'
2021-09-10 22:46:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.bedroom_ceiling_sw']')' event with context.id='adapt_lgt_74f0_interval_27'
2021-09-10 22:46:21 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.bedroom_ceiling_sw' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['None', 'Wake up', 'Cycle up', 'Cycle down', 'Random'], 'supported_color_modes': ['color_temp', 'hs'], 'color_mode': 'color_temp', 'brightness': 97, 'color_temp': 500, 'hs_color': (30.601, 94.547), 'rgb_color': (255, 136, 13), 'xy_color': (0.599, 0.382), 'effect': 'None', 'friendly_name': 'Bedroom Ceiling SW', 'supported_features': 36}' with context.id='adapt_lgt_74f0_interval_27'
Adaptive lighting config:
adaptive_lighting:
- name: Bedroom Ceiling Lights
lights:
- light.bedroom_ceiling_ne
- light.bedroom_ceiling_nw
- light.bedroom_ceiling_se
- light.bedroom_ceiling_sw
min_brightness: 30
max_brightness: 100
min_color_temp: 2000
max_color_temp: 3000
only_once: false
detect_non_ha_changes: false
interval: 10
initial_transition: 1
I noticed this behavior after I updated HA from 2021.8.8 to 2021.9.5. Oddly enough downgrading back didn't solve the issue.
i have the same issue with my lutron dimmers, but not my other smart light bulbs (yeelight)
i have the same issue with my lutron dimmers, but not my other smart light bulbs (yeelight)
Has there been any progress on this? My Lutron dimmers keep returning to max brightness if i turn off auto-brightness
detect_non_ha_changes: false
This is your issue, set it to true, and set take_over_control: true
as well.