basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.71k stars 127 forks source link

"Detected an 'off' → 'on' event for" triggered by the adaptive_lighting integration itself, which *should* not happen #860

Open danielbrunt57 opened 7 months ago

danielbrunt57 commented 7 months ago

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:
This error originated from a custom integration.

Logger: custom_components.adaptive_lighting.switch
Source: custom_components/adaptive_lighting/switch.py:2499
Integration: Adaptive Lighting (documentation, issues)
First occurred: 4:35:54 PM (3 occurrences)
Last logged: 4:35:57 PM

Detected an 'off' → 'on' event for 'light.patio_wall' with context.id='01HGY8TZ43:al:KNQW:skpp:17' and event='<Event state_changed[L]: entity_id=light.patio_wall, old_state=<state light.patio_wall=off; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=None, brightness=None, friendly_name=Patio Wall, supported_features=40 @ 2023-12-05T13:09:22.811470-08:00>, new_state=<state light.patio_wall=on; supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=72, friendly_name=Patio Wall, supported_features=40 @ 2023-12-05T16:35:54.684710-08:00>>', triggered by the adaptive_lighting integration itself, which *should* not happen. If you see this please submit an issue with your full logs at https://github.com/basnijholt/adaptive-lighting
Detected an 'off' → 'on' event for 'light.patio_fountain_l1' with context.id='01HGY8TZ43:al:KNQW:skpp:17' and event='<Event state_changed[L]: entity_id=light.patio_fountain_l1, old_state=<state light.patio_fountain_l1=off; supported_color_modes=[<ColorMode.ONOFF: 'onoff'>], color_mode=None, friendly_name=Patio Fountain L1, supported_features=0 @ 2023-12-05T13:03:26.492979-08:00>, new_state=<state light.patio_fountain_l1=on; supported_color_modes=[<ColorMode.ONOFF: 'onoff'>], color_mode=onoff, friendly_name=Patio Fountain L1, supported_features=0 @ 2023-12-05T16:35:55.194047-08:00>>', triggered by the adaptive_lighting integration itself, which *should* not happen. If you see this please submit an issue with your full logs at https://github.com/basnijholt/adaptive-lighting
Detected an 'off' → 'on' event for 'light.patio_stairs' with context.id='01HGY8TZ43:al:KNQW:skpp:17' and event='<Event state_changed[L]: entity_id=light.patio_stairs, old_state=<state light.patio_stairs=off; effect_list=['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=None, brightness=None, effect=None, friendly_name=Patio Stairs, supported_features=44 @ 2023-12-05T13:09:22.904748-08:00>, new_state=<state light.patio_stairs=on; effect_list=['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], supported_color_modes=[<ColorMode.BRIGHTNESS: 'brightness'>], color_mode=brightness, brightness=72, effect=None, friendly_name=Patio Stairs, supported_features=44 @ 2023-12-05T16:35:57.221186-08:00>>', triggered by the adaptive_lighting integration itself, which *should* not happen. If you see this please submit an issue with your full logs at https://github.com/basnijholt/adaptive-lighting
  1. Your Adaptive Lighting configuration:
(not sure hwo to capture this as it is UI configured but this is the only integration using an HA helper group)
  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)


4.  Describe the bug and how to reproduce it:

This is my only AL integration using an HA helper group.

5. Steps to reproduce the behavior:

![image](https://github.com/basnijholt/adaptive-lighting/assets/49846893/74bc1042-2a25-4d7f-880e-4bb8cc26ad1d)

![image](https://github.com/basnijholt/adaptive-lighting/assets/49846893/75a55b5e-6610-4cf9-99d2-c148a303a144)