Unique ID for UBIBOT

I am trying to configure an UBIBOT sensor and for that I included in the Condiguration.YAML the code bellow. However, I’m getting the following message: “This entity does not have a unique ID, therefore its settings cannot be managed from the UI.”.

sensor:
  - platform: rest
    resource: https://api.ubibot.io/channels?account_key=XXXXXXXXXXXXXXXXXXXXXXXXXX
    name: ubibot_temperature
    value_template: '{{ (value_json.channels[0].last_values|from_json).field1.value|round(1) }}'
  - platform: rest
    resource: https://api.ubibot.io/channels?account_key=XXXXXXXXXXXXXXXXXXXXXXXXXX
    name: ubibot_humidity
    value_template: '{{ (value_json.channels[0].last_values|from_json).field2.value|round(0) }}'
  - platform: rest
    resource: https://api.ubibot.io/channels?account_key=XXXXXXXXXXXXXXXXXXXXXXXXXX
    name: ubibot_external
    value_template: '{{ (value_json.channels[0].last_values|from_json).field8.value|round(1) }}'

That is not an error message, just a message. Integrations setup in yaml, such as rest sensors, normally don’t generate unique_id’s, only integrations setup through the UI do. There is 1exception I know off: you can add an unique_id to a mqtt entity setup in yaml.

Haw can I add a sensor to an area without the ID?

You can’t. Areas are a work in progress in HA at the moment, and of limited use.

1 Like