home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.13k stars 29.81k forks source link

ESP32 connection problem to HA after power off and power on the HA #115492

Open misa1515 opened 5 months ago

misa1515 commented 5 months ago

The problem

HW Raspberry Pi4 HomeAssistant Core 2024.4.3 Supervisor 2024.04.0 OS 12.2 Frontend 20240404.2 Esphome 2024.3.2 Esphome hw ESP32-WROOM-32 (AZ-Delivery) Python 3.12.3 (issue know too for older versions of HA and Esphome)

Description of issue When are power off RPi4 and Esphome - then after power on HA is started without any issue and ESP32 is on (RED LED ON, power 5VDC), but not found online in HA. Then power adapter of ESP32 is unpluged and again powered and then is again online in HA (issue can be reproduced and is happened repeately). When only RPi4 is switch to power off state. Then is powered on again (ESP32 is still under voltage) - but not found ESP32 online in HA Esphome. Then power adapter of ESP32 is unpluged and again powered and then is again online in HA Esphome (issue can be reproduced and is happened repeately).

How to solve this repeated issue, please?

Sensitive data in source code exchanged by question mark symbol. Source code attached. Plynomer_SourceCode.txt

What version of Home Assistant Core has the issue?

2024.4.3

What was the last working version of Home Assistant Core?

not relevant (know issue in previous versions too)

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ESPHome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/esphome/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @ottowinter, @jesserockz, @kbx81, @bdraco, mind taking a look at this issue as it has been labeled with an integration (esphome) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `esphome` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign esphome` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


esphome documentation esphome source (message by IssueLinks)

misa1515 commented 4 months ago

Hello @OttoWinter, @jesserockz, @kbx81, @bdraco, which additional data (and how to collect it) will be helpful for your further investigation? Yesterday happened again after power outage (posible to reproduce the issue).

cpadavis2 commented 1 month ago

I am having the same issue and am looking for answers