RESTful Sensor format incoming body (GET)

Sorry my bad English!!:confounded:

I have a trouble in formatting data incoming from a GET request,
i have this tipe of incoming body

I need only the number inside the “”, it’s the watt produced by solar panel

I would use the RESTful Sensor:

  - platform: rest
    method: GET

the reference for this API is there:

I’m newby in json text…

Thanks so much!!

I think this is just an array with one item, so

   value_template:  {{ value_json[0] }}

should extract the first element.

1 Like

thank you!! Now all works fine!!

1 Like