diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 641ffab6..fd0fb9d1 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -1993,6 +1993,13 @@ class AdaptiveLightingManager: if self.manual_control.get(entity_id, False): return + if data.get(ATTR_BRIGHTNESS) == 0: + _LOGGER.warning( + "Turn-on call with zero brightness detected, Adaptive Lighting" + " intercepted this service_call and adjusted it. If you use this as" + " a brightness workaround, please remove it, it is no longer necessary", + ) + try: adaptive_switch = _switch_with_lights(self.hass, [entity_id]) except NoSwitchFoundError: