I have created a person and the state while in a zone named work reports as unknown.
I currently have one device tracker, owntracks on my phone that is associated to my person and the device tracker itself reports that it’s at work however the persons state is unknown.
Hoping someone could explain what is happening and if there is a potential fix.
I’m having the same issue. It’s new for me in 0.94.0. I think it has something to do with this:
Modernizing the device tracker
This release also introduces a long overdue overhaul of how the device tracker works. We are introducing this overhaul piece by piece, focusing first on device tracker platforms that push their updates to Home Assistant: mobile app, OwnTracks, GeoFency, GPSLogger and Locative.
These integrations will no longer use known_devices.yaml but instead use entities, like all other integrations in Home Assistant. You can change the name and entity ID via the UI. It is no longer posible to merge the devices with other device tracker entities. This was flaky at best. You should now use the new person integration for this.
I´m having the same issue, only thing is that i´m using the location service of the Ariela app, and as you say, the Entity reports the location correctly but I added the device_tracker.motorola_one entity to the person entity and it didn´t work.
this is what I added to the configuration.yaml file:
homeassistant:
customize: !include customize.yaml
and this is what I added to the customize.yaml file:
I used Person - Home Assistant and it was confusing because it duplicated my already existing user and the system was going nuts.
a previous tracking device that was created when I installed Home Assistant and logged in for the first time (2 days ago), I delete it because it just showed my location as in home always, so I tried to add the tracking device created when installed the Ariela app in my Android Phone (because that one is working flawlessly) but niether the frontend nor the config file worked…
You need to pick one OR the other, not both. You do not want the config in 2 places. Personally I prefer the frontend GUI for managing persons. I am guessing your issue was that you were trying to define it in too many places. Keep it simple.
I tried front end first as the novice that I am, it didn´t worked, after reading the documentation and watching some videos I modified the configuration.yaml file and that didn´t worked either and after searching around I found the persons file and that finally worked so don´t judge me for trying all that I can to make things work
I’m not judging. I was asking for reasons WHY you went the route you went.
The thing about the persons file, is that the GUI editor is editing that particular file. I don’t understand what you mean when you say the old device was stuck. There is what I would call a bug in the frontend editor, when you try to delete a device using the little X next to it, it doesn’t go away, but you can put the cursor in the box and delete the entry in there. It sounds like you may have run into that.
The reason I was asking, is because you shouldn’t edit those files in the .storage directory while the system is running. You should always shut down HA first. By editing the file directly, you merely did what the frontend does.
If you came across a REAL bug, then you need to report it, and not just work around it. If you indeed had a bug, it needs to be fixed.
as I stated in my post, it was what worked for me… I wasn’t aware that posting solutions that involved modifying the persons file was something ILEGAL, so I apologize if that´s the case, what I´m saying is that there are better ways to say things, if you had told me that from the beginning, things would be different…
I tried that solution but when I added the code to the configuration.yaml i got an error that stated duplicity on the users, so I had to remove that, this is what I added: