CoolKit-Technologies / ha-addon

Apache License 2.0
265 stars 121 forks source link

Add unique_id #53

Closed Antoni-Czaplicki closed 2 years ago

Antoni-Czaplicki commented 2 years ago

@coolkit-tony do you have any plans for adding mac as unique_id to devices?

coolkit-tony commented 2 years ago

Hello, @Antoni-Czaplicki. Is there any reason to do this?

Antoni-Czaplicki commented 2 years ago

Yes, adding it would allow us to configure the device (change name or entity-id) with ui. https://developers.home-assistant.io/docs/entity_registry_index#unique-id

niezw commented 2 years ago

Has been supported on the latest version

niezw commented 2 years ago

The way we add entity is to use the HA Rest API, which does not provide the ability to set unique ID.

https://developers.home-assistant.io/docs/api/rest