Closed bk8190 closed 5 years ago
It seems like two Home Assistant instances (or two integrations) are connecting to ESP (two disconnect messages). Please see the integration screen on HA and see if there are duplicate entries.
Also, the native API is not an "HTTP API". It is a custom TCP protocol (and has much lower overhead than http).
Hi Otto, Thanks for the response! I have been also having duplicate entity problems. Upon rebooting HA, sometimes the esphome integration will create a new "sensor.test_temperature_2" in addition to "sensor.test_temperature". I only have one HA instance. To fix this, I have to remove the entities from the entity registry, remove the integration, and re-add it.
One thing that may be relevant... I've been having Docker DNS issues where my Hassio esphomeyaml container cannot resolve "test_esp.local", so I have been using the bare IP address to connect.
Could this be some kind of issue with the asynchronous HA logic?
Were you previously using MQTT instead of the native API? If so, you may need to clean out the discovery topics. It's mentioned in the MQTT->API migration docs but it seems like a lot of folks skip it.
I have the MQTT discovery turned off. The problem seems to have resolved itself, over the past few days it has been much more stable... I will update if the problem comes back
Closing due to inactivity
Operating environment (Hass.io/Docker/pip/etc.):
Hass.io latest v143 running on Debian on KVM, Home Assistant version 0.87.1
ESP (ESP32/ESP8266/Board/Sonoff):
ESP8266 (Both Lolin D1 Mini and Sonoff S21)
Affected component:
https://esphome.io/components/api.html
Description of problem: I use the HTTP API and my Home Assistant shows that all of my boards (Lolin D1 Mini and Sonoffs) temporarily become "unavailable" about 20-30 times per day. They always reconnect within several seconds of becoming unavailable
Sometimes it happens to multiple devices at once, where multiple devices drop out at once and then rejoin several seconds later.
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information: Let me know if I can get additional info - e.g. increasing log verbosity