Changing device_tracker location in automation action

I’ve managed to do what I want using mqtt tracker.