Device tracker state change

Hi all,

I’m trying to use state of a device tracker to ensure that someone has been home for x minutes. What I’m noticing is that every time the phone sends its location (or HA polls for it), the last_changed value updates to that time. This means that my calculation for time difference almost always fails if I put it above 5 minutes.

Is this normal behaviour? Is there a better way to work out what state was x minutes ago?

Cheers,
Adam

Try to put the device tracker into settings → Person

I had already done this but the fix in the end was to use the person entity instead of the device tracker.