Set a sensor value

I have some automations that I need to tweak due to proximity. no longer being available. Rather than see where things are used and change them all figured I’d do so at the one place they were set. So take below:

- platform: template
  sensors:
    biphone_direction:
      value_template: '{{ state_attr("proximity.bhome", "dir_of_travel") }}'
      friendly_name: "Barbs Phone Direction"

So apparently I need to replace the value_template content because of proximity.bhome. So I think I can replace that value with sensor.home_7_barb_tracker_direction_of_travel but not sure how I replace that value_template line so it gets the value from the other location. Everything I’ve tried to date come up “undefined” for the value.

Like this:

value_template: '{{ states("sensor.home_7_barb_tracker_direction_of_travel") }}'