How to use device tracker?

so im trying to figure out how to use the device tracker, im having some issues. basically, tp link routers apparently, using the hacs integration, have this feature. and the devices that exist show up by mac address in the entities section of my home assistant, and properly register being “away” or “home” based on connection. my only issue is that i cannot for the life of me figure out how to use it as a trigger. what do i put in the automation’s trigger? i have tried status, and then every option im given to try to get it to trigger but it will only trigger when left completely blank upon either a connection or disconnection. if i try using either “home” “Home” “away” or “Away” in the “to” section it does not trigger at all. i have the option “source type” “latitude” “longitude” “gps accuracy” “scanner” and “friendly name” under “attributes” and i have tried leaving the “attribute” option blank as well. which option am i supposed to use and what am i supposed to put in the “to” section? nothing ive done has yielded any results whatsoever.

i have also tried filling in the attribute section with “place” and “Place” which isnt an option listed and that also didnt work.

trigger:
  platform: state
  entity_id: device_tracker.YOU
  to: 'home'

Or

trigger:
  platform: state
  entity_id: device_tracker.YOU
  to: 'not_home' 
1 Like

Waaat. So even though it says the state is “away” it’s actually “not_home”? I could’ve sworn I tried that via the gui and it didn’t work…