turn lights off when i leave

Hello,
I have some difficulties to use an automation « turn a device off when i leave( the phone tracker is considered as away) », it doesn’t work even with different methodes, i appreciate your help.
My Automation configuration bellow