diff --git a/sonoff/xdrv_04_light.ino b/sonoff/xdrv_04_light.ino index bfeaf889f..ab3450ec2 100644 --- a/sonoff/xdrv_04_light.ino +++ b/sonoff/xdrv_04_light.ino @@ -756,7 +756,11 @@ void LightAnimate(void) } } else { - sleep = 0; + if (Settings.light_scheme > 0) { + sleep = 0; + } else { + sleep = Settings.sleep; + } switch (Settings.light_scheme) { case LS_POWER: LightSetDimmer(Settings.light_dimmer);