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?
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: