-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Light delay after AC power on #41
Comments
If you didn't tried the
|
Hi, thanks for the quick reply. I have been using the "ALWAYS_ON" approach. Tested the "on_boot" but it didn't help - it was even bit (50-100ms I would say) slower (tested with 2 lights on the same switch). |
Another idea: If I remember correctly every ESPHome light entity comes with a default transition length. Please set the default transition length to 0ms and try again:
May be the transition feels like a delayed turn on. |
Thanks for the tip but it has almost no effect - still takes at least 1 second to start. I tried to search what is typical esphome on ESP32 bootup time but I couldn't find anything about this matter |
This is my last idea: Next to your |
Hey there, I experience the same behavior with my yeelink.light.ceiling22. On AC on there is a noticeable delay until the light is turned on. |
HI again, I fixed it. BUT:
had no effect. The delay was still there (and no transition) This is working for me
|
Good job! |
Thanks. Should I create a PR? Because the transition is not working, there is no fading. It is just a delay of 1s until the light is turned on. |
Transitions are working in general. :-) |
@B48D81EFCC I am also noticing delay when I power device on from AC. I tried default transition 0s, but it does not seem to make any difference. Any idea?
|
Hi @stomko11. But since you have the issue as well, I will take this opportunity and start testing it again. |
OK. One of the things I had to change was restore mode - but that was due to remembering which color temperature to start with. edit:
|
Do you have just the bare light in the code? Or are you setting up also bluetooth (for a remote control etc)? In my case the esp32_ble_tracker adds another second or so to the startup. Btw when I had esphome on a light with esp8266 I don't remember having this issue - it started right away. |
@czAtlantis I like your pragmatic way of thinking. |
@czAtlantis only light. |
This is the ESP8266 equivalent:
|
I will give it a try using Wemos D1 mini. |
I've update my YLXD76YL (Yeelight with stock single core ESP32) to ESPHome 2023.2.4 and applied this configuration:
Please keep in mind this is a device with a power supply GPIO. The delay on |
@syssi What does it mean it has power supply GPIO? |
At some yeelights (hardware revisions) the power supply can be controlled individually from the LED driver board. If you drive the LEDs (by PWM) without turning on |
@B48D81EFCC just FYI, as advised here and also in other thread, I have replaced my esp32 with esp8266 (wemos D1 mini) - now it is almost instant. I still do struggle with some initial light set, which is instantly replaced by desired color, but this isn't as unpleasant as 1s delay or flicker i experienced when I used GPIO0 (which is pulled high on boot) - big thanks to @syssi for guidance. My config so far is described in the other thread #10 (comment) |
Hi @stomko11 and thanks a lot. |
Hi, I have multiple lights YLXD032 and I decided to "ESPhome" some of them. Due to limitations with single core ESP32 I decided to desolder the ESP32 and replace with general dual core model. It is working fine but if I switch the light with regular AC switch, it now takes considerable time to actually light up. I would say over 1 second. With the stock ESP32 it was moreless instant.
I understand that these lights are meant to be powered all the time and control them using data commands but in some rooms I would like to have them controlled using regular wall switches - and yet I want to have ESPhome in them as the stock firmware is shit.
I am sorry for not understanding it more deeply so I ask here:
Here is a video comparing those two lights. First stock firmware and second ESPhome
https://user-images.githubusercontent.com/106582464/172583555-0ec7f183-c8d5-423c-9f7d-26e090b6a78d.mp4
(listen for the switches clicks)
The text was updated successfully, but these errors were encountered: