REST resource not accepting state.sensor value

Hi…
Don’t understand what’s wrong.
I have a sensor that has a value. That value must be included in a resource for a REST sensor.
See

  ## Virtual Radar JSON
  - platform: rest
    ## Get AIRVCRAFT JSON from VRS. with nearast plane
    resource: http://ip_and_params={{states('sensor.ultrafeeder_airplane_closest')}}

In the sensor I have the state sensor.ultrafeeder_airplane_closest
image

  ## Virtual Radar JSON
  - platform: rest
    ## Get AIRVCRAFT JSON from VRS. with nearast plane
    resource: http://ip_and_params=4ac8e3

When setting the value in the field it works…
But why doesn’t it accept the value in the resource field from the sensor?

Found it…

Use: resource_template
Instead of: resource

:man_facepalming: