ESPHome Sensor no longer talking to HA - and how I "fixed" it

I am trying to get some basic understanding of how this integration works as I’ve been struggling with a sensor in a way that makes no sense to me. I’m using the native HA-API, not MQTT.

I use the latest version of ESPHome and HA, and an existing sensor with a fixed IP address that measures outside temperature. It worked for months but suddenly stopped without me changing anything (except regular upgrades to HA). The hardware seems fine, and I can upload firmware to my sensor and read logs, so the Wifi looks fine as well. But in HA - I get “Unavailable” when looking at the sensor.

The way I finally “fixed” it is:

  1. Change the (fixed) IP Address for the sensor
  2. Give the devices a different name

After that, I’m using the same (original) yaml (ESPHome) file and the sensor works again.

Would anyone know why this could happen and which part of Home Assistant I’m avoiding/why it now works because of the different name / IP Address?

Thanks in advance - just trying to find an easier way to fix it for next time

1 Like