This automation works for me, with no device_tracker.y’all file.
alias: Person, from apple homekit
description: ''
trigger:
- platform: state
entity_id: input_boolean.virtual_person_home_alexander
from: 'off'
to: 'on'
action:
- service: device_tracker.see
data:
dev_id: alexandertracker
location_name: home
mode: single
Your automation looks the same, just using a template, so strange it is not working. Might be something with template generations a string or?
I have 2 automations, one for on and one for off