Basic automation with device tracker not working

We are not mind readers, if you want help please follow the Community Guidelines by sharing the YAML configuration for your automation. You can access the automation’s configuration from the Automation editor by clicking the 3-dot menu at the top right hand corner, then select “Edit in YAML”. Copy everything and paste it here properly formatted.