Esphome does not generate unique IDs

Can someone help me fix these errors in my log, I am not sure what they mean:

2021-06-02 17:02:24 ERROR (MainThread) [homeassistant.components.cover] Platform esphome does not generate unique IDs. ID home_cinema_blindcoverhome_cinema_blind already exists - ignoring cover.home_cinema_blind
2021-06-02 17:02:24 ERROR (MainThread) [homeassistant.components.sensor] Platform esphome does not generate unique IDs. ID home_cinema_blindsensorhome_cinema_blind_position already exists - ignoring sensor.home_cinema_blind_position

I don’t see any duplicates in my esphome yaml at all:

api:
  services:
    - service: control_blind
      variables:
        target: int
      then:
        - stepper.set_target:
            id: home_cinema_stepper
            target: !lambda 'return target;'
        - sensor.template.publish:
            id: blind_position
            state: !lambda 'return target;'

cover:
  - platform: template
    name: "Home Cinema Blind"
    id: home_cinema_blind
    device_class: blind
    open_action:
      - stepper.set_target:
          id: home_cinema_stepper
          target: 6000
      - sensor.template.publish:
          id: blind_position
          state: !lambda return id(home_cinema_stepper).target_position;
    close_action:
      - stepper.set_target:
          id: home_cinema_stepper
          target: 0
      - sensor.template.publish:
            id: blind_position
            state: !lambda return id(home_cinema_stepper).target_position;
    stop_action:
      - stepper.set_target:
          id: home_cinema_stepper
          target: !lambda return id(home_cinema_stepper).current_position;
      - sensor.template.publish:
            id: blind_position
            state: !lambda return id(home_cinema_stepper).current_position;
    optimistic: true
    assumed_state: true

sensor:
  - platform: template
    name: "Home Cinema Blind Position"
    id: blind_position
    
stepper:
  - platform: uln2003
    id: home_cinema_stepper
    pin_a: D0
    pin_b: D1
    pin_c: D2
    pin_d: D3
    max_speed: 250 steps/s
    sleep_when_done: true    

    # Optional:
    acceleration: inf
    deceleration: inf

You’ve likely used this ESP board before. With a different device name.

I think there’s a “Clean Build” option in ESPHome that along with deleting the existing integration prior should work.

Yes I used it before a long time ago.
And delete which, this one? Just clean build didn’t resolve.
image

Any idea what else I must delete/re-load?

See my post here. Also look under Developer Tools / Entities, tick any you no longer need and REMOVE SELECTED.

1 Like

Hey tom, I’m investigating this issue too, why is that you suggest doing a Clean Build?

Not sure. The solution posted by @Troon to delete the device from HA didn’t solve it for me.