Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve boot times #77

Open
maumaumaumaumau opened this issue Feb 14, 2024 · 6 comments
Open

Improve boot times #77

maumaumaumaumau opened this issue Feb 14, 2024 · 6 comments

Comments

@maumaumaumaumau
Copy link

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
Copy link
Owner

syssi commented Feb 14, 2024

To power the lamp always is no option?

@maumaumaumaumau
Copy link
Author

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
Copy link
Owner

syssi commented Feb 14, 2024

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
Copy link
Author

maumaumaumaumau commented Feb 14, 2024

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
Copy link

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

@maumaumaumaumau
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants