How to get single value from entity value in template?

I use a rest sensor:

  - platform: rest
    value_template: "{{ value_json.values[0:3].start}}"

I don’t want to send 3 separate request to parse 3 values from response, so I am trying to parse the result.

I have tried:

  - platform: template
    sensors:
      my_sensor:
        value_template: '{{ states.sensor.rest_sensor| split(",")[0] }}'
        value_template: "{{ states('sensor.rest_sensor') | from_json | first | to_json }}"

But still I am missing something.

How to get first second and the third value with value_template?

Any ideas? Thank you.

Use the REST integration instead of the RESTful Sensor integration.

It lets you supply the result of a single REST call to multiple sensors.