syssi / esphome-yeelight-ceiling-light

ESPHome custom firmware for some Yeelight Ceiling Lights
Apache License 2.0
149 stars 22 forks source link

Improve boot times #77

Open maumaumaumaumau opened 9 months ago

maumaumaumaumau commented 9 months ago

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

syssi commented 9 months ago

To power the lamp always is no option?

maumaumaumaumau commented 9 months ago

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.

syssi commented 9 months ago

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.

maumaumaumaumau commented 9 months ago

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%
tmp-hallenser commented 7 months ago

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

maumaumaumaumau commented 7 months ago

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

B48D81EFCC commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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