adaptive-lighting icon indicating copy to clipboard operation
adaptive-lighting copied to clipboard

Cannot enter min/max times later than 11:59:00

Open djurny opened this issue 9 months ago • 1 comments

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.

  1. Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:
2025-03-14 14:04:33.689 ERROR (MainThread) [homeassistant.config] Invalid config for 'adaptive_lighting' at configuration.d/adaptive_lighting.yaml, line 355: Invalid time specified: 68400 for dictionary value 'adaptive_lighting->9->max_sunset_time', got 68400, please check the docs at https://github.com/basnijholt/adaptive-lighting#readme
2025-03-14 14:04:33.690 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'adaptive_lighting': Invalid config.
Invalid time specified: 68400 for dictionary value 'adaptive_lighting->9->max_sunset_time', got 68400
  1. Your Adaptive Lighting configuration:
- name: Sofa overhead
  lights:
    - light.sofa_overhead
  min_brightness: 1
  interval: 90
  transition: 5
  initial_transition: 2
  max_brightness: 60
  min_color_temp: 2700
  max_color_temp: 4000
  prefer_rgb_color: False
  sleep_brightness: 1
  sleep_rgb_or_color_temp: color_temp
  sleep_color_temp: 2000
  sleep_transition: 30
  transition_until_sleep: False
  min_sunrise_time: 06:15:00
  max_sunrise_time: 07:00:00
  max_sunset_time: 19:00:00
  sunset_offset: 3600
  brightness_mode: tanh
  brightness_mode_time_dark: 7200
  brightness_mode_time_light: 0
  take_over_control: True
  detect_non_ha_changes: False
  autoreset_control_seconds: 0
  only_once: False
  adapt_only_on_bare_turn_on: True
  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
  1. (If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):
    • devices.yaml
    • groups.yaml
    • configuration.yaml ⚠️; Warning REMOVE 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)
  1. Describe the bug and how to reproduce it: Not able to set a 24h time for min/max sunrise/sunset time, such as 19:00:00 or 13:00. Tried several ways, like 19:00, 07:00:00pm, 07:00:00 pm, 07:00PM, none of the combinations seem to work. Times earlier than 12:00:00 seem to work just fine.

  2. Steps to reproduce the behavior: Add min_sunrise_time or max_sunrise_time (or the _sunset_time ones) to any 24h notation time after 12:00:00. Restart HASS.

djurny avatar Mar 14 '25 23:03 djurny

(Forgot to mention that I use yaml to configure several AL instances, not the front-end configurator.)

djurny avatar Mar 14 '25 23:03 djurny