Pulling info from json web to monitor my GPU VRAM temps

Hi Guys

I have the following program - https://www.hwinfo.com/forum/threads/introducing-remote-sensor-monitor-a-restful-web-server.1025/page-3 that pulls info from HWINFO and exports the following to a webserver at

“SensorApp”: “HWiNFO”,
“SensorClass”: "GPU [#0]: NVIDIA GeForce RTX 3080 Ti: ",
“SensorName”: “GPU Memory Junction Temperature”,
“SensorValue”: “88”,
“SensorUnit”: “°C”,
“SensorUpdateTime”: 1648456286

I believe I need to use the REST sensor in home assistant but I am not understanding what to do. Could someone please post a yaml config that would create a sensor updated by the temperature above. I have tried myself but am failing.

Thanks so much

This is the error I am getting in my logs

Logger: homeassistant.helpers.template
Source: helpers/template.py:1822
First occurred: 11:03:36 (2 occurrences)
Last logged: 11:04:06

Template variable warning: ‘list object’ has no attribute ‘SensorValue’ when rendering ‘{{ value_json.SensorValue }}’

This is the sensor in my configuration.yaml file

  - platform: rest
    name: 3080VramTemp
    value_template: "{{ value_json.SensorValue }}"

The returned json is an array (enclosed in “[]”) so

{{ value_json[0].SensorValue }}

Thanks for your reply. I had managed to get it working with the following:


  - platform: rest
    name: 3080memtemp
    method: GET
    scan_interval: 6
    value_template: "{{ (value | from_json)[0].SensorValue | int(0) }}"
    unit_of_measurement: °C

I appreciate your help though!