esphome-yeelight-ceiling-light icon indicating copy to clipboard operation
esphome-yeelight-ceiling-light copied to clipboard

Improve boot times

Open maumaumaumaumau opened this issue 1 year ago • 9 comments

Hi, I noticed, that yeelight lamps with standard firmware are starting blazing fast, where as esphome flashed lamps require 1-2 seconds to turn on. Not only that is a a hassle for presence sensors, but also guests think lamps are broken, if lamps don't turn on instantly.

Is there a way to improve that behavior?

BR mau

maumaumaumaumau avatar Feb 14 '24 07:02 maumaumaumaumau

To power the lamp always is no option?

syssi avatar Feb 14 '24 07:02 syssi

Yes it is, but it's a project for the future. I was just wondering, if we can overcome that issue, because that's the only real downside compared to OFW.

maumaumaumaumau avatar Feb 14 '24 07:02 maumaumaumaumau

Do you expect the last state of the device is retrieved from the Home Automation first? If the last state doesn't matter you could add a turn_on statement to the on_boot section to speed things up. Also turning off transitions will feel like better responsibility.

syssi avatar Feb 14 '24 07:02 syssi

I experimented a little. By commenting out all restore_mode: lines and adding the following, did not improve the situation at all:

esphome:
  on_boot:
    priority: 750
    then:
      - light.turn_on: 
          id: ceiling_light
          brightness: 100%   
          cold_white: 0%
          warm_white: 100%

maumaumaumaumau avatar Feb 14 '24 10:02 maumaumaumaumau

I'm facing the same issues. Any solution in the meantime?

tmp-hallenser avatar Apr 01 '24 19:04 tmp-hallenser

No sorry, I tried the priority and the transition option. Maybe I did something wrong, as I'm not too experienced with esp programming.

maumaumaumaumau avatar Apr 11 '24 21:04 maumaumaumaumau

How is the experience when:

  1. you turn on the light
  2. Wait for it until it is turned on
  3. Turn off and directly turn on again (max. pause around 1 second)

In my case the light turns on directly without any delay. If the pause between "off" and "on" is too long, I have a delay turning on the lamp again. I am wondering what cause this behavior.

B48D81EFCC avatar Jul 06 '24 04:07 B48D81EFCC

I replaced the built-in board with an ESP32 S3 WROOM (T-ETH-Lite ESP32-S3). Using the S3 board, the lamp is almost instantly on after power cycle. MAYBE the stock firmware is slightly faster. I can't compare it side by side. But with the S3 it is MUCH faster than with the built-in board.

B48D81EFCC avatar Jul 13 '24 18:07 B48D81EFCC

Finally I decided to use a Seeed Studio XIAO ESP32S3 and replaced the build-in board. The lamp turns on without delay now.

B48D81EFCC avatar Jul 21 '24 12:07 B48D81EFCC