How does ESPhome / HASS determine that a device is online?

I have a perplexing issue - one of my devices (a Sonoff TH10) shows as offline in ESPHome console yet it is online - I can ping it, the sensors are reporting status to HASS and the ‘Show logs’ function works.

Somehow it is getting confused and showing offline image

Thanks.

Richard

Hi Richard,

The ESPHome FAQ has the answer mDNS but you can change to ping

Hope that helps?
John

Thanks @skutter - I looked at that page but somehow missed that section - it has sorted the problem.

To save anyone else with the same issue having to search for it, the fix was adding "status_use_ping": true into the esphome config file. After a restart it worked.

1 Like

Hi Just in case someone want to know how to activate:

Settings-> AddOns → ESPHome → Configuration → Options → Show unused optional configuration options → ENABLE Use ping for status

9 Likes