What is the best sensor to get data from a json request?

Hi,

I try to get the weather values for a json request.
What is the best way to get for exampe the Temperatur out of the json request?
With a command line sensor? Or the rest sensor?
Or is there another better solution to get the current Temperatur out of the json?
Here are the json values.

For the Temperatur the value is: [‘currConditionValues’][0][‘value’]-> But how do I get this value to Home Assistant?

Thank you!

If all you need is to extract one value then the REST sensor will certainly do that for you.

sensor:
  - platform: rest
    resource: https://www.weatherlink.com/embeddablePage/summaryData/db22c5a778f14c5da538dc6f3b3ddc0d?ts=1555852879023
    name: Example
    value_template: "{{value_json.currConditionValues[0]['value']}}"

Sorry, I also need some other values like the humidity and windspeed

So I have to create the sensor three times? One for every value that I need?

You can use the REST sensor’s json_attributes option to extract other values and store them in the sensor’s attributes property. Unless the data is organized precisely the way json_attributes expects, you typically need to use the json_attributes_path option. It lets you specify a JSONPATH statement to selectively extract and reformat the data for use by json_attributes.

I recently helped someone else with a similar requirement and you may wish to review it: