Closed borpin closed 3 years ago
Was this wemos d1 mini flashed with another firmware before or was it virgin?
Could you try a erase_flash and than flash the esphome firmware again?
Was this wemos d1 mini flashed with another firmware before or was it virgin?
Virgin.
Could you try a erase_flash and than flash the esphome firmware again?
I did, multiple times.
Could you paste the esphome logs when it disconnects? Best with very_verbose logging if possible for you.
Verbose logging doesn't work with this sensor (or is it VV - can't remember but it did fox me for a while). the error is just the 'API disconnected' error that is regularly reported, nothing else of use. Sadly I have moved the device/sensor to Tasmota (which is rock solid) so I don't now have the ability to generate fresh logs.
I do like ESPHome, the integration with HA and the simple method of configuration is excellent and easy from the add-on, if only the Wi-Fi was more reliable.
Have exactly the same problems except my nodes loose connectivity to API (worked stable over MQTT) after I've moved to API. I've "Cleared MQTT" before the process. Routers on Openwrt.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Compiled in HassIO on Generic install DietPi VM, ESPHome add-on
ESP (ESP32/ESP8266, Board/Sonoff):
WEMOS Mini D1
Affected component:
Wi-Fi & mhz19
Description of problem: The ESP device continually disconnects from the AP. This can be seen both in the ESPHome logs and the OpenWrt router logs. During the period up to when the OpenWrt router disconnects, data has been received by the sensor on the MQTT topic specified.
Problem-relevant YAML-configuration entries:
Logs (if applicable):
From ESPHome, the usual Home Assistant disconnects message.
OpenWrt logs
Additional information and things you've tried:
Set OpenWrt to not disconnect on low ack, tried various different combinations of the arduino environment and ESPHome versions.
I do have another WEMOS D1 Mini using ESPHome and the BME680 sensor that does not exhibit this problem of disconnecting.
I have reflashed the problem device with Tasmota, and that does not now exhibit the same problem (i.e. does not disconnect from the router).