I have several ESPHome nodes that ALL disconnect at (virtually) the same time at random. They all reconnect after some seconds.
I have recently migrated from Ubuntu/HA to Proxmox. Could there be something amiss with my ESPHome Integration following the snapshot restore from one ‘system’ to another or is this signs of a more fundamental network issue?
Here are the logs for two devices showing (virtually) the same times.
esp32_01 log
[09:13:13][D][sensor:092]: 'esp32_01 WiFi Signal': Sending state -57.00000 dB with 0 decimals of accuracy
WARNING Disconnected from API: Timeout while waiting for message response!
INFO Connecting to esp32_01.local:6053 (192.168.1.207)
INFO Successfully connected to esp32_01.local
[09:13:34][D][api.connection:583]: Client 'Home Assistant 0.114.3 (192.168.1.25)' connected successfully!
[09:13:34][D][time:029]: Synchronized time: Wed Aug 26 09:13:34 2020
[09:13:37][D][api:067]: Disconnecting Home Assistant 0.114.3 (192.168.1.25)
[09:14:09][D][sensor:092]: 'esp32_01 Uptime': Sending state 2015.99097 s with 0 decimals of accuracy
esp32_01 log
[09:13:11][D][sensor:092]: 'Loft Humidity': Sending state 57.30000 % with 1 decimals of accuracy
WARNING Disconnected from API: Timeout while waiting for message response!
INFO Connecting to esp32_02.local:6053 (192.168.1.190)
INFO Successfully connected to esp32_02.local
[09:13:34][D][sensor:092]: 'esp32_02 Uptime': Sending state 1966.03198 s with 0 decimals of accuracy
[09:13:34][D][api:067]: Disconnecting Home Assistant 0.114.3 (192.168.1.25)
[09:13:35][D][api.connection:583]: Client 'Home Assistant 0.114.3 (192.168.1.25)' connected successfully!
[09:13:35][D][time:029]: Synchronized time: Wed Aug 26 09:13:35 2020
[09:13:35][D][xiaomi_ble:161]: Got Xiaomi LYWSDCGQ (58:2D:34:33:B1:85):
[09:13:35][D][xiaomi_ble:164]: Temperature: 20.4°C
[09:13:35][D][sensor:092]: 'Upstairs Hall Temperature': Sending state 20.40000 °C with 1 decimals of accuracy
[09:13:36][D][api:067]: Disconnecting ESPHome v1.14.5 (192.168.1.25)
[09:13:59][D][xiaomi_ble:161]: Got Xiaomi LYWSDCGQ (58:2D:34:33:AB:4D):
[09:13:59][D][xiaomi_ble:164]: Temperature: 20.5°C
For info, I have a Unifi network (the UniFi controller is on a Proxmox Container)
I had an issue with this happening after I had installed room-assistant on my rpi that is also running hass. Turns out the on board Bluetooth was clashing with the wired Ethernet controller. I put a usb Bluetooth adapter in and all was good again.
Different problem to you, but effectively the same in the fact it’s certainly network related and not a general issue.
@tom_l Just for the record I found another NirSoft utility for Ping that gives timestamps (I think there is a NirSoft utility for almost anything!) and here is evidence that only my HA becomes unreachable.
Setting the width of the wifi to 20 mhz and fixed channel instead of auto is what really made a difference for me. In auto mode, the router changes channel and I think that was the main issue for disconnecting all nodes at once
I have another thread on a related topic but approaching it from a different angle. I posted a thankyou there and tried to copy it here but the forum won’t allow me to post another reply with the same content.
Here is a link to it but TL:DR, I took the nuclear option and rebuilt everything. Seems to be all ok now.