Before yesterday, I always used my device tracker for my phone to track my presence. In the Lovelace UI, it was showing as Home or Away (even if the real state was home/not_home).
I have now create a Person for me and assigned my phone device tracker to it. The weird thing is that the Person state is showing home/not_home in the Lovelace UI instead of showing Home/Away. Even weirder, the phone device tracker still show Home/Away correctly.
The new person functionality is in it’s infancy. I don’t think it is getting executed through the same code a device tracker. There are other issues with person, i.e. it doesn’t show you what zone you are in. I do not know for certain, but I believe this will change over time.
So with that being said, you could get around this currently by making a template sensor. But then in the UI, you’d need to use the sensor in all the places you wanted to use the person.
It’s a bandaide, but it will get you what you want.
You’re also welcome to report the issue with person on Github. I thought there would be some reported issues on this, but I don’t see any. Might be advantageous to get it on paper.
EDIT: Just replace ‘person.x’ with whatever your person name is. You can also add other fields to the template as well
It’s probably just not set up to show like that in the UI. The actual state of device trackers is the same home/not_home but the UI knows to show it as Home/Away (see here).
I don’t see anything in there for person, so it’s just going to show the actual state in the UI. It probably just didn’t get updated when the person component was added.
Be ware, there is a major difference between actually changing the state (which this does) and changing the display of the state (_stateDisplay obviously…). As the author states, it can have performance implications, but more importantly, it interferes with the internal state handling in HA.
so, _stateDisplay: hasn’t been replaced by state: which has always been there. They are different, and state: should be used with care.
As I type this, I have one device tracker (via my home wifi) which correctly says I’m ‘not_home’, but a second device tracker (Owntracks GPS) which correctly says I’m at ‘Work’. I am using Zones for home and work.
But my Person entity says I’m ‘not_home’, instead of at ‘Work’.
I’m on 0.92, and I could have sworn it was working in a previous version.