Is there a way to use a binary_sensor as an device_tracker?

Thanks for your quick solution. If i get this right, I need an existing device_tracker.tracker1 entity id and the above automation just changes its state, right?