I believed that an entity_id
for a person
entity is generated on a unique id
attribute.
But now it seems that it is generated based on a name
attribute (which may not be unique).
Examples:
person:
- name: John Smith
id: john_smith
device_trackers:
- ...
- name: John Smith
id: john_smith_junior
device_trackers:
- ...
Instead of person.john_smith
& person.john_smith_junior
I am getting person.john_smith
& person.john_smith_2
.
Why?
And what is a meaning of the name
id
attribute then?
I consider this as a BUG.
P.S. We can manually change entity_id
for the person.john_smith_2
. But anyway - it should be automatically generated on that unique id
attribute.