Open notsphinx opened 1 day ago
The disconnect is coming from the HA side, not the device. There are no logs on HA about this? Check both the general ones and the device specific ones.
How are you getting these logs with the mac suffix enabled?
Mystery partially resolved:
I looked in the HA logs with the device name instead of the device IP address. It looks like HA is attempting to connect to an IP address that is different than what the DHCP server assigned to the device. I tested by configuring the DHCP server to assign the address that HA was trying to connect to and the ESPHome device's connection to HA API is stable.
Where is the IP address of the device cached in HA? And why doesn't it auto update if the IP address changes?
The problem
I have 103 ESPHome devices on my home network. Two of the devices disconnect from Home Assistant API. They are connected fine on WiFi and I can manage them using the web interface, but none of their related automations work. I can re-add the device to HA after which they stay connected for about 2 minutes and then drop off from HA even though they are reachable on the network. This is always specific to two of these devices (different types, so different yaml files) and this problem persists across device reboots and HA reboots.
I have multiple devices of each of these types, so not specific to one particular device type. The WiFi signal strength according to these devices is about -57 or -58 dBm. I do not believe this is WiFi related since that could cause some degree of randomness.
Which version of ESPHome has the issue?
2024.11.2
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
2024.11.3
What platform are you using?
BK72XX
Board
Cree BR30 Light bulb (generic-bk7231t-qfn32-tuya)
Component causing the issue
api
YAML Config
Anything in the logs that might be useful for us?
Additional information
No response