Open lasmaty07 opened 2 months ago
I’m getting similar to this. Rock solid device for ages but had not update in a very very long time. Applied updates and boom getting device dropouts and similar messages to logs above.
Same issue here. Never had issues before and have been using ESPHome for a couple of years now. After upgrading to 2024.5.3 I started getting Connection reset by peer errors. I have investigated network connectivity/wifi issues but I can see no problems and also nothing changed in my network settings lately. After the same upgrade I also started getting Out Of Memory errors with ArduinoJson on devices which were using both API and MQTT- could this also be an OOM issue just less visible?
I will have one of the affected devices with DEBUG logging but any iddeas would help.
Thanks.
I have this issue on two ESP32-C3 since a couple of months.
Other error I see:
Logger: aioesphomeapi.reconnect_logic
Source: runner.py:190
First occurred: May 25, 2024 at 20:37:10 (1 occurrences)
Last logged: May 25, 2024 at 20:37:10
Can't connect to ESPHome API for REDACTED @ 192.168.18.18: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.18.18', port=6053))]: [Errno 111] Connect call failed ('192.168.18.18', 6053) (SocketAPIError)
One has web interface enabled, the other not, so that's not related to this at least.
I have one ESP8266 which does not have the issue so far.
I had this problem. I saw that in the integration list for esphome, the device with the problem had 2 units connected. So I deleted it from the list and added it again and the problem was gone.
I can't say anything about your problem, but it is something you could check in your HA.
Thanks @stigvi but my 3 devices are listed only as "1 device", the root cause seems to be different for me at least.
It lasted only a few days and it started to reset the connection again each 5 minutes. But I found out when this happened, it was connected to a wifi mesh node with a weak signal. And it seems to not connect back to the nearest wifi node until the esp32 was reset.
I am now forcing the esp32 to connect to a spesific wifi node and that seems to do the trick. It has been free from "connection reset by peer" for a few days now, but you never know.....
wifi:
domain: .lan
networks:
- ssid: "HEIME5.ORG"
password: !secret heime_wifi
bssid: "70:3A:CB:F4:ED:F6"
The problem
Im trying to read the ambient light with a
bh1750
and using the shownyaml
, every couple of readings, It becomes offline and shows the log presented.tried changing the frequency, because I read here with no luck
also tried commenting out the "scan: true".
any help is appreciated.
Which version of ESPHome has the issue?
2024.2.2
What type of installation are you using?
Docker
What platform are you using?
ESP32
Board
nodemcu
Component causing the issue
i2c/bh1750
Example YAML snippet
Anything in the logs that might be useful for us?