ESPHome device working but showing "unavailable" in HA

I have several ESPhome devices but one is giving me issues. If I view the logs of the device on the ESPhome menu everything looks fine. It connects to the device and the logs show the state changes. But in HA the entities show as “unavailable” and I’m getting this in my logs:

Logger: homeassistant.components.sensor
Source: helpers/
Integration: Sensor ([documentation](, [issues](
First occurred: 10:51:34 PM (6 occurrences)
Last logged: 11:07:47 PM

* Platform esphome does not generate unique IDs. ID air-compressor-controlsensorair_tank_pressure already exists - ignoring sensor.air_tank_pressure
* Platform esphome does not generate unique IDs. ID air-compressor-controlsensorair_line_pressure already exists - ignoring sensor.air_line_pressure

Any idea how to fix this?

I think you should remove the device in devices and integrations, then re-add it again.

I tried that but the problem persisted.

Just a thought… does another device with the same name already exist?

Nope, that’s the only device with that name.

This weekend I had an IP address conflict with this ESP device and a TV. I corrected that conflict, rebooted my router, HA, and the ESP device.

Try removing the integration as well as the sensors:
air-compressor-controlsensorair_tank_pressure and

And just a question…do you use static IP’s, or DNS name?
Could be an issue with MDNS :-/

I got it figured out. Somehow another ESPhome integration added my air compressor control ESP board to it’s integration. I have no idea how that happened, especially since the ESP integration that it was added to is for an ESP board that I’m not currently using. Very odd.

I removed the air compressor ESP integration and the integration that had falsely adopted the air compressor ESP board, did a restart, then added the air compressor board back on.