Skip to content

Tanh and Linear modes remain at min_brightness forever if it is higher than max_brightness (inverted timescale) #1421

@Maxwelldoug

Description

@Maxwelldoug

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:

Note: #88 could be considered a duplicate, depending on how you categorize my use case compared to theirs. I believe this to be a distinct behaviour, but if maintainers prefer I can move over there instead.

Required information for bug reports:

Please include the following information in your issue.

Issues missing this information may not be addressed.

  1. Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:

Debug logs won't really help here - there's no logging of an unimplemented feature being unimplemented.

  1. Your Adaptive Lighting configuration:
adaptive_lighting: - name: "Master Bedroom" ... (This config is fine, and omitted to simplify reading.) - name: "Porch/Patio Lights" lights: - light.hue_filament_bulb_frontdoor - light.hue_color_lamp_1 # --- color range --- min_color_temp: 3200 max_color_temp: 1800 # --- Brightness limits --- min_brightness: 100 max_brightness: 15 # --- Brightness curve --- brightness_mode: tanh brightness_mode_time_dark: 1800 # 30 min ramp around sunset brightness_mode_time_light: 1800 # 30 min ramp around sunrise # --- Sunrise / sunset tracking --- sunrise_offset: 3600 # Set Ramp to 1 hour after Sunrise. sunset_offset: -3600 # Set Ramp to 1 hour before Sunset. # --- Control & override behaviour --- take_over_control: true take_over_control_mode: pause_changed autoreset_control_seconds: 1800 # Resume adaptation after 30 min # --- Quality-of-life --- adapt_only_on_bare_turn_on: false skip_redundant_commands: true intercept: true multi_light_intercept: true 
 4. Describe the bug and how to reproduce it: When Min_Brightness is set above max_brightness, to create an inverted timescale, the linear and tanh modes do not properly accomodate these settings, while the default mode does (but its curve is very suboptimal for this case.) 5. Steps to reproduce the behavior: Set min_brightness higher than max_brightness, and observe that the brightness never changes, 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions