core: More and more ESPHome devices are falsely disappearing / are offline, but esphome logs shows no errors

The problem

Since about 1 month I’m losing more and more ESPHome devices (which worked fine before) - they suddenly show as offline / not available - even though I can see in the esphome logs that they are connected successfully and report valid data (also the report data api calls are working fine, no errors occuring on the esphome side).

Right now I restarted my home router, and now I have multiple devices with this problem - esphome logs show no issues - but none of the devices are available in the home assistant UI.

I can also ping my devices outgoing from the home assistant server (f.e. via ping t1.local and I can connect the esphome device successfully via telnet).

I deleted the entries and added them again via the integrations UI, but the still keep appearing offline 😦 Also tried to delete the corresponding files in the .storage folder, still doesn’t work - devices are appearing offline 😦

Environment

  • Home Assistant Core release with the issue: 0.114.0
  • Last working Home Assistant Core release (if known): don’t know, since about 1 month
  • Operating environment (OS/Container/Supervised/Core): Linux native
  • Integration causing this issue: Esphome
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

# no sepcial configurations

Traceback/Error logs

unfortunately there are no error logs, neither on the esphome side (via debug log level), nor in the home assistant log.

Additional information

Maybe this is related: https://github.com/esphome/issues/issues/1237 ( but I don’t think so, i didnt change any hardware / firmware, only restarted my router and they went offline permanently after router restart).

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 25 (10 by maintainers)

Most upvoted comments

@h0jeZvgoxFepBQ2C yeah, there’s definitely something off. I still have a few devices that have been acting up and have seen the same thing where some ‘.local’ devices stay connected and others don’t. Ip addresses all seem to be working for me except one. I’ve noticed similar issues with other integrations. So I’m wondering if it isn’t something to do with the supervisor.

Thank you for your answer 👍. sorry, I have two more beginner questions:

remove them

What you mean with “them”? deinstall esphome in the superviser?

remove the files

What you mean with “the files”? The files in /.storage or the files in /config/esphome/ ?

Thanks again

Ok, it really looks like 0.114.3 improved the situation. All my devices are now connected again (some of them I had to completely remove from my .storage/ files and re add them as intergrations - but at least it works now 👍

Thank you so much for this fix! ❤️

@meichthys Hm, unfortunately it doesn’t change anything. The strange thing is also, that I have some entries specified with “xyz.local” - and some with the IP address. But it’s not determinist which of the descriptors work - I have some working with .local and IP, and some not working with .local and IP. 😦