-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
ESPHome is broken, api rest and disconnect devices pi pico w after Home Assistant 2023.5.0 core update #92432
Comments
Second device also do the same [01:37:37][W][api.connection:087]: Home Assistant 2023.5.0 (192.168.2.140): Connection closed [01:38:00][W][api.connection:087]: Home Assistant 2023.5.0 (192.168.2.140): Connection closed |
Same here. No Entities available. But all ESPs in dashboard are online and i can see ESP Logs. Some logs from HA attached |
Ok, I worked out something related to timers. on the other hand, the unit I use to operate my switchover in my DB also failed but there I measure the mains voltage with EmonLib.h thus render my power measurement useless. So no timers and obviously for me no power besides the fact that I have to live with load-shedding E.G. ( zero electricity ) Thanks, guys if you can look at what happened with timers in the last Home Assistant 2023.5.0 core update it totally broke esphome. |
Hey there @OttoWinter, @jesserockz, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) esphome documentation |
It looks like something is reloading your esphome config entries in the middle of them being setup |
It looks like the dashboard reloads all the loaded esphome devices when
|
thats not a new change though #86174 |
I think we can get rid of the reloads |
Looks like we can't get rid of the reloads |
So what happens is the dashboard gets initialized and it reloads the config entries. But since they are still doing the handshake with the esphome devices and it tries to tear down the connection everything fails
|
alternate solution esphome/aioesphomeapi#428 |
Here is a screenshot of my uptime and wifi signal percentage. you will see what happened on the 4th of May when I did the upgrade to 2023.5.0 core. yaml: api: Multipul Networkswifi: At 90% wifi Signal the pi pico w device constantly disconnects from the API and loos the wifi connection thus rendering the pi pico w to reboot permanently and in turn switch off all Outputs in the process and have to restart everything, very few times I find it stays connected for longer periods. This happens on all my pi pico w devices even before the update to 2023.5.0 core. I do install all updates to test and see the results. anyone is welcome to ask questions regarding the system I'm running. |
hm, issue closed? Does that mean that everthing is fine in 2023.5.1? I try today but all esphome entities still not availbale, |
when i delete one esp from the integration and re-add it, everthing is fine. When i restart HA or the whole system, the entities are gone again. |
…in progress (home-assistant#92537) Bump aioesphomeapi to 13.7.3 fixes home-assistant#92432
Im testing today and still have a hard time with emonlib and time: when I enable any one of the two integrations I still experience the same after updating to 2023.5.2 I also try using different approaches like compiling with esphome, esphome(dev), and esphome (beta) and my results is still the same as before. Note after all the failures the device miraculously stays connected for over 2 to 4 hours at a time, but I do not dare touch time: or emonlib. then it will never connect I have to manually upload any new changes wia wifi is not possible then. If there is any other suggestion I can use instead of emonlib I will try that gladly I do know that emon lib is resource hungry Here is my log. INFO Reading configuration /config/esphome/plot35generator01.yaml... |
…in progress (home-assistant#92537) Bump aioesphomeapi to 13.7.3 fixes home-assistant#92432
The problem
All esphome devices react unespectedly strange after core update.
Some don't connect and some sit in a state of connection but data is all corrupted seems like.
Complet system unusable at this point. You have all telemetry to my data for your use to debug if need be.
What version of Home Assistant Core has the issue?
core_2023.4.6
What was the last working version of Home Assistant Core?
core 2023.5.0
What type of installation are you running?
Home Assistant Core
Integration causing the issue
ESPHome
Link to integration documentation on our website
No response
Diagnostics information
API continuously disconnecting nodes pi pico w's
Example YAML snippet
Later no power now.
Anything in the logs that might be useful for us?
Additional information
It got to do with Timers in esphome.
I removed time: and all code related to timers for example emonlib then the devices become live again.
Forgive me since my pc is switched off now and sit in load shedding in South Africa ( no electricity for hours to come ) and post this via my phone. I will add more detail later.
The text was updated successfully, but these errors were encountered: