Tp link device tracker hacs integration

So how does one use the home and away states? For the hacs integration that allows device tracking? What attribute is that? I can’t figure out how to use a state attribute to trigger something when away.