After that when I added 4th device based on NodeMCU with over ESPHome (ver. 1.14.2) add-on in HASS.IO what siting on windows virtual machine. I discovered that My devices lost connection quit offen
I added uptime sensor an it’s look like this:
There’s another thread here discussing wifi connection stability.
It specified using a particular ESPHome option to disable power-saving. Links coming in a few minutes.
Couldn’t find the exact thread. What you want is this option in the wifi: section.
Any tip more - still nothing
I put ping on it, and 1,5 -2 % of pings are missing
[03:07:26][D][dallas.sensor:148]: 'akvaariumi kapp': Got Temperature=22.1°C
[03:07:26][D][sensor:092]: 'akvaariumi kapp': Sending state 22.06250 °C with 1 decimals of accuracy
WARNING Disconnected from API: Timeout while waiting for message response!
WARNING Error resolving IP address of akvaarium.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Couldn't connect to API (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname). Trying to reconnect in 1 seconds
INFO Connecting to akvaarium.local:6053 (192.168.200.92)
INFO Successfully connected to akvaarium.local
[03:08:40][D][sensor:092]: 'Uptime akvaarium': Sending state 34.15500 s with 0 decimals of accuracy
[03:08:59][D][dallas.sensor:148]: 'akvaariumi vesi': Got Temperature=25.4°C
[03:08:59][D][sensor:092]: 'akvaariumi vesi': Sending state 25.43750 °C with 1 decimals of accuracy
[03:08:59][D][dallas.sensor:148]: 'akvaariumi kõrval': Got Temperature=24.1°C
[03:08:59][D][sensor:092]: 'akvaariumi kõrval': Sending state 24.12500 °C with 1 decimals of accuracy
[03:08:59][D][dallas.sensor:148]: 'akvaariumi kapp': Got Temperature=22.1°C
[03:08:59][D][sensor:092]: 'akvaariumi kapp': Sending state 22.06250 °C with 1 decimals of accuracy
[03:09:08][D][sensor:092]: 'WiFi Signal akvaarium': Sending state -52.00000 dB with 0 decimals of accuracy
[03:09:40][D][sensor:092]: 'Uptime akvaarium': Sending state 94.14800 s with 0 decimals of accuracy
[03:09:59][D][dallas.sensor:148]: 'akvaariumi vesi': Got Temperature=25.4°C
[03:09:59][D][sensor:092]: 'akvaariumi vesi': Sending state 25.43750 °C with 1 decimals of accuracy
[03:09:59][D][dallas.sensor:148]: 'akvaariumi kõrval': Got Temperature=24.1°C
[03:09:59][D][sensor:092]: 'akvaariumi kõrval': Sending state 24.12500 °C with 1 decimals of accuracy
[03:09:59][D][dallas.sensor:148]: 'akvaariumi kapp': Got Temperature=22.1°C
[03:09:59][D][sensor:092]: 'akvaariumi kapp': Sending state 22.12500 °C with 1 decimals of accuracy
[03:10:05][I][ota:046]: Boot seems successful, resetting boot loop counter.
[03:10:08][D][sensor:092]: 'WiFi Signal akvaarium': Sending state -51.00000 dB with 0 decimals of accuracy
for aquarium solution this OK, but I want put my old PIR sensors with ESPHOME as well to HomeAssistant
I struggled with my esphome bases bed sensor (hx711) doing the same thing and unfortunately didn’t find a solution as of yet. I also noticed a delay in some LEDs that was being caused by the same disconnections.
Eventually I just moved everything over to tasmota.
Uptime is not how long they’re connected, it’s time since last boot.
I have some d32 boards, and recently when I tried introducing a captive portal into their config they went slowly crash looping like that. Moving back to previous firmware version made it stable again.
I think there’s a chance that the software might log the reason it’s rebooting, and that might help debugging. If you could keep it connected via serial port long enough, you might be able to find the cause.
I’l try with serial debug today .
And when I want change version of ESP Home - then I must but on config something like that: esphome_version": "v1.10.0"" . ?
No, it’s keeping its Wi-fi connection. It’s just the connection to HA that disconnects. From the log it looks as if it’s deliberately disconnecting rather than losing the connection.
Are you referring to a duplicate physical device i.e. Sonoff Bridge or duplicate binary sensor device?
EDIT: I’ve just checked this and there are no duplicates.
I too had severer wifi stability issues. I fixed it by setting up a 2.4G only wifi network for my sensors (esphome) devices. I have a unifi setup so it was relativity easy to setup another network (SSID) and set it to only use the 2.4G radio.
Please note that my normal wifi network has multiple access points that are not all unifi devices so the issue also could have been the esphome device hopping between access points. I have not tested fully, as now my wifi stability is rock solid.
Moving from ESPHome 1.13.6 to the 1.14.x branch, I had a great many difficulties with connectivity ranging from devices that simply wouldn’t connect to wifi at all, to devices that would, but would lose connection to HA.
I resolved this for myself by reverting to 1.13.6, where I remain. But I have been thinking about reverting to an MQTT-based setup. It may not dovetail as tightly with HA, but there are features of MQTT that are quite attractive, such as the protocol’s inbuilt ability to remember the last state in the event of a disconnect. I think I will start looking at this for non-lightswitch devices, where possible MQTT latency doesn’t matter as much.
I’m sure it’s not a WiFi issue. The log suggests that it’s actively disconnecting rather than losing the connection.
I have 62 (at the last count) binary_sensors that I’m trying to add to the bridge. A combination of motion detectors, door switches, and the associated battery low signals.
I’ll see if I can give 1.15 a try. I’m running ESPHome in docker.
Any news on this? I have the same issue with my D1 mini. In the logs I keep seeing messages pop up that home assistant is disconnected, followed by the successful connection of home assistant…
There’s an open issue for this, I just added some details about my issue, please also report yours there otherwise this will marked as stale and not fixed. It’s been going on since I updated to ESPHome 1.14.0. This problem was not there on previous versions:
Looking at the Dropbox logs, the abort / crash messages are definitely a sign of some kind of bug. If you temporarily remove everything other that wifi / uptime sensors and log and ota, does it live through the hour?