Entity does not have a unique identifier · Issue #1836 · AlexxIT/SonoffLAN · GitHub
Skip to content

Entity does not have a unique identifier #1836

Open

Description

@guyye

i am trying to add a new device type THR320 and getting the following error -
This entity ('switch.1002a9XXXX') does not have a unique identifier; therefore, its settings cannot be managed via the user interface. Refer to the documentation for further details.
due to that i cannot use it in the HA.
at the ewelink works fine.
Thanks

Activity

  1. guyye commented on Jul 8, 2026

    @guyye
    Author

    Additional details that might help diagnose this:

    • Correction/clarification: the device is registered as THR320D (has the LCD display, shows temperature/humidity in real time) - not a plain THR320 as the issue title suggests. THR320D (UIID 181, type th_plug) is listed as supported in DEVICES.md, so this doesn't look like a "missing device support" case.

    • Current behavior: the switch and both sensors (temperature, humidity) work correctly - I can read all states and send on/off commands successfully via Developer Tools → Actions, and the dashboard toggle works too.

    • The problem is specifically: no unique_id is generated for any of the three entities (switch.1002a9c3db, sensor.1002a9c3db_t, sensor.1002a9c3db_h). They show the "no unique identifier" warning in the UI and cannot be assigned to a Device or Area.

    • I also have some leftover orphaned/unavailable entities from earlier pairing attempts not linked to any integration - not sure if related, but mentioning in case it's relevant to how the device was first added/re-added.

    Happy to attach the diagnostics JSON (Settings → Devices & Services → Sonoff → Download diagnostics) or DEBUG log output if that would help pin down the actual UIID being reported - just let me know exactly what's most useful.

    Thanks for maintaining this project!

  2. guyye commented on Jul 15, 2026

    @guyye
    Author

    Any update ?

  3. AlexxIT commented on Jul 16, 2026

    @AlexxIT
    Owner

    All entities from the integration have a unique identifier. If an object doesn't have an identifier, it's not from this integration.

  4. guyye commented on Jul 16, 2026

    @guyye
    Author

    So how to resolve it ? Its a sonoff device?

  5. changed the title [-]THR320[/-] [+]Entity does not have a unique identifier[/+] on Jul 17, 2026
  6. AlexxIT commented on Jul 17, 2026

    @AlexxIT
    Owner

    You need to figure out where these entities come from.

  7. guyye commented on Jul 18, 2026

    @guyye
    Author

    It is a new sonoff swith i connected. How to define an id to it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions