ESPHome - Binary Sensor - Only one entry being loaded

Have tried everything with Gemini - deleted senor, reloaded, even reinstanlled HA - adding ID’s etc -

Only the first sensor adds to HA-

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO13
      mode: INPUT_PULLUP
      inverted: true
    name: "Back Door"
    id: back_door
    device_class: door

  - platform: gpio
    pin:
      number: GPIO21
      mode: INPUT_PULLUP
      inverted: true
    name: "Garage Entry 2"
    id: garage_door
    device_class: door

  - platform: gpio
    pin:
      number: GPIO22
      mode: INPUT_PULLUP
      inverted: true
    name: "Front Door"
    id: front_door
    device_class: door

This is the log in HA:

**Log details (ERROR)**

Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:843
integration: Binary sensor ([documentation](https://www.home-assistant.io/integrations/binary_sensor), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+binary_sensor%22))
First occurred: 11:40:22 AM (12 occurrences)
Last logged: 12:03:07 PM

* Platform esphome does not generate unique IDs. ID 34:5F:45:AB:28:64-binary_sensor- already exists - ignoring binary_sensor.esp_home_sensors_2_back_door
* Platform esphome does not generate unique IDs. ID 34:5F:45:AA:1F:40-binary_sensor- already exists - ignoring binary_sensor.esp_home_sensors_3_back_door

,How to format your code in forum posts

Thanks, updated the formatting!

I suspect that is the clue you need to understand.

Search for that error message and you will see other people have run into similar problems.

The issue seems to be you have multiple devices that have the same sensor name and a previous device is using one of the sensor names you are trying to use on this one.

There is some magic that you need to do to get rid of the old one. Or you could just give it a name you haven’t used before.

They don’t have the same sensor name or sensor ID. If you look at the log it is truncating the sensor name I have done lots of research and have had this working well before. Not sure if there was some weird update.

Looks like there might be some changes recently.

Thanks Neel! I’ll research the August update and report back!

I updated the server to the August 2026 build. It was using the dec 2025 build. I think it stopped working due to either updates in esphome or home assistant. I was planning to update to the latest and then use the update where you can now show what columns are used to identify the sensor. The os update caused it to work so I’m not going to update that new setting.

Thank you for the help!