About "This entity does not have a unique ID, therefore its settings cannot be managed from the UI"

You may get this message when you try to change the name or icon of an entity. If the entity comes from a template, you can give it a unique ID yourself:

  - sensor:
    - name: "Sunrise"
      unique_id: b77b9e57-c64f-4b59-9465-8a19ed886fec
      state:  "{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom ('%H:%M') }}"

If it comes from an integration created using yaml, you may be able to give it a unique ID. This works with generic thermostats, for example:

  - platform: generic_thermostat
    name: Living room
    unique_id: 179911f7-50a7-4c69-9ef5-a39ff2c459f3
    heater: input_boolean.heating_boost
    target_sensor: sensor.living_room_motion_sensor_temperature
    away_temp: 12
    home_temp: 18
    cold_tolerance: 0.2

There are several websites that will generate ā€œguaranteedā€ unique IDs for you. For example:

NOTE: You can also generate one if you are using VSCode (or CodeServer) add-on as your editor. Set your cursor in the spot you want to paste your unique_id, use your mouse to right-click, then select ā€˜Generate UUID at cursorā€™.

If the entity comes from an integration installed through the UI, your only option is to raise an issue with the developer on GitHub. There should be an issues link on the integration page.

image


The Home Assistant Cookbook - Index.

4 Likes