Person YAML

1 Like

unfortunately I’m not able to add the user_id tag.

That is by design. The user_id tag is a random unique ID created by HA that should not be edited. That user_id is associated with your person entity in several places in the configuration. If you change it in one place and not all the others you’re going to be in for a bad time. Your person entities should definitely already have one.

Can I ask what you’re trying to do or trying to fix?

I created some users before I created the persons.
So I have persons who aren’t linked to their user-profiles.
In the UIs arn’t any possibilities to link them, so I thought I should do it by hand.

I didn’t see your reply here because you replied to the thread and not my message, so sorry for the delay here.

Anyway, I would guess that it’s probably much easier to delete the users/persons and recreate them than trying to muck around in the storage folders.

I see your report got picked up and this is getting fixed in the latest beta, so you were correct. Good stuff!

Hello, I configure the Person:

but the status of the entity tracking my phone is unknow:

immagine
immagine

Where am I doing wrong?

Thanks in advance for your support!

I had the same problem. I already had Users and I just created Persons corresponding to them. Since the UI does not support linking an existing User to a Person, I manually linked them. I did not want to delete and recreate the Users, since they already had their own passwords set up and were signed in on their devices.

After creating the Person, I got the user ID from Settings > People > Users > User, and manually added it to the created Person under /config/.storage/person. I then restarted HA, and the Person had the User linked to it.

I did a bit of digging in the system files using grep and it seems, that this does not actually mess up any config. HA treats People and Users differently, so User IDs and Peoples names appear separately in the config/data files.

Can you give some detail on how you did this part?

I used the Terminal & SSH addon and edited the file /root/config/.storage/person. If you have any other users, which already belong to a person, you will see the syntax for the user_id.
But here is a very simplified format (You may have other parameters, I omitted optional settings for the sake of simplicity):

      {
        "id": "user",
        "name": "User",
        "user_id": "insert_user_id_here",
         other settings....
      },